diff options
Diffstat (limited to 'ice40/cells.h')
-rw-r--r-- | ice40/cells.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ice40/cells.h b/ice40/cells.h index 3cf0b718..660c7265 100644 --- a/ice40/cells.h +++ b/ice40/cells.h @@ -50,6 +50,9 @@ inline bool is_ff(const CellInfo *cell) // Return true if a cell is a SB_IO inline bool is_sb_io(const CellInfo *cell) { return cell->type == "SB_IO"; } +// Return true if a cell is a global buffer +inline bool is_gbuf(const CellInfo *cell) {return cell->type == "SB_GB"; } + // Convert a SB_LUT primitive to (part of) an ICESTORM_LC, swapping ports // as needed. Set no_dff if a DFF is not being used, so that the output // can be reconnected @@ -64,6 +67,9 @@ void dff_to_lc(CellInfo *dff, CellInfo *lc, bool pass_thru_lut = false); // Convert a nextpnr IO buffer to a SB_IO void nxio_to_sb(CellInfo *nxio, CellInfo *sbio); +// Return true if a net is a global net +bool is_global_net(NetInfo *net); + NEXTPNR_NAMESPACE_END #endif |