[Cryptech-Commits] [user/js/keywrap] branch master updated: Fixing block counter init bug. Enabling detailed debugging. Fixing minor nits.
git at cryptech.is
git at cryptech.is
Thu Jul 5 13:43:25 UTC 2018
This is an automated email from the git hooks/post-receive script.
joachim at secworks.se pushed a commit to branch master
in repository user/js/keywrap.
The following commit(s) were added to refs/heads/master by this push:
new 96463cb Fixing block counter init bug. Enabling detailed debugging. Fixing minor nits.
96463cb is described below
commit 96463cb7129b5998abe02e9a62b9094dff6b3a74
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Thu Jul 5 15:43:02 2018 +0200
Fixing block counter init bug. Enabling detailed debugging. Fixing minor nits.
---
src/rtl/keywrap_core.v | 2 +-
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);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list