aboutsummaryrefslogtreecommitdiff
path: root/src/rtl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtl')
-rw-r--r--src/rtl/aes_key_mem.v4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rtl/aes_key_mem.v b/src/rtl/aes_key_mem.v
index 496fc08..b26b870 100644
--- a/src/rtl/aes_key_mem.v
+++ b/src/rtl/aes_key_mem.v
@@ -138,9 +138,11 @@ module aes_key_mem(
if (!reset_n)
begin
- for (i = 0 ; i < 4 ; i = i + 1)
+ for (i = 0 ; i < 14 ; i = i + 1)
key_mem [i] <= 128'h0;
+ prev_key0_reg <= 128'h0;
+ prev_key1_reg <= 128'h0;
rcon_reg <= 8'h0;
ready_reg <= 1'b0;
round_ctr_reg <= 4'h0;