aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-08-03 18:31:54 +0200
committerDavid Shah <davey1576@gmail.com>2018-08-03 18:31:54 +0200
commitb937e6defea82c12227b6e00cf19e370b237ea8b (patch)
tree7940016c021225ad7eb7c20d00dd69cb1513fe6c /ice40/arch.cc
parent4a751d9aafa0de4f64960bf7e9f16400319259ef (diff)
downloadnextpnr-b937e6defea82c12227b6e00cf19e370b237ea8b.tar.gz
nextpnr-b937e6defea82c12227b6e00cf19e370b237ea8b.tar.bz2
nextpnr-b937e6defea82c12227b6e00cf19e370b237ea8b.zip
Add constraint weight as a command line option
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index eff1d9b9..84856402 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -659,7 +659,11 @@ delay_t Arch::getBudgetOverride(const NetInfo *net_info, const PortRef &sink, de
// -----------------------------------------------------------------------
-bool Arch::place() { return placer1(getCtx()); }
+bool Arch::place() {
+ Placer1Cfg cfg;
+ cfg.constraintWeight = placer_constraintWeight;
+ return placer1(getCtx(), cfg);
+}
bool Arch::route()
{