aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.h
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-01-28 15:40:26 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-02 07:34:56 -0800
commit2285c8dbbdbc5b7e718fa849952c560bef69a8fc (patch)
tree0bfeaff2dd647b0139e19ca97c50d374f4c45fa7 /ice40/arch.h
parentefc98c517eb1d2eb4a8ecc2ae82e770aaa1a0edd (diff)
downloadnextpnr-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 'ice40/arch.h')
-rw-r--r--ice40/arch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ice40/arch.h b/ice40/arch.h
index fbf26e78..60171a4c 100644
--- a/ice40/arch.h
+++ b/ice40/arch.h
@@ -821,6 +821,11 @@ struct Arch : BaseCtx
// Perform placement validity checks, returning false on failure (all
// implemented in arch_place.cc)
+ // Whether this cell type can be placed at this BEL.
+ bool isValidBelForCellType(IdString cell_type, BelId bel) const {
+ return cell_type == getBelType(bel);
+ }
+
// Whether or not a given cell can be placed at a given Bel
// This is not intended for Bel type checks, but finer-grained constraints
// such as conflicting set/reset signals, etc