diff options
Diffstat (limited to 'ice40/chip.cc')
-rw-r--r-- | ice40/chip.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/chip.cc b/ice40/chip.cc index 82200758..277246e5 100644 --- a/ice40/chip.cc +++ b/ice40/chip.cc @@ -264,7 +264,7 @@ IdString Chip::getPipName(PipId pip) const BelId Chip::getPackagePinBel(const std::string &pin) const { for (int i = 0; i < package_info->num_pins; i++) { - if (package_info->pins[i].name == pin) { + if (package_info->pins[i].name.ptr() == pin) { BelId id; id.index = package_info->pins[i].bel_index; return id; @@ -277,7 +277,7 @@ std::string Chip::getBelPackagePin(BelId bel) const { for (int i = 0; i < package_info->num_pins; i++) { if (package_info->pins[i].bel_index == bel.index) { - return std::string(package_info->pins[i].name); + return std::string(package_info->pins[i].name.ptr()); } } return ""; |