aboutsummaryrefslogtreecommitdiffstats
path: root/common/router1.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/router1.cc')
-rw-r--r--common/router1.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/common/router1.cc b/common/router1.cc
index 0733a61e..5cd4414c 100644
--- a/common/router1.cc
+++ b/common/router1.cc
@@ -682,6 +682,14 @@ void cleanupReroute(Context *ctx, const Router1Cfg &cfg, RipupScoreboard &scores
NEXTPNR_NAMESPACE_BEGIN
+Router1Cfg::Router1Cfg(Context *ctx) : Settings(ctx)
+{
+ maxIterCnt = get<int>("router1/maxIterCnt", 200);
+ cleanupReroute = get<bool>("router1/cleanupReroute", true);
+ fullCleanupReroute = get<bool>("router1/fullCleanupReroute", true);
+ useEstimate = get<bool>("router1/useEstimate", true);
+}
+
bool router1(Context *ctx, const Router1Cfg &cfg)
{
try {
@@ -953,7 +961,7 @@ bool Context::getActualRouteDelay(WireId src_wire, WireId dst_wire, delay_t *del
std::unordered_map<WireId, PipId> *route, bool useEstimate)
{
RipupScoreboard scores;
- Router1Cfg cfg;
+ Router1Cfg cfg(this);
cfg.useEstimate = useEstimate;
Router router(this, cfg, scores, src_wire, dst_wire);