diff options
author | David Shah <davey1576@gmail.com> | 2018-06-29 19:58:08 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-29 19:58:08 +0200 |
commit | 302ccc14cfa4344aeefa413e4d686e1c279552fa (patch) | |
tree | 8cca689439240961e11f628760b86e7f25058063 /ice40/cells.h | |
parent | 27e7bc3b4bb04b395db6456b71f31f98607a4298 (diff) | |
download | nextpnr-302ccc14cfa4344aeefa413e4d686e1c279552fa.tar.gz nextpnr-302ccc14cfa4344aeefa413e4d686e1c279552fa.tar.bz2 nextpnr-302ccc14cfa4344aeefa413e4d686e1c279552fa.zip |
ice40: UltraPlus SPRAM working
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/cells.h')
-rw-r--r-- | ice40/cells.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ice40/cells.h b/ice40/cells.h index eb0007aa..9f99835d 100644 --- a/ice40/cells.h +++ b/ice40/cells.h @@ -67,6 +67,8 @@ inline bool is_sb_lfosc(const BaseCtx *ctx, const CellInfo *cell) { return cell- inline bool is_sb_hfosc(const BaseCtx *ctx, const CellInfo *cell) { return cell->type == ctx->id("SB_HFOSC"); } +inline bool is_sb_spram(const BaseCtx *ctx, const CellInfo *cell) { return cell->type == ctx->id("SB_SPRAM256KA"); } + // 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 |