From 7fe900da33635fd343a7ba585624a77f5dfd79af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Fri, 29 Jun 2018 10:46:35 +0200 Subject: Fixed bugs in the API decoding logic. --- src/rtl/keywrap.v | 8 ++++---- 1 file 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) -- cgit v1.2.3