Add dummy LED macro driver module needed for simulation

Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
Joachim Strömbergson 2023-05-09 11:24:54 +02:00 committed by dehanj
parent 61598f57e5
commit cb2fd573b3
No known key found for this signature in database
GPG Key ID: 3707A9DBF4BB8F1A
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,22 @@
module SB_RGBA_DRV (
output wire RGB0,
output wire RGB1,
output wire RGB2,
input wire RGBLEDEN,
input wire RGB0PWM,
input wire RGB1PWM,
input wire RGB2PWM,
input wire CURREN
);
parameter CURRENT_MODE = 1;
parameter RGB0_CURRENT = 8'h0;
parameter RGB1_CURRENT = 8'h0;
parameter RGB2_CURRENT = 8'h0;
assign RGB0 = RGB0PWM;
assign RGB1 = RGB1PWM;
assign RGB2 = RGB2PWM;
endmodule // SB_RGBA_DRV

View File

@ -12,7 +12,7 @@
#===================================================================
TOP_SRC=../rtl/tk1.v
TB_TOP_SRC =../tb/tb_tk1.v
TB_TOP_SRC =../tb/tb_tk1.v ../tb/sb_rgba_drv.v
CC = iverilog
CC_FLAGS = -Wall