diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-08-08 17:22:05 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-08-08 17:22:05 +0200 |
commit | abf5ea84b9700c72a19327cda1000db0f80b34e0 (patch) | |
tree | 85640fd051e31cf4e4c236cafabba3280ac8e343 /generic/arch.cc | |
parent | f875a37467477aa0aa60ba89b428c71de6645736 (diff) | |
download | nextpnr-abf5ea84b9700c72a19327cda1000db0f80b34e0.tar.gz nextpnr-abf5ea84b9700c72a19327cda1000db0f80b34e0.tar.bz2 nextpnr-abf5ea84b9700c72a19327cda1000db0f80b34e0.zip |
Get rid of BelType and PortPin in generic arch
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'generic/arch.cc')
-rw-r--r-- | generic/arch.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/arch.cc b/generic/arch.cc index 0fa93da8..a6d41e1e 100644 --- a/generic/arch.cc +++ b/generic/arch.cc @@ -238,15 +238,15 @@ CellInfo *Arch::getConflictingBelCell(BelId bel) const { return bels.at(bel).bou const std::vector<BelId> &Arch::getBels() const { return bel_ids; } -BelType Arch::getBelType(BelId bel) const { return bels.at(bel).type; } +IdString Arch::getBelType(BelId bel) const { return bels.at(bel).type; } -WireId Arch::getBelPinWire(BelId bel, PortPin pin) const { return bels.at(bel).pins.at(pin).wire; } +WireId Arch::getBelPinWire(BelId bel, IdString pin) const { return bels.at(bel).pins.at(pin).wire; } -PortType Arch::getBelPinType(BelId bel, PortPin pin) const { return bels.at(bel).pins.at(pin).type; } +PortType Arch::getBelPinType(BelId bel, IdString pin) const { return bels.at(bel).pins.at(pin).type; } -std::vector<PortPin> Arch::getBelPins(BelId bel) const +std::vector<IdString> Arch::getBelPins(BelId bel) const { - std::vector<PortPin> ret; + std::vector<IdString> ret; for (auto &it : bels.at(bel).pins) ret.push_back(it.first); return ret; |