From abf5ea84b9700c72a19327cda1000db0f80b34e0 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 8 Aug 2018 17:22:05 +0200 Subject: Get rid of BelType and PortPin in generic arch Signed-off-by: Clifford Wolf --- generic/arch.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'generic/arch.cc') 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 &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 Arch::getBelPins(BelId bel) const +std::vector Arch::getBelPins(BelId bel) const { - std::vector ret; + std::vector ret; for (auto &it : bels.at(bel).pins) ret.push_back(it.first); return ret; -- cgit v1.2.3