aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/cells.h
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-06-10 15:11:56 +0100
committerGitHub <noreply@github.com>2019-06-10 15:11:56 +0100
commit29adacf18eaaad7e38ec5b2dd9d1f6ccf9c70c18 (patch)
treeeaff7c02dc6db212f6b147a5193b1a1ddf2b6ab0 /ice40/cells.h
parent187db92b0571b87360516598e88f36cdb1f33349 (diff)
parent88eeafae12b78798f6b886b2d4193b5fa64bac4c (diff)
downloadnextpnr-29adacf18eaaad7e38ec5b2dd9d1f6ccf9c70c18.tar.gz
nextpnr-29adacf18eaaad7e38ec5b2dd9d1f6ccf9c70c18.tar.bz2
nextpnr-29adacf18eaaad7e38ec5b2dd9d1f6ccf9c70c18.zip
Merge pull request #288 from corecode/u4k
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"); }