[Cryptech-Commits] [core/cipher/aes] 01/01: Corrected where config bits are.
git at cryptech.is
git at cryptech.is
Thu May 28 12:01:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
joachim at secworks.se pushed a commit to branch master
in repository core/cipher/aes.
commit fc8c9324320af3fc258df33f176583506ea5de38
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Thu May 28 14:01:41 2015 +0200
Corrected where config bits are.
---
src/tb/tb_aes.v | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/tb/tb_aes.v b/src/tb/tb_aes.v
index f25fcf3..0694250 100644
--- a/src/tb/tb_aes.v
+++ b/src/tb/tb_aes.v
@@ -63,14 +63,14 @@ module tb_aes();
localparam ADDR_CTRL = 8'h08;
localparam CTRL_INIT_BIT = 0;
localparam CTRL_NEXT_BIT = 1;
- localparam CTRL_ENCDEC_BIT = 2;
- localparam CTRL_KEYLEN_BIT = 3;
localparam ADDR_STATUS = 8'h09;
localparam STATUS_READY_BIT = 0;
localparam STATUS_VALID_BIT = 1;
localparam ADDR_CONFIG = 8'h0a;
+ localparam CTRL_ENCDEC_BIT = 2;
+ localparam CTRL_KEYLEN_BIT = 3;
localparam ADDR_KEY0 = 8'h10;
localparam ADDR_KEY1 = 8'h11;
@@ -392,7 +392,7 @@ module tb_aes();
write_block(block);
dump_dut_state();
- write_word(ADDR_CONFIG, (8'h00 + (key_length << 1)+ encdec));
+ write_word(ADDR_CONFIG, (8'h00 + (key_length << 1) + encdec));
write_word(ADDR_CTRL, 8'h02);
#(100 * CLK_PERIOD);
More information about the Commits
mailing list