diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-08-05 15:25:42 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-08-05 15:25:42 +0200 |
commit | 5e530759900ad2c84365294f4304621bbe0450ec (patch) | |
tree | 91c1f1d68505ab607fd8cc3d7be13cdd86419d43 /ice40/arch.cc | |
parent | ba97c233fb6e4502f3465a602f997cc2382f0e06 (diff) | |
download | nextpnr-5e530759900ad2c84365294f4304621bbe0450ec.tar.gz nextpnr-5e530759900ad2c84365294f4304621bbe0450ec.tar.bz2 nextpnr-5e530759900ad2c84365294f4304621bbe0450ec.zip |
API change: Use CellInfo* and NetInfo* as cell/net handles (common, ice40)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r-- | ice40/arch.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc index 5d79a487..0b168383 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -672,7 +672,7 @@ DecalXY Arch::getBelDecal(BelId bel) const DecalXY decalxy; decalxy.decal.type = DecalId::TYPE_BEL; decalxy.decal.index = bel.index; - decalxy.decal.active = bel_to_cell.at(bel.index) != IdString(); + decalxy.decal.active = bel_to_cell.at(bel.index) != nullptr; return decalxy; } @@ -681,7 +681,7 @@ DecalXY Arch::getWireDecal(WireId wire) const DecalXY decalxy; decalxy.decal.type = DecalId::TYPE_WIRE; decalxy.decal.index = wire.index; - decalxy.decal.active = wire_to_net.at(wire.index) != IdString(); + decalxy.decal.active = wire_to_net.at(wire.index) != nullptr; return decalxy; } @@ -690,7 +690,7 @@ DecalXY Arch::getPipDecal(PipId pip) const DecalXY decalxy; decalxy.decal.type = DecalId::TYPE_PIP; decalxy.decal.index = pip.index; - decalxy.decal.active = pip_to_net.at(pip.index) != IdString(); + decalxy.decal.active = pip_to_net.at(pip.index) != nullptr; return decalxy; }; |