diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-16 17:53:09 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-16 17:53:09 +0200 |
commit | f0edb625e3280237aba2d73e950a8dbaf91e9427 (patch) | |
tree | 899f10d606399eeacb223d6c30d060ea5566c763 /ice40/chip.cc | |
parent | ad0df6cea898d5d524ea90040e21298a5567b635 (diff) | |
download | nextpnr-f0edb625e3280237aba2d73e950a8dbaf91e9427.tar.gz nextpnr-f0edb625e3280237aba2d73e950a8dbaf91e9427.tar.bz2 nextpnr-f0edb625e3280237aba2d73e950a8dbaf91e9427.zip |
Progress with chipdb refactoring
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/chip.cc')
-rw-r--r-- | ice40/chip.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/chip.cc b/ice40/chip.cc index 1255dfc8..82200758 100644 --- a/ice40/chip.cc +++ b/ice40/chip.cc @@ -153,7 +153,7 @@ BelId Chip::getBelByName(IdString name) const if (bel_by_name.empty()) { for (int i = 0; i < chip_info.num_bels; i++) - bel_by_name[chip_info.bel_data[i].name] = i; + bel_by_name[chip_info.bel_data[i].name.ptr()] = i; } auto it = bel_by_name.find(name); @@ -190,7 +190,7 @@ WireId Chip::getWireBelPin(BelId bel, PortPin pin) const assert(bel != BelId()); int num_bel_wires = chip_info.bel_data[bel.index].num_bel_wires; - BelWirePOD *bel_wires = chip_info.bel_data[bel.index].bel_wires; + BelWirePOD *bel_wires = chip_info.bel_data[bel.index].bel_wires.ptr(); for (int i = 0; i < num_bel_wires; i++) if (bel_wires[i].port == pin) { |