aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-07-05 15:43:02 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-07-05 15:43:02 +0200
commit96463cb7129b5998abe02e9a62b9094dff6b3a74 (patch)
tree66f3e681472e164f6a84a1f908ca88991ab0b7fb /src
parent9897e1e85a8b3e0c61444da792522cc4f5a58534 (diff)
Fixing block counter init bug. Enabling detailed debugging. Fixing minor nits.
Diffstat (limited to 'src')
-rw-r--r--src/rtl/keywrap_core.v2
-rw-r--r--src/tb/tb_keywrap.v8
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);