diff options
author | gatecat <gatecat@ds0.me> | 2021-04-28 15:43:02 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-05-06 11:47:07 +0100 |
commit | 14863bc04e062e306e783f2f05232c6e922a3b8f (patch) | |
tree | eaa379edbf8bf307dbb22a182cdc93d3b1f5a237 /common/base_arch.h | |
parent | 6a3eacddd60713d9c0d470d13a54a0c42f7d87c9 (diff) | |
download | nextpnr-14863bc04e062e306e783f2f05232c6e922a3b8f.tar.gz nextpnr-14863bc04e062e306e783f2f05232c6e922a3b8f.tar.bz2 nextpnr-14863bc04e062e306e783f2f05232c6e922a3b8f.zip |
Update placers to use new cluster APIs
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common/base_arch.h')
-rw-r--r-- | common/base_arch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/base_arch.h b/common/base_arch.h index 35500c1d..8ed77790 100644 --- a/common/base_arch.h +++ b/common/base_arch.h @@ -393,13 +393,13 @@ template <typename R> struct BaseArch : ArchAPI<R> }); } - virtual Loc getClusterOffset(CellInfo *cell) const override + virtual Loc getClusterOffset(const CellInfo *cell) const override { return if_using_basecluster<Loc>(cell, [](const BaseClusterInfo *c) { return Loc(c->constr_x, c->constr_y, 0); }); } - virtual bool isClusterStrict(CellInfo *cell) const override { return true; } + virtual bool isClusterStrict(const CellInfo *cell) const override { return true; } virtual bool getClusterPlacement(ClusterId cluster, BelId root_bel, std::vector<std::pair<CellInfo *, BelId>> &placement) const override |