aboutsummaryrefslogtreecommitdiff
path: root/src/rtl
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-11-06 16:40:14 +0100
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-11-06 16:40:14 +0100
commit42d63504f02f895a7b89dc164571c4b0d21cf8d4 (patch)
treec261a6b2c3b25b59bc607303c3f9abee0a343f51 /src/rtl
parent8b4f7c06886b3cb937d11fe9d2bd9a4f62a6d621 (diff)
Fixed incorrect address used for the key. Added testcase to verify reading of status word.
Diffstat (limited to 'src/rtl')
-rw-r--r--src/rtl/keywrap_mkmif.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtl/keywrap_mkmif.v b/src/rtl/keywrap_mkmif.v
index ad2121e..e2b9302 100644
--- a/src/rtl/keywrap_mkmif.v
+++ b/src/rtl/keywrap_mkmif.v
@@ -331,7 +331,7 @@ module keywrap_mkmif (
if (key_word_ctr_reg < 8)
begin
mkm_read_op = 1'h1;
- mkm_addr_new = MKM_STATUS_WORD + {key_word_ctr_reg, 2'h0};
+ mkm_addr_new = MKM_KEY_BASE_WORD + {key_word_ctr_reg, 2'h0};
mkm_addr_we = 1'h1;
keywrap_mkmif_ctrl_new = CTRL_WRITE_KEY_WAIT;
keywrap_mkmif_ctrl_we = 1'h1;
@@ -361,7 +361,7 @@ module keywrap_mkmif (
if (key_word_ctr_reg < 8)
begin
mkm_write_op = 1'h1;
- mkm_addr_new = MKM_STATUS_WORD + {key_word_ctr_reg, 2'h0};
+ mkm_addr_new = MKM_KEY_BASE_WORD + {key_word_ctr_reg, 2'h0};
mkm_addr_we = 1'h1;
mkm_write_data_new = wr_key[key_word_ctr_reg * 32 +: 32];
mkm_write_data_we = 1'h1;