aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/cells.h
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-19 16:16:10 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-19 16:16:10 +0200
commit8e26e4381be1e95479965756feba0237bd6e0582 (patch)
treefc94732f86ba9500a11b8f72c4f363d1f51ad8d0 /ice40/cells.h
parent3bf68753bb6b4de2a970268849752dc05cde7795 (diff)
downloadnextpnr-8e26e4381be1e95479965756feba0237bd6e0582.tar.gz
nextpnr-8e26e4381be1e95479965756feba0237bd6e0582.tar.bz2
nextpnr-8e26e4381be1e95479965756feba0237bd6e0582.zip
ice40: WIP SB_CARRY packer
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/cells.h')
-rw-r--r--ice40/cells.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ice40/cells.h b/ice40/cells.h
index 19568ed0..36c1ba19 100644
--- a/ice40/cells.h
+++ b/ice40/cells.h
@@ -60,6 +60,16 @@ inline bool is_ff(const Context *ctx, const CellInfo *cell)
cell->type == ctx->id("SB_DFFNES");
}
+inline bool is_carry(const Context *ctx, const CellInfo *cell)
+{
+ return cell->type == ctx->id("SB_CARRY");
+}
+
+inline bool is_lc(const Context *ctx, const CellInfo *cell)
+{
+ return cell->type == ctx->id("ICESTORM_LC");
+}
+
// Return true if a cell is a SB_IO
inline bool is_sb_io(const Context *ctx, const CellInfo *cell)
{