diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-06-29 10:46:35 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-06-29 10:46:35 +0200 |
commit | 7fe900da33635fd343a7ba585624a77f5dfd79af (patch) | |
tree | d5f1dc670f93dfdf0fdffeead33c4aaf0f0bacff | |
parent | d03e0136f3d48d1c5168921b2997bb629204edf6 (diff) |
Fixed bugs in the API decoding logic.
-rw-r--r-- | src/rtl/keywrap.v | 8 |
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) |