ice40/cells_sim.v: Add support for RGB_DRV/LED_DRV_CUR for u4k
authorSimon Schubert <2@0x2c.org>
Mon, 10 Jun 2019 09:49:08 +0000 (11:49 +0200)
committerSimon Schubert <2@0x2c.org>
Mon, 10 Jun 2019 09:49:08 +0000 (11:49 +0200)
techlibs/ice40/cells_sim.v

index e89405b22e52332a2c6acd59688683c0dad1f23a..f9945b2b52dd33b1082ee99ea7b9f0c036c9b23b 100644 (file)
@@ -973,6 +973,30 @@ parameter RGB1_CURRENT = "0b000000";
 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,