aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/cells.h
diff options
context:
space:
mode:
authorSimon Schubert <2@0x2c.org>2019-06-10 11:30:01 +0200
committerSimon Schubert <2@0x2c.org>2019-06-10 14:04:25 +0200
commit88eeafae12b78798f6b886b2d4193b5fa64bac4c (patch)
treeeaff7c02dc6db212f6b147a5193b1a1ddf2b6ab0 /ice40/cells.h
parent187db92b0571b87360516598e88f36cdb1f33349 (diff)
downloadnextpnr-88eeafae12b78798f6b886b2d4193b5fa64bac4c.tar.gz
nextpnr-88eeafae12b78798f6b886b2d4193b5fa64bac4c.tar.bz2
nextpnr-88eeafae12b78798f6b886b2d4193b5fa64bac4c.zip
ice40: add RGB_DRV/LED_DRV_CUR support for u4k
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 ec4d560d..25a98573 100644
--- a/ice40/cells.h
+++ b/ice40/cells.h
@@ -76,6 +76,10 @@ inline bool is_sb_mac16(const BaseCtx *ctx, const CellInfo *cell) { return cell-
inline bool is_sb_rgba_drv(const BaseCtx *ctx, const CellInfo *cell) { return cell->type == ctx->id("SB_RGBA_DRV"); }
+inline bool is_sb_rgb_drv(const BaseCtx *ctx, const CellInfo *cell) { return cell->type == ctx->id("SB_RGB_DRV"); }
+
+inline bool is_sb_led_drv_cur(const BaseCtx *ctx, const CellInfo *cell) { return cell->type == ctx->id("SB_LED_DRV_CUR"); }
+
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"); }