mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-01-23 13:51:07 -05:00
Add test7: Control of LED RGB outputs.
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
480f4e3d45
commit
394e437c91
@ -525,6 +525,28 @@ module tb_tk1();
|
||||
endtask // test6
|
||||
|
||||
|
||||
//----------------------------------------------------------------
|
||||
// test7()
|
||||
// LED control.
|
||||
//----------------------------------------------------------------
|
||||
task test7;
|
||||
begin
|
||||
tc_ctr = tc_ctr + 1;
|
||||
|
||||
$display("");
|
||||
$display("--- test7: LED control started.");
|
||||
|
||||
$display("--- test7: LEDs R: 0x%1x, G: 0x%1x, B: 0x%1x", tb_led_r, tb_led_g, tb_led_g);
|
||||
$display("--- test7: Writing to LED control address to invert LED output.");
|
||||
write_word(ADDR_LED, 32'h0);
|
||||
$display("--- test7: LEDs R: 0x%1x, G: 0x%1x, B: 0x%1x", tb_led_r, tb_led_g, tb_led_g);
|
||||
|
||||
$display("--- test7: completed.");
|
||||
$display("");
|
||||
end
|
||||
endtask // test7
|
||||
|
||||
|
||||
//----------------------------------------------------------------
|
||||
// tk1_test
|
||||
//----------------------------------------------------------------
|
||||
@ -544,6 +566,7 @@ module tb_tk1();
|
||||
test4();
|
||||
test5();
|
||||
test6();
|
||||
test7();
|
||||
|
||||
display_test_result();
|
||||
$display("");
|
||||
|
Loading…
Reference in New Issue
Block a user