aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-25 17:42:32 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-25 17:42:32 +0200
commit790d7159bb0c31ea015b08313cf4713728f8b574 (patch)
tree4ecd8bdaf60ed1c246088e84b86f0912d12d3c0e /ecp5/arch.cc
parenta8001daf6fd041f2133847b5cfef799afdba33ae (diff)
downloadnextpnr-790d7159bb0c31ea015b08313cf4713728f8b574.tar.gz
nextpnr-790d7159bb0c31ea015b08313cf4713728f8b574.tar.bz2
nextpnr-790d7159bb0c31ea015b08313cf4713728f8b574.zip
Fixed packing non pod
Diffstat (limited to 'ecp5/arch.cc')
-rw-r--r--ecp5/arch.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index 5507d1e3..3e8676ca 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -328,7 +328,7 @@ BelId Arch::getPackagePinBel(const std::string &pin) const
std::string Arch::getBelPackagePin(BelId bel) const
{
for (int i = 0; i < package_info->num_pins; i++) {
- if (package_info->pin_data[i].abs_loc == bel.location && package_info->pin_data[i].bel_index == bel.index) {
+ if (Location(package_info->pin_data[i].abs_loc) == bel.location && package_info->pin_data[i].bel_index == bel.index) {
return package_info->pin_data[i].name.get();
}
}
@@ -338,7 +338,7 @@ std::string Arch::getBelPackagePin(BelId bel) const
int Arch::getPioBelBank(BelId bel) const
{
for (int i = 0; i < chip_info->num_pios; i++) {
- if (chip_info->pio_info[i].abs_loc == bel.location && chip_info->pio_info[i].bel_index == bel.index) {
+ if (Location(chip_info->pio_info[i].abs_loc) == bel.location && chip_info->pio_info[i].bel_index == bel.index) {
return chip_info->pio_info[i].bank;
}
}
@@ -348,7 +348,7 @@ int Arch::getPioBelBank(BelId bel) const
std::string Arch::getPioFunctionName(BelId bel) const
{
for (int i = 0; i < chip_info->num_pios; i++) {
- if (chip_info->pio_info[i].abs_loc == bel.location && chip_info->pio_info[i].bel_index == bel.index) {
+ if (Location(chip_info->pio_info[i].abs_loc) == bel.location && chip_info->pio_info[i].bel_index == bel.index) {
const char *func = chip_info->pio_info[i].function_name.get();
if (func == nullptr)
return "";