aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/main.cc
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-08-03 23:44:55 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2018-08-03 23:44:55 -0700
commit0a14e20f7332344d4c2f73c7ede54ef0258997f7 (patch)
tree37250740746ae2a6f19fff60891ba42846569f85 /ice40/main.cc
parent45304d049f1c939ca3ac9782a1108f17e784a1cd (diff)
parent65d73eb9838e0bb8e6d089ecde3d4ffaf34e9e29 (diff)
downloadnextpnr-0a14e20f7332344d4c2f73c7ede54ef0258997f7.tar.gz
nextpnr-0a14e20f7332344d4c2f73c7ede54ef0258997f7.tar.bz2
nextpnr-0a14e20f7332344d4c2f73c7ede54ef0258997f7.zip
Merge branch 'master' into slack_histogram
Conflicts: common/placer1.cc
Diffstat (limited to 'ice40/main.cc')
-rw-r--r--ice40/main.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/ice40/main.cc b/ice40/main.cc
index 4a2e9532..37e18215 100644
--- a/ice40/main.cc
+++ b/ice40/main.cc
@@ -40,7 +40,6 @@
#include "log.h"
#include "nextpnr.h"
#include "pcf.h"
-#include "place_legaliser.h"
#include "timing.h"
#include "version.h"
@@ -107,6 +106,9 @@ int main(int argc, char *argv[])
options.add_options()("seed", po::value<int>(), "seed value for random number generator");
options.add_options()("slack_redist_iter", po::value<int>(),
"number of iterations between slack redistribution");
+ options.add_options()("cstrweight", po::value<float>(),
+ "placer weighting for relative constraint satisfaction");
+
options.add_options()("version,V", "show version");
options.add_options()("tmfuzz", "run path delay estimate fuzzer");
options.add_options()("test", "check architecture database integrity");
@@ -319,6 +321,10 @@ int main(int argc, char *argv[])
ctx->slack_redist_iter = vm["slack_redist_iter"].as<int>();
}
+ if (vm.count("cstrweight")) {
+ ctx->placer_constraintWeight = vm["cstrweight"].as<float>();
+ }
+
if (vm.count("svg")) {
std::cout << "<svg xmlns=\"http://www.w3.org/2000/svg\" "
"xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n";