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 --- common/placer1.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'common/placer1.h') diff --git a/common/placer1.h b/common/placer1.h index 477fae56..d8f64b84 100644 --- a/common/placer1.h +++ b/common/placer1.h @@ -23,7 +23,12 @@ NEXTPNR_NAMESPACE_BEGIN -extern bool placer1(Context *ctx); +struct Placer1Cfg +{ + float constraintWeight = 10; +}; + +extern bool placer1(Context *ctx, Placer1Cfg cfg); NEXTPNR_NAMESPACE_END -- cgit v1.2.3