From fc8c9324320af3fc258df33f176583506ea5de38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Thu, 28 May 2015 14:01:41 +0200 Subject: 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); -- cgit v1.2.3