diff options
author | gatecat <gatecat@ds0.me> | 2021-05-06 12:25:32 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-05-06 12:25:32 +0100 |
commit | c6fa1a179aa8c79d335ba03814ea71d871c87577 (patch) | |
tree | cf3d259da4839159f7ffd5dfe3765c782282b7ec /nexus/post_place.cc | |
parent | 1bf202adcd1028035dc28a723666fc424ceb6831 (diff) | |
download | nextpnr-c6fa1a179aa8c79d335ba03814ea71d871c87577.tar.gz nextpnr-c6fa1a179aa8c79d335ba03814ea71d871c87577.tar.bz2 nextpnr-c6fa1a179aa8c79d335ba03814ea71d871c87577.zip |
nexus: Use new cluster API
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'nexus/post_place.cc')
-rw-r--r-- | nexus/post_place.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/nexus/post_place.cc b/nexus/post_place.cc index b712aea3..b6817b57 100644 --- a/nexus/post_place.cc +++ b/nexus/post_place.cc @@ -32,10 +32,7 @@ struct NexusPostPlaceOpt NexusPostPlaceOpt(Context *ctx) : ctx(ctx), tmg(ctx){}; - inline bool is_constrained(CellInfo *cell) - { - return cell->constr_parent != nullptr || !cell->constr_children.empty(); - } + inline bool is_constrained(CellInfo *cell) { return cell->cluster != ClusterId(); } bool swap_cell_placement(CellInfo *cell, BelId new_bel) { |