aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/cells.h
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-13 10:50:05 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-13 10:50:05 +0200
commita76f5c5678980c8b2e958252a68ba03676d63229 (patch)
treea9f32a39a91164b36ca55d567baf177bbaece1cc /ice40/cells.h
parentddf549b117987c1e52412b58531c48a6050b51d1 (diff)
downloadnextpnr-a76f5c5678980c8b2e958252a68ba03676d63229.tar.gz
nextpnr-a76f5c5678980c8b2e958252a68ba03676d63229.tar.bz2
nextpnr-a76f5c5678980c8b2e958252a68ba03676d63229.zip
Remove IO buffers when fed by SB_IO
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/cells.h')
-rw-r--r--ice40/cells.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ice40/cells.h b/ice40/cells.h
index 34a034cd..da4e2bd8 100644
--- a/ice40/cells.h
+++ b/ice40/cells.h
@@ -47,6 +47,9 @@ inline bool is_ff(const CellInfo *cell)
cell->type == "SB_DFFNESS" || cell->type == "SB_DFFNES";
}
+// Return true if a cell is a SB_IO
+inline bool is_sb_io(const CellInfo *cell) { return cell->type == "SB_IO"; }
+
// 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