aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-08-24 11:23:06 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-08-24 11:23:06 +0200
commite2361519ca65645875bf0b533cf9e4726c4e2adf (patch)
treecb38bb629d0d26ded44b4cd009cdcb049e8e85f7 /src
parente27c1afd9801512ad9cb2b2e23b5eeed1a28a381 (diff)
We probably want to be able to read data too.
Diffstat (limited to 'src')
-rw-r--r--src/rtl/keywrap.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtl/keywrap.v b/src/rtl/keywrap.v
index e0bda45..dc18d92 100644
--- a/src/rtl/keywrap.v
+++ b/src/rtl/keywrap.v
@@ -270,7 +270,7 @@ module keywrap #(parameter ADDR_BITS = 15)
api_rd_delay_new = 32'h0;
// api_mux
- if (address[7])
+ if (address[(ADDR_BITS - 1)])
tmp_read_data = core_api_rd_data;
else
tmp_read_data = api_rd_delay_reg;