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 /mistral/globals.cc | |
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 'mistral/globals.cc')
-rw-r--r-- | mistral/globals.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mistral/globals.cc b/mistral/globals.cc index 1ba70919..6af8920d 100644 --- a/mistral/globals.cc +++ b/mistral/globals.cc @@ -30,7 +30,7 @@ void Arch::create_clkbuf(int x, int y) continue; // TODO: why do other Zs not work? // For now we only consider the input path from general routing, other inputs like dedicated clock pins are // still a TODO - BelId bel = add_bel(x, y, id(stringf("CLKBUF[%d]", z)), id_MISTRAL_CLKENA); + BelId bel = add_bel(x, y, idf("CLKBUF[%d]", z), id_MISTRAL_CLKENA); add_bel_pin(bel, id_A, PORT_IN, get_port(CycloneV::CMUXHG, x, y, -1, CycloneV::CLKIN, z)); add_bel_pin(bel, id_Q, PORT_OUT, get_port(CycloneV::CMUXHG, x, y, z, CycloneV::CLKOUT)); // TODO: enable pin @@ -48,9 +48,9 @@ void Arch::create_hps_mpu_general_purpose(int x, int y) BelId gp_bel = add_bel(x, y, id_cyclonev_hps_interface_mpu_general_purpose, id_cyclonev_hps_interface_mpu_general_purpose); for (int i = 0; i < 32; i++) { - add_bel_pin(gp_bel, id(stringf("gp_in[%d]", i)), PORT_IN, + add_bel_pin(gp_bel, idf("gp_in[%d]", i), PORT_IN, get_port(CycloneV::HPS_MPU_GENERAL_PURPOSE, x, y, -1, CycloneV::GP_IN, i)); - add_bel_pin(gp_bel, id(stringf("gp_out[%d]", i)), PORT_OUT, + add_bel_pin(gp_bel, idf("gp_out[%d]", i), PORT_OUT, get_port(CycloneV::HPS_MPU_GENERAL_PURPOSE, x, y, -1, CycloneV::GP_OUT, i)); } } |