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/command.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/command.cc')
-rw-r--r-- | common/command.cc | 3 |
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)); |