diff options
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r-- | ice40/arch.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc index 65b21afd..d6ef800d 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -331,11 +331,12 @@ WireId Arch::getBelPinWire(BelId bel, PortPin pin) const int num_bel_wires = chip_info->bel_data[bel.index].num_bel_wires; const BelWirePOD *bel_wires = chip_info->bel_data[bel.index].bel_wires.get(); - for (int i = 0; i < num_bel_wires; i++) + for (int i = 0; i < num_bel_wires; i++) { if (bel_wires[i].port == pin) { ret.index = bel_wires[i].wire_index; break; } + } return ret; } |