aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.h
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/placer1.h
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/placer1.h')
-rw-r--r--common/placer1.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/placer1.h b/common/placer1.h
index d8f64b84..55db1fa5 100644
--- a/common/placer1.h
+++ b/common/placer1.h
@@ -20,12 +20,14 @@
#define PLACE_H
#include "nextpnr.h"
+#include "settings.h"
NEXTPNR_NAMESPACE_BEGIN
-struct Placer1Cfg
+struct Placer1Cfg : public Settings
{
- float constraintWeight = 10;
+ Placer1Cfg(Context *ctx);
+ float constraintWeight;
};
extern bool placer1(Context *ctx, Placer1Cfg cfg);