diff options
author | gatecat <gatecat@ds0.me> | 2022-08-10 10:57:17 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-08-10 10:57:46 +0100 |
commit | 77c82b0fbf15892b0c8222bac89564f3f024493e (patch) | |
tree | 8b189e44b65afabfaddb3402ab8aac544df9ba83 /machxo2 | |
parent | 06ce27ed38279cfa3455e248ea2b2c773cdf6324 (diff) | |
download | nextpnr-77c82b0fbf15892b0c8222bac89564f3f024493e.tar.gz nextpnr-77c82b0fbf15892b0c8222bac89564f3f024493e.tar.bz2 nextpnr-77c82b0fbf15892b0c8222bac89564f3f024493e.zip |
refactor: id(stringf(...)) to new idf(...) helper
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'machxo2')
-rw-r--r-- | machxo2/arch.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/machxo2/arch.cc b/machxo2/arch.cc index 5fcdeaf7..b1a4a62a 100644 --- a/machxo2/arch.cc +++ b/machxo2/arch.cc @@ -93,17 +93,17 @@ Arch::Arch(ArchArgs args) : args(args) BaseArch::init_bel_buckets(); for (int i = 0; i < chip_info->width; i++) - x_ids.push_back(id(stringf("X%d", i))); + x_ids.push_back(idf("X%d", i)); for (int i = 0; i < chip_info->height; i++) - y_ids.push_back(id(stringf("Y%d", i))); + y_ids.push_back(idf("Y%d", i)); 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; } |