aboutsummaryrefslogtreecommitdiffstats
path: root/generic/viaduct_helpers.cc
diff options
context:
space:
mode:
authormyrtle <gatecat@ds0.me>2022-08-10 11:25:34 +0100
committerGitHub <noreply@github.com>2022-08-10 11:25:34 +0100
commit66722096edaff35f1620ebfc9acaab13ae149377 (patch)
tree8b189e44b65afabfaddb3402ab8aac544df9ba83 /generic/viaduct_helpers.cc
parent06ce27ed38279cfa3455e248ea2b2c773cdf6324 (diff)
parent77c82b0fbf15892b0c8222bac89564f3f024493e (diff)
downloadnextpnr-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 'generic/viaduct_helpers.cc')
-rw-r--r--generic/viaduct_helpers.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/viaduct_helpers.cc b/generic/viaduct_helpers.cc
index 153d2a0e..53df625c 100644
--- a/generic/viaduct_helpers.cc
+++ b/generic/viaduct_helpers.cc
@@ -29,15 +29,15 @@ void ViaductHelpers::resize_ids(int x, int y, int z)
{
NPNR_ASSERT(x >= 0 && y >= 0 && x <= 20000 && y <= 20000 && z <= 1000);
while (int(x_ids.size()) <= x) {
- IdString next = ctx->id(stringf("X%d", int(x_ids.size())));
+ IdString next = ctx->idf("X%d", int(x_ids.size()));
x_ids.push_back(next);
}
while (int(y_ids.size()) <= y) {
- IdString next = ctx->id(stringf("Y%d", int(y_ids.size())));
+ IdString next = ctx->idf("Y%d", int(y_ids.size()));
y_ids.push_back(next);
}
while (int(z_ids.size()) <= y) {
- IdString next = ctx->id(stringf("Z%d", int(z_ids.size())));
+ IdString next = ctx->idf("Z%d", int(z_ids.size()));
z_ids.push_back(next);
}
}