aboutsummaryrefslogtreecommitdiffstats
path: root/gowin
diff options
context:
space:
mode:
authorYRabbit <rabbit@yrabbit.cyou>2022-12-14 15:35:55 +1000
committerYRabbit <rabbit@yrabbit.cyou>2022-12-14 15:35:55 +1000
commitbc3d9f31088b2c8c41e5796c6f239cef54deea62 (patch)
tree44d4df551da30f88d98a302dce803de23d9b0b7b /gowin
parentb5d30c73877be032c1d87cd820ebdfe4db556fdb (diff)
downloadnextpnr-bc3d9f31088b2c8c41e5796c6f239cef54deea62.tar.gz
nextpnr-bc3d9f31088b2c8c41e5796c6f239cef54deea62.tar.bz2
nextpnr-bc3d9f31088b2c8c41e5796c6f239cef54deea62.zip
gowin: not crush on unknown clock tap's sources
As preparation for possible changes to the clock wiring system. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Diffstat (limited to 'gowin')
-rw-r--r--gowin/gfx.cc2
1 files changed, 1 insertions, 1 deletions
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;