aboutsummaryrefslogtreecommitdiff
path: root/src/rtl
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-06-29 10:46:35 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-06-29 10:46:35 +0200
commit7fe900da33635fd343a7ba585624a77f5dfd79af (patch)
treed5f1dc670f93dfdf0fdffeead33c4aaf0f0bacff /src/rtl
parentd03e0136f3d48d1c5168921b2997bb629204edf6 (diff)
Fixed bugs in the API decoding logic.
Diffstat (limited to 'src/rtl')
-rw-r--r--src/rtl/keywrap.v8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rtl/keywrap.v b/src/rtl/keywrap.v
index 3c3ddc1..54bc547 100644
--- a/src/rtl/keywrap.v
+++ b/src/rtl/keywrap.v
@@ -265,10 +265,10 @@ module keywrap(
if (address == ADDR_RLEN)
config_we = 1'h1;
- if (ADDR_A_LSB)
+ if (address == ADDR_A_LSB)
a0_we = 1'h1;
- if (ADDR_A_MSB)
+ if (address == ADDR_A_MSB)
a1_we = 1'h1;
if ((address >= ADDR_KEY0) && (address <= ADDR_KEY7))
@@ -295,10 +295,10 @@ module keywrap(
end
endcase // case (address)
- if (ADDR_A_LSB)
+ if (address == ADDR_A_LSB)
tmp_read_data = core_a_result[31 : 0];
- if (ADDR_A_MSB)
+ if (address == ADDR_A_MSB)
tmp_read_data = core_a_result[63 : 32];
if (address == ADDR_READ_DATA)