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 /nexus/fasm.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 'nexus/fasm.cc')
-rw-r--r-- | nexus/fasm.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nexus/fasm.cc b/nexus/fasm.cc index de03fb82..48a3d259 100644 --- a/nexus/fasm.cc +++ b/nexus/fasm.cc @@ -595,7 +595,7 @@ struct NexusFasmWriter if (wid > 0) { push(stringf("IP_EBR_WID%d", wid)); for (int i = 0; i < 64; i++) { - IdString param = ctx->id(stringf("INITVAL_%02X", i)); + IdString param = ctx->idf("INITVAL_%02X", i); if (!cell->params.count(param)) continue; auto &prop = cell->params.at(param); @@ -906,7 +906,7 @@ struct NexusFasmWriter l.x = 1; push(stringf("IP_LRAM_CORE_R%dC%d", l.y, l.x)); for (int i = 0; i < 128; i++) { - IdString param = ctx->id(stringf("INITVAL_%02X", i)); + IdString param = ctx->idf("INITVAL_%02X", i); if (!cell->params.count(param)) continue; auto &prop = cell->params.at(param); |