aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2015-05-28 14:01:41 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2015-05-28 14:01:41 +0200
commitfc8c9324320af3fc258df33f176583506ea5de38 (patch)
treee4ae3cb045b2d512c3ebe9f3db6e10d5802f4ef7
parentd35e060d1d66691e63f2d20c2500723b4bae8566 (diff)
Corrected where config bits are.
-rw-r--r--src/tb/tb_aes.v6
1 files 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);