diff options
Diffstat (limited to 'machxo2/arch.cc')
-rw-r--r-- | machxo2/arch.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/machxo2/arch.cc b/machxo2/arch.cc index 20c68065..abc281cb 100644 --- a/machxo2/arch.cc +++ b/machxo2/arch.cc @@ -262,6 +262,21 @@ std::vector<IdString> Arch::getBelPins(BelId bel) const // --------------------------------------------------------------- +BelId Arch::getPackagePinBel(const std::string &pin) const +{ + for (int i = 0; i < package_info->num_pins; i++) { + if (package_info->pin_data[i].name.get() == pin) { + BelId bel; + bel.location = package_info->pin_data[i].abs_loc; + bel.index = package_info->pin_data[i].bel_index; + return bel; + } + } + return BelId(); +} + +// --------------------------------------------------------------- + WireId Arch::getWireByName(IdString name) const { return WireId(); } IdString Arch::getWireName(WireId wire) const { return IdString(); } |