diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-09 18:39:10 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-09 18:39:10 +0200 |
commit | 93a0d2456086b2c0e4a50d6ecc43ab028895bcad (patch) | |
tree | 962c150e9ca95837260bd99801e4e35309d3bdb9 /common/router1.cc | |
parent | 8b04a646291bec7fb65b3580a08c266268acf010 (diff) | |
download | nextpnr-93a0d2456086b2c0e4a50d6ecc43ab028895bcad.tar.gz nextpnr-93a0d2456086b2c0e4a50d6ecc43ab028895bcad.tar.bz2 nextpnr-93a0d2456086b2c0e4a50d6ecc43ab028895bcad.zip |
Use settings for placer1 and router1
Diffstat (limited to 'common/router1.cc')
-rw-r--r-- | common/router1.cc | 10 |
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); |