aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2015-11-16 14:27:10 -0500
committerPaul Selkirk <paul@psgd.org>2015-11-16 14:27:10 -0500
commite7a62820110fd6b90187855073fb1317d8586bd3 (patch)
tree60bfcf3dc559e5ffc114c8781b933d3c99dbb709
parent23ffa6a5939d49cee92ca9657e1ef7781e5a55b9 (diff)
harmonize ctrl and status addresses with other cores
-rw-r--r--src/rtl/trng_csprng.v4
-rw-r--r--src/rtl/trng_mixer.v4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/rtl/trng_csprng.v b/src/rtl/trng_csprng.v
index d33e72a..c0a0c12 100644
--- a/src/rtl/trng_csprng.v
+++ b/src/rtl/trng_csprng.v
@@ -69,11 +69,11 @@ module trng_csprng(
localparam ADDR_NAME1 = 8'h01;
localparam ADDR_VERSION = 8'h02;
- localparam ADDR_CTRL = 8'h10;
+ localparam ADDR_CTRL = 8'h08;
localparam CTRL_ENABLE_BIT = 0;
localparam CTRL_SEED_BIT = 1;
- localparam ADDR_STATUS = 8'h11;
+ localparam ADDR_STATUS = 8'h09;
localparam STATUS_RND_VALID_BIT = 0;
localparam ADDR_STAT_BLOCKS_LOW = 8'h14;
diff --git a/src/rtl/trng_mixer.v b/src/rtl/trng_mixer.v
index d192090..32d9216 100644
--- a/src/rtl/trng_mixer.v
+++ b/src/rtl/trng_mixer.v
@@ -103,10 +103,10 @@ module trng_mixer(
localparam ADDR_NAME1 = 8'h01;
localparam ADDR_VERSION = 8'h02;
- localparam ADDR_MIXER_CTRL = 8'h10;
+ localparam ADDR_MIXER_CTRL = 8'h08;
localparam MIXER_CTRL_ENABLE_BIT = 0;
localparam MIXER_CTRL_RESTART_BIT = 1;
- localparam ADDR_MIXER_STATUS = 8'h11;
+ localparam ADDR_MIXER_STATUS = 8'h09;
localparam ADDR_MIXER_TIMEOUT = 8'h20;
localparam DEFAULT_ENTROPY_TIMEOUT = 24'h100000;