diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2019-10-12 10:35:52 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2019-10-20 09:41:48 +0200 |
commit | a11cc8791b0cc21d6b5c95596644f34e05c7d139 (patch) | |
tree | 6c57813c0186dd2a16c25b764c3e9f71cfa0e8af | |
parent | 3da7af9f026004dba6b08ffee1b09bec1506b6ee (diff) | |
download | nextpnr-a11cc8791b0cc21d6b5c95596644f34e05c7d139.tar.gz nextpnr-a11cc8791b0cc21d6b5c95596644f34e05c7d139.tar.bz2 nextpnr-a11cc8791b0cc21d6b5c95596644f34e05c7d139.zip |
set wire active flag
-rw-r--r-- | ecp5/arch.cc | 2 | ||||
-rw-r--r-- | ecp5/arch.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc index 947d0f93..81a9725c 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -822,7 +822,7 @@ DecalXY Arch::getWireDecal(WireId wire) const decalxy.decal.type = DecalId::TYPE_WIRE; decalxy.decal.location = wire.location; decalxy.decal.z = wire.index; - decalxy.decal.active = false; + decalxy.decal.active = getBoundWireNet(wire) != nullptr; return decalxy; } diff --git a/ecp5/arch.h b/ecp5/arch.h index 815dae0c..a0254965 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -660,6 +660,7 @@ struct Arch : BaseCtx wire_to_net[wire] = net; net->wires[wire].pip = PipId(); net->wires[wire].strength = strength; + refreshUiWire(wire); } void unbindWire(WireId wire) @@ -679,6 +680,7 @@ struct Arch : BaseCtx net_wires.erase(it); wire_to_net[wire] = nullptr; + refreshUiWire(wire); } bool checkWireAvail(WireId wire) const |