diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-07-05 15:43:02 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-07-05 15:43:02 +0200 |
commit | 96463cb7129b5998abe02e9a62b9094dff6b3a74 (patch) | |
tree | 66f3e681472e164f6a84a1f908ca88991ab0b7fb /src | |
parent | 9897e1e85a8b3e0c61444da792522cc4f5a58534 (diff) |
Fixing block counter init bug. Enabling detailed debugging. Fixing minor nits.
Diffstat (limited to 'src')
-rw-r--r-- | src/rtl/keywrap_core.v | 2 | ||||
-rw-r--r-- | src/tb/tb_keywrap.v | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/rtl/keywrap_core.v b/src/rtl/keywrap_core.v index 99736f2..a8e6d73 100644 --- a/src/rtl/keywrap_core.v +++ b/src/rtl/keywrap_core.v @@ -280,7 +280,7 @@ module keywrap_core ( if (block_ctr_set) begin - block_ctr_new = rlen; + block_ctr_new = (rlen - 1); block_ctr_we = 1'h1; end diff --git a/src/tb/tb_keywrap.v b/src/tb/tb_keywrap.v index 545f031..0b9eda3 100644 --- a/src/tb/tb_keywrap.v +++ b/src/tb/tb_keywrap.v @@ -39,9 +39,9 @@ module tb_keywrap(); - parameter DEBUG = 0; - parameter DUMP_TOP = 0; - parameter DUMP_CORE = 0; + parameter DEBUG = 1; + parameter DUMP_TOP = 1; + parameter DUMP_CORE = 1; parameter CLK_HALF_PERIOD = 1; parameter CLK_PERIOD = 2 * CLK_HALF_PERIOD; @@ -492,7 +492,7 @@ module tb_keywrap(); write_word(ADDR_A1, 32'h9c6e8177); - $display("* Contents of memory and dut before wrap processing:"); + $display("* Contents of memory and dut before unwrap processing:"); dump_mem(6); |