mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-02-08 19:08:44 -05:00
Add dummy LED macro driver module needed for simulation
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
61598f57e5
commit
cb2fd573b3
22
hw/application_fpga/core/tk1/tb/sb_rgba_drv.v
Normal file
22
hw/application_fpga/core/tk1/tb/sb_rgba_drv.v
Normal 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
|
@ -12,7 +12,7 @@
|
|||||||
#===================================================================
|
#===================================================================
|
||||||
|
|
||||||
TOP_SRC=../rtl/tk1.v
|
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 = iverilog
|
||||||
CC_FLAGS = -Wall
|
CC_FLAGS = -Wall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user