aboutsummaryrefslogtreecommitdiff
path: root/src/rtl/keywrap_mem.v
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-07-05 10:24:58 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-07-05 10:24:58 +0200
commit274862150052b4e62de20a52519a517ef1f9a3ff (patch)
tree7e28400fb1f21888e3ffb8ec497692bf0b690497 /src/rtl/keywrap_mem.v
parent6b15816bff4c0c3ab22bf6d8185da48a263f7727 (diff)
Debugged keywrap processing including A update. All AES operations works correctly. Now we just need to stop processing whe we should.
Diffstat (limited to 'src/rtl/keywrap_mem.v')
-rw-r--r--src/rtl/keywrap_mem.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtl/keywrap_mem.v b/src/rtl/keywrap_mem.v
index dc08bab..6a70ebe 100644
--- a/src/rtl/keywrap_mem.v
+++ b/src/rtl/keywrap_mem.v
@@ -138,10 +138,10 @@ module keywrap_mem (
if (core_we)
begin
- mem0_data = core_wr_data[31 : 0];
+ mem0_data = core_wr_data[63 : 32];
mem0_addr = core_addr;
mem0_we = 1'h1;
- mem1_data = core_wr_data[63 : 32];
+ mem1_data = core_wr_data[31 : 0];
mem1_addr = core_addr;
mem1_we = 1'h1;
end