diff options
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/arch.h | 5 |
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 |