aboutsummaryrefslogtreecommitdiffstats
path: root/common/command.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-08-09 18:39:10 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-08-09 18:39:10 +0200
commit93a0d2456086b2c0e4a50d6ecc43ab028895bcad (patch)
tree962c150e9ca95837260bd99801e4e35309d3bdb9 /common/command.cc
parent8b04a646291bec7fb65b3580a08c266268acf010 (diff)
downloadnextpnr-93a0d2456086b2c0e4a50d6ecc43ab028895bcad.tar.gz
nextpnr-93a0d2456086b2c0e4a50d6ecc43ab028895bcad.tar.bz2
nextpnr-93a0d2456086b2c0e4a50d6ecc43ab028895bcad.zip
Use settings for placer1 and router1
Diffstat (limited to 'common/command.cc')
-rw-r--r--common/command.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/command.cc b/common/command.cc
index d5639e9a..ab0c92f2 100644
--- a/common/command.cc
+++ b/common/command.cc
@@ -144,7 +144,7 @@ void CommandHandler::setupContext(Context *ctx)
}
if (vm.count("cstrweight")) {
- // ctx->placer_constraintWeight = vm["cstrweight"].as<float>();
+ settings->set("placer1/constraintWeight", vm["cstrweight"].as<float>());
}
if (vm.count("freq")) {
@@ -261,6 +261,7 @@ int CommandHandler::exec()
} else {
ctx = createContext();
}
+ settings = std::unique_ptr<Settings>(new Settings(ctx.get()));
setupContext(ctx.get());
setupArchContext(ctx.get());
return executeMain(std::move(ctx));