diff options
author | Simon Schubert <2@0x2c.org> | 2019-06-10 11:49:08 +0200 |
---|---|---|
committer | Simon Schubert <2@0x2c.org> | 2019-06-10 11:49:08 +0200 |
commit | abf90b040331f9fd48c9e4bdb4bbb952db4c2d04 (patch) | |
tree | eea2f3eae7aa21c389bcdc54d81352a18705d99c /techlibs/ice40/cells_sim.v | |
parent | 5a5cbf64584ddad8d37a1b60887fb0b354800f61 (diff) | |
download | yosys-abf90b040331f9fd48c9e4bdb4bbb952db4c2d04.tar.gz yosys-abf90b040331f9fd48c9e4bdb4bbb952db4c2d04.tar.bz2 yosys-abf90b040331f9fd48c9e4bdb4bbb952db4c2d04.zip |
ice40/cells_sim.v: Add support for RGB_DRV/LED_DRV_CUR for u4k
Diffstat (limited to 'techlibs/ice40/cells_sim.v')
-rw-r--r-- | techlibs/ice40/cells_sim.v | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/techlibs/ice40/cells_sim.v b/techlibs/ice40/cells_sim.v index e89405b22..f9945b2b5 100644 --- a/techlibs/ice40/cells_sim.v +++ b/techlibs/ice40/cells_sim.v @@ -974,6 +974,30 @@ parameter RGB2_CURRENT = "0b000000"; endmodule (* blackbox *) +module SB_LED_DRV_CUR( + input EN, + output LEDPU +); +endmodule + +(* blackbox *) +module SB_RGB_DRV( + input RGBLEDEN, + input RGB0PWM, + input RGB1PWM, + input RGB2PWM, + input RGBPU, + output RGB0, + output RGB1, + output RGB2 +); +parameter CURRENT_MODE = "0b0"; +parameter RGB0_CURRENT = "0b000000"; +parameter RGB1_CURRENT = "0b000000"; +parameter RGB2_CURRENT = "0b000000"; +endmodule + +(* blackbox *) module SB_I2C( input SBCLKI, input SBRWI, |