Add test7: Control of LED RGB outputs.

Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
Joachim Strömbergson 2023-05-09 14:16:28 +02:00 committed by dehanj
parent 480f4e3d45
commit 394e437c91
No known key found for this signature in database
GPG Key ID: 3707A9DBF4BB8F1A

View File

@ -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("");