aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);