aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r--common/nextpnr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index c2fe5192..ed227fb6 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -664,6 +664,14 @@ struct CellInfo : ArchCellInfo
void unsetParam(IdString name);
void setAttr(IdString name, Property value);
void unsetAttr(IdString name);
+
+ // return true if the cell has placement constraints (optionally excluding the case where the only case is an
+ // absolute z constraint)
+ bool isConstrained(bool include_abs_z_constr = true) const;
+ // check whether a bel complies with the cell's region constraint
+ bool testRegion(BelId bel) const;
+ // get the constrained location for this cell given a provisional location for its parent
+ Loc getConstrainedLoc(Loc parent_loc) const;
};
enum TimingPortClass