aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/cells.h
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-13 15:10:42 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-13 15:10:42 +0200
commit14b5e46b5df76973dccd26bb07dc12c26e5d6efc (patch)
treedfdef863b1e195fc0dd660663ca9d0088081f723 /ice40/cells.h
parentd80e60cce210b58c036003f6812eb876c632d19e (diff)
downloadnextpnr-14b5e46b5df76973dccd26bb07dc12c26e5d6efc.tar.gz
nextpnr-14b5e46b5df76973dccd26bb07dc12c26e5d6efc.tar.bz2
nextpnr-14b5e46b5df76973dccd26bb07dc12c26e5d6efc.zip
ice40: Promote one clock to a global buffer
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/cells.h')
-rw-r--r--ice40/cells.h6
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