diff options
author | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-01-28 15:40:26 -0800 |
---|---|---|
committer | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-02 07:34:56 -0800 |
commit | 2285c8dbbdbc5b7e718fa849952c560bef69a8fc (patch) | |
tree | 0bfeaff2dd647b0139e19ca97c50d374f4c45fa7 /gowin | |
parent | efc98c517eb1d2eb4a8ecc2ae82e770aaa1a0edd (diff) | |
download | nextpnr-2285c8dbbdbc5b7e718fa849952c560bef69a8fc.tar.gz nextpnr-2285c8dbbdbc5b7e718fa849952c560bef69a8fc.tar.bz2 nextpnr-2285c8dbbdbc5b7e718fa849952c560bef69a8fc.zip |
Initial refactoring of placer API.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'gowin')
-rw-r--r-- | gowin/arch.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gowin/arch.h b/gowin/arch.h index 5591744d..100ba5ba 100644 --- a/gowin/arch.h +++ b/gowin/arch.h @@ -422,6 +422,9 @@ struct Arch : BaseCtx // Get the TimingClockingInfo of a port TimingClockingInfo getPortClockingInfo(const CellInfo *cell, IdString port, int index) const; + bool isValidBelForCellType(IdString cell_type, BelId bel) const { + return cell_type == getBelType(bel); + } bool isValidBelForCell(CellInfo *cell, BelId bel) const; bool isBelLocationValid(BelId bel) const; |