diff options
author | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-23 16:58:11 +0100 |
---|---|---|
committer | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-24 02:55:38 +0100 |
commit | db31c0625bb722dd9c42fead97d3988659656648 (patch) | |
tree | df7eb1be9ab90728c61010a40d7c73dfe9ee4089 /ice40/cells.h | |
parent | 2b1f7875bb8c3a761dfb9db21706f918b58be9c3 (diff) | |
download | nextpnr-db31c0625bb722dd9c42fead97d3988659656648.tar.gz nextpnr-db31c0625bb722dd9c42fead97d3988659656648.tar.bz2 nextpnr-db31c0625bb722dd9c42fead97d3988659656648.zip |
ice40: Fail early on SB_PLL40_*_PAD cells
Diffstat (limited to 'ice40/cells.h')
-rw-r--r-- | ice40/cells.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ice40/cells.h b/ice40/cells.h index 404f401c..4bc50e8a 100644 --- a/ice40/cells.h +++ b/ice40/cells.h @@ -78,6 +78,13 @@ inline bool is_sb_pll40(const BaseCtx *ctx, const CellInfo *cell) cell->type == ctx->id("SB_PLL40_2F_CORE"); } +inline bool is_sb_pll40_pad(const BaseCtx *ctx, const CellInfo *cell) +{ + return cell->type == ctx->id("SB_PLL40_PAD") || cell->type == ctx->id("SB_PLL40_2_PAD") || + cell->type == ctx->id("SB_PLL40_2F_PAD"); +} + + uint8_t sb_pll40_type(const BaseCtx *ctx, const CellInfo *cell); // Convert a SB_LUT primitive to (part of) an ICESTORM_LC, swapping ports |