From b937e6defea82c12227b6e00cf19e370b237ea8b Mon Sep 17 00:00:00 2001 From: David Shah Date: Fri, 3 Aug 2018 18:31:54 +0200 Subject: Add constraint weight as a command line option Signed-off-by: David Shah --- ice40/arch.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ice40/arch.cc') 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() { -- cgit v1.2.3 From 082b8bf272bf09b6ea2ee7aec4682a4eb2e5bfde Mon Sep 17 00:00:00 2001 From: David Shah Date: Sat, 4 Aug 2018 08:18:04 +0200 Subject: clangformat Signed-off-by: David Shah --- ice40/arch.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ice40/arch.cc') diff --git a/ice40/arch.cc b/ice40/arch.cc index 84856402..3934e8f0 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -659,7 +659,8 @@ delay_t Arch::getBudgetOverride(const NetInfo *net_info, const PortRef &sink, de // ----------------------------------------------------------------------- -bool Arch::place() { +bool Arch::place() +{ Placer1Cfg cfg; cfg.constraintWeight = placer_constraintWeight; return placer1(getCtx(), cfg); -- cgit v1.2.3