diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-08-16 19:04:03 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-08-16 19:04:03 +0200 |
commit | b1b208d97c5a47c4651ec0c15ba41a0b3db93723 (patch) | |
tree | 877ce2108a11938acf7beddb2739791b5669704b /src/tb/tb_keywrap.v | |
parent | b75bd86d3cb8cfd540253b9e29a791582daf3945 (diff) |
Adding delay cycle to API regs to match the latency for accessing the blockRAM. Added test case that checks access to the API regs.
Diffstat (limited to 'src/tb/tb_keywrap.v')
-rw-r--r-- | src/tb/tb_keywrap.v | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tb/tb_keywrap.v b/src/tb/tb_keywrap.v index c28b5a6..412bdb2 100644 --- a/src/tb/tb_keywrap.v +++ b/src/tb/tb_keywrap.v @@ -359,6 +359,28 @@ module tb_keywrap(); //---------------------------------------------------------------- + // test_core_access + // Simple test that we can perform read access to regs + // in the core. + //---------------------------------------------------------------- + task test_core_access; + begin : test_core_access + $display("** TC test_core_access START."); + + read_word(ADDR_NAME0); + $display("NAME0: %s", read_data); + read_word(ADDR_NAME1); + $display("NAME1: %s", read_data); + read_word(ADDR_VERSION); + $display("version: %s", read_data); + $display(""); + + $display("** TC test_core_access END."); + end + endtask // test_core_access + + + //---------------------------------------------------------------- // test_kwp_ae_128_1 // Implements wrap test based on NIST KWP_AE 128 bit key // with 248 bit plaintext. @@ -949,6 +971,8 @@ module tb_keywrap(); reset_dut(); dump_dut_state(); + test_core_access(); + test_kwp_ae_128_1(); test_kwp_ad_128_1(); test_kwp_ae_128_2(); |