diff options
author | gatecat <gatecat@ds0.me> | 2021-02-23 21:53:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 21:53:00 +0000 |
commit | 85af066d4f5a189ccdc6c7d6bafabb319a946901 (patch) | |
tree | eb49451604c28c4b5444370508983681edbfd1ae /common/nextpnr.h | |
parent | 20f0ba9526abfb8c39fa16099f0eefd2c0555eac (diff) | |
parent | 162793aa87c1be7571ee27445205ce267f18c0c7 (diff) | |
download | nextpnr-85af066d4f5a189ccdc6c7d6bafabb319a946901.tar.gz nextpnr-85af066d4f5a189ccdc6c7d6bafabb319a946901.tar.bz2 nextpnr-85af066d4f5a189ccdc6c7d6bafabb319a946901.zip |
Merge pull request #594 from YosysHQ/gatecat/heap-tidying
Tidying up HeAP
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r-- | common/nextpnr.h | 8 |
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 |