mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-02-02 10:35:01 -05:00
Add test2: Read out UDI
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
6d9890d050
commit
1f47991ac2
@ -313,6 +313,26 @@ module tb_tk1();
|
|||||||
endtask // test1
|
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
|
// tk1_test
|
||||||
//----------------------------------------------------------------
|
//----------------------------------------------------------------
|
||||||
@ -325,7 +345,9 @@ module tb_tk1();
|
|||||||
|
|
||||||
init_sim();
|
init_sim();
|
||||||
reset_dut();
|
reset_dut();
|
||||||
|
|
||||||
test1();
|
test1();
|
||||||
|
test2();
|
||||||
|
|
||||||
display_test_result();
|
display_test_result();
|
||||||
$display("");
|
$display("");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user