From bc3d9f31088b2c8c41e5796c6f239cef54deea62 Mon Sep 17 00:00:00 2001 From: YRabbit Date: Wed, 14 Dec 2022 15:35:55 +1000 Subject: gowin: not crush on unknown clock tap's sources As preparation for possible changes to the clock wiring system. Signed-off-by: YRabbit --- gowin/gfx.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gowin/gfx.cc b/gowin/gfx.cc index 048ae62e..5abb1399 100644 --- a/gowin/gfx.cc +++ b/gowin/gfx.cc @@ -4971,7 +4971,7 @@ void gfxSetPipDefaultDecal(Arch *arch, PipInfo &pip) // clock? if (dst_loc_id.in(id_GT00, id_GT10)) { WireInfo &wi = arch->wire_info(pip.srcWire); - if (wi.type.str(arch).substr(0, 3) != "UNK") { + if (wi.type.str(arch).substr(0, 5) == "SPINE") { // create pip GraphicElement el; el.type = GraphicElement::TYPE_LOCAL_LINE; -- cgit v1.2.3