diff options
Diffstat (limited to 'src/tb')
-rw-r--r-- | src/tb/tb_aes.v | 6 |
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); |