Add test2: Read out UDI

Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
Joachim Strömbergson 2023-05-09 12:45:07 +02:00 committed by dehanj
parent 6d9890d050
commit 1f47991ac2
No known key found for this signature in database
GPG Key ID: 3707A9DBF4BB8F1A

View File

@ -313,6 +313,26 @@ module tb_tk1();
endtask // test1
//----------------------------------------------------------------
// test2()
// Read out UDI.
//----------------------------------------------------------------
task test2;
begin
tc_ctr = tc_ctr + 1;
$display("");
$display("--- test2: Read out UDI.");
read_word(ADDR_UDI_FIRST, 32'h00010203);
read_word(ADDR_UDI_LAST, 32'h04050607);
$display("--- test2: completed.");
$display("");
end
endtask // test2
//----------------------------------------------------------------
// tk1_test
//----------------------------------------------------------------
@ -325,7 +345,9 @@ module tb_tk1();
init_sim();
reset_dut();
test1();
test2();
display_test_result();
$display("");