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.h | |
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.h')
-rw-r--r-- | common/router1.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/common/router1.h b/common/router1.h index 0380adc2..a184cbe7 100644 --- a/common/router1.h +++ b/common/router1.h @@ -21,15 +21,18 @@ #define ROUTER1_H #include "nextpnr.h" +#include "settings.h" NEXTPNR_NAMESPACE_BEGIN -struct Router1Cfg +struct Router1Cfg : Settings { - int maxIterCnt = 200; - bool cleanupReroute = true; - bool fullCleanupReroute = true; - bool useEstimate = true; + Router1Cfg(Context *ctx); + + int maxIterCnt; + bool cleanupReroute; + bool fullCleanupReroute; + bool useEstimate; }; extern bool router1(Context *ctx, const Router1Cfg &cfg); |