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>
This commit is contained in:
YRabbit 2022-12-14 15:35:55 +10:00
parent b5d30c7387
commit bc3d9f3108

View File

@ -4971,7 +4971,7 @@ void gfxSetPipDefaultDecal(Arch *arch, PipInfo &pip)
// clock? // clock?
if (dst_loc_id.in(id_GT00, id_GT10)) { if (dst_loc_id.in(id_GT00, id_GT10)) {
WireInfo &wi = arch->wire_info(pip.srcWire); 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 // create pip
GraphicElement el; GraphicElement el;
el.type = GraphicElement::TYPE_LOCAL_LINE; el.type = GraphicElement::TYPE_LOCAL_LINE;