diff options
author | myrtle <gatecat@ds0.me> | 2022-08-10 11:25:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 11:25:34 +0100 |
commit | 66722096edaff35f1620ebfc9acaab13ae149377 (patch) | |
tree | 8b189e44b65afabfaddb3402ab8aac544df9ba83 /ice40 | |
parent | 06ce27ed38279cfa3455e248ea2b2c773cdf6324 (diff) | |
parent | 77c82b0fbf15892b0c8222bac89564f3f024493e (diff) | |
download | nextpnr-66722096edaff35f1620ebfc9acaab13ae149377.tar.gz nextpnr-66722096edaff35f1620ebfc9acaab13ae149377.tar.bz2 nextpnr-66722096edaff35f1620ebfc9acaab13ae149377.zip |
Merge pull request #1010 from YosysHQ/gatecat/idf
refactor: id(stringf(...)) to new idf(...) helper
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/arch.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc index 6746b302..905b8d61 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -111,12 +111,12 @@ Arch::Arch(ArchArgs args) : args(args) log_error("Unsupported package '%s'.\n", args.package.c_str()); for (int i = 0; i < chip_info->width; i++) { - IdString x_id = id(stringf("X%d", i)); + IdString x_id = idf("X%d", i); x_ids.push_back(x_id); id_to_x[x_id] = i; } for (int i = 0; i < chip_info->height; i++) { - IdString y_id = id(stringf("Y%d", i)); + IdString y_id = idf("Y%d", i); y_ids.push_back(y_id); id_to_y[y_id] = i; } |