diff options
author | Serge Bazanski <serge@bazanski.pl> | 2018-07-17 19:16:26 +0100 |
---|---|---|
committer | Serge Bazanski <serge@bazanski.pl> | 2018-07-17 19:16:26 +0100 |
commit | 03508faabfc2f5b76039cfd13d02a341baa848a4 (patch) | |
tree | c896745d0e1555e224d5a7c67b52e7ccfb6e30dd /ice40 | |
parent | 2f5b94fe309619c221c3e1ea5aa48a4523bd3156 (diff) | |
download | nextpnr-03508faabfc2f5b76039cfd13d02a341baa848a4.tar.gz nextpnr-03508faabfc2f5b76039cfd13d02a341baa848a4.tar.bz2 nextpnr-03508faabfc2f5b76039cfd13d02a341baa848a4.zip |
WIP.
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/arch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ice40/arch.h b/ice40/arch.h index 5dab414b..b89a0b54 100644 --- a/ice40/arch.h +++ b/ice40/arch.h @@ -373,6 +373,7 @@ struct Arch : BaseCtx bel_to_cell[bel.index] = cell; cells[cell]->bel = bel; cells[cell]->belStrength = strength; + refreshUiBel(bel); } void unbindBel(BelId bel) @@ -382,6 +383,7 @@ struct Arch : BaseCtx cells[bel_to_cell[bel.index]]->bel = BelId(); cells[bel_to_cell[bel.index]]->belStrength = STRENGTH_NONE; bel_to_cell[bel.index] = IdString(); + refreshUiBel(bel); } bool checkBelAvail(BelId bel) const @@ -475,6 +477,7 @@ struct Arch : BaseCtx wire_to_net[wire.index] = net; nets[net]->wires[wire].pip = PipId(); nets[net]->wires[wire].strength = strength; + refreshUiWire(wire); } void unbindWire(WireId wire) @@ -494,6 +497,7 @@ struct Arch : BaseCtx net_wires.erase(it); wire_to_net[wire.index] = IdString(); + refreshUiWire(wire); } bool checkWireAvail(WireId wire) const @@ -541,6 +545,8 @@ struct Arch : BaseCtx wire_to_net[dst.index] = net; nets[net]->wires[dst].pip = pip; nets[net]->wires[dst].strength = strength; + refreshUiPip(pip); + refreshUiWire(dst); } void unbindPip(PipId pip) @@ -557,6 +563,8 @@ struct Arch : BaseCtx pip_to_net[pip.index] = IdString(); switches_locked[chip_info->pip_data[pip.index].switch_index] = IdString(); + refreshUiPip(pip); + refreshUiWire(dst); } bool checkPipAvail(PipId pip) const |