aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/cells.h
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2019-03-22 23:29:34 +0100
committerSylvain Munaut <tnt@246tNt.com>2019-03-25 23:48:59 +0100
commitd401e3e1a09e2e5d78f18f32405c82293ce68545 (patch)
treefe46510d61a491a9d1b85ffba102e0eb9c69b8c2 /ice40/cells.h
parentc2d87846d8e6c9603f432c1b021f58023f7625b4 (diff)
downloadnextpnr-d401e3e1a09e2e5d78f18f32405c82293ce68545.tar.gz
nextpnr-d401e3e1a09e2e5d78f18f32405c82293ce68545.tar.bz2
nextpnr-d401e3e1a09e2e5d78f18f32405c82293ce68545.zip
ice40: Add support for SB_I2C and SB_SPI
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'ice40/cells.h')
-rw-r--r--ice40/cells.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ice40/cells.h b/ice40/cells.h
index 93ef3db4..ec4d560d 100644
--- a/ice40/cells.h
+++ b/ice40/cells.h
@@ -78,6 +78,10 @@ inline bool is_sb_rgba_drv(const BaseCtx *ctx, const CellInfo *cell) { return ce
inline bool is_sb_ledda_ip(const BaseCtx *ctx, const CellInfo *cell) { return cell->type == ctx->id("SB_LEDDA_IP"); }
+inline bool is_sb_i2c(const BaseCtx *ctx, const CellInfo *cell) { return cell->type == ctx->id("SB_I2C"); }
+
+inline bool is_sb_spi(const BaseCtx *ctx, const CellInfo *cell) { return cell->type == ctx->id("SB_SPI"); }
+
inline bool is_sb_pll40(const BaseCtx *ctx, const CellInfo *cell)
{
return cell->type == ctx->id("SB_PLL40_PAD") || cell->type == ctx->id("SB_PLL40_2_PAD") ||