aboutsummaryrefslogtreecommitdiffstats
path: root/mistral/arch.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-02-16 17:09:54 +0000
committergatecat <gatecat@ds0.me>2022-02-16 17:09:54 +0000
commit76683a1e3c123d28deff750c38467c6377936879 (patch)
tree379b38c06745919df0e87c1be1410e16793b0925 /mistral/arch.cc
parent9ef0bc3d3ad667d937ed803eba7b216a604d5624 (diff)
downloadnextpnr-76683a1e3c123d28deff750c38467c6377936879.tar.gz
nextpnr-76683a1e3c123d28deff750c38467c6377936879.tar.bz2
nextpnr-76683a1e3c123d28deff750c38467c6377936879.zip
refactor: Use constids instead of id("..")
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'mistral/arch.cc')
-rw-r--r--mistral/arch.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/mistral/arch.cc b/mistral/arch.cc
index c50e30f4..e79a3910 100644
--- a/mistral/arch.cc
+++ b/mistral/arch.cc
@@ -446,7 +446,7 @@ ArcBounds Arch::getRouteBoundingBox(WireId src, WireId dst) const
bool Arch::place()
{
- std::string placer = str_or_default(settings, id("placer"), defaultPlacer);
+ std::string placer = str_or_default(settings, id_placer, defaultPlacer);
if (placer == "heap") {
PlacerHeapCfg cfg(getCtx());
@@ -468,7 +468,7 @@ bool Arch::place()
log_error("Mistral architecture does not support placer '%s'\n", placer.c_str());
}
- getCtx()->attrs[getCtx()->id("step")] = std::string("place");
+ getCtx()->attrs[id_step] = std::string("place");
archInfoToAttributes();
return true;
}
@@ -479,7 +479,7 @@ bool Arch::route()
lab_pre_route();
- std::string router = str_or_default(settings, id("router"), defaultRouter);
+ std::string router = str_or_default(settings, id_router, defaultRouter);
bool result;
if (router == "router1") {
result = router1(getCtx(), Router1Cfg(getCtx()));
@@ -489,7 +489,7 @@ bool Arch::route()
} else {
log_error("Mistral architecture does not support router '%s'\n", router.c_str());
}
- getCtx()->attrs[getCtx()->id("step")] = std::string("route");
+ getCtx()->attrs[id_step] = std::string("route");
archInfoToAttributes();
return result;
}