Merge pull request #1061 from yrabbit/fix-clock-gui

gowin: not crush on unknown clock tap's sources
This commit is contained in:
myrtle 2022-12-14 08:00:02 +01:00 committed by GitHub
commit 16ffd02a9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;