aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/cells.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-12 14:25:12 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-12 14:25:12 +0200
commitd62e341d5a3183d6fdb7168afb978068a396e9a4 (patch)
tree6371f1e406aa80c41fcec87270ed815b8eb35605 /ice40/cells.h
parent391d49c13ec675e263115d18481d4b842622b712 (diff)
parent9ee6a6e1149e35bcca3c1781f6ce84b11dc80296 (diff)
downloadnextpnr-d62e341d5a3183d6fdb7168afb978068a396e9a4.tar.gz
nextpnr-d62e341d5a3183d6fdb7168afb978068a396e9a4.tar.bz2
nextpnr-d62e341d5a3183d6fdb7168afb978068a396e9a4.zip
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'ice40/cells.h')
-rw-r--r--ice40/cells.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ice40/cells.h b/ice40/cells.h
index 1c2e0d0f..34a034cd 100644
--- a/ice40/cells.h
+++ b/ice40/cells.h
@@ -47,6 +47,11 @@ inline bool is_ff(const CellInfo *cell)
cell->type == "SB_DFFNESS" || cell->type == "SB_DFFNES";
}
+// 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
+void lut_to_lc(CellInfo *lut, CellInfo *lc, bool no_dff = true);
+
// Convert a SB_DFFx primitive to (part of) an ICESTORM_LC, setting parameters
// and reconnecting signals as necessary. If pass_thru_lut is True, the LUT will
// be configured as pass through and D connected to I0, otherwise D will be