aboutsummaryrefslogtreecommitdiffstats
path: root/common/command.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-08-18 19:25:19 +0200
committerGitHub <noreply@github.com>2018-08-18 19:25:19 +0200
commit26be6f9761bba9dff646c6b1d071b149bd26f950 (patch)
tree2d4f46e149cb7a96f91b801fd830458eea8f79ac /common/command.cc
parent1e8e873c9fe4b0fdd69055b0251f9e71db3849c5 (diff)
parenteaf824ca73241014a280b1bd787d8f83e772dd05 (diff)
downloadnextpnr-26be6f9761bba9dff646c6b1d071b149bd26f950.tar.gz
nextpnr-26be6f9761bba9dff646c6b1d071b149bd26f950.tar.bz2
nextpnr-26be6f9761bba9dff646c6b1d071b149bd26f950.zip
Merge pull request #47 from YosysHQ/settings_propagate
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));