aboutsummaryrefslogtreecommitdiffstats
path: root/generic/arch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'generic/arch.cc')
-rw-r--r--generic/arch.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/generic/arch.cc b/generic/arch.cc
index 8c7a7670..0f2f5fe3 100644
--- a/generic/arch.cc
+++ b/generic/arch.cc
@@ -226,6 +226,13 @@ BelPin Arch::getBelPinUphill(WireId wire) const { return wires.at(wire).uphill_b
const std::vector<BelPin> &Arch::getBelPinsDownhill(WireId wire) const { return wires.at(wire).downhill_bel_pins; }
+std::vector<PortPin> Arch::getBelPins(BelId bel) const
+{
+ std::vector<PortPin> ret;
+ for (auto &it : bels.at(bel).pins)
+ ret.push_back(it.first);
+}
+
// ---------------------------------------------------------------
WireId Arch::getWireByName(IdString name) const