aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rtl/trng_csprng.v4
-rw-r--r--src/rtl/trng_mixer.v1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/rtl/trng_csprng.v b/src/rtl/trng_csprng.v
index c0a0c12..0f886d2 100644
--- a/src/rtl/trng_csprng.v
+++ b/src/rtl/trng_csprng.v
@@ -74,7 +74,7 @@ module trng_csprng(
localparam CTRL_SEED_BIT = 1;
localparam ADDR_STATUS = 8'h09;
- localparam STATUS_RND_VALID_BIT = 0;
+ localparam STATUS_RND_VALID_BIT = 1;
localparam ADDR_STAT_BLOCKS_LOW = 8'h14;
localparam ADDR_STAT_BLOCKS_HIGH = 8'h15;
@@ -428,7 +428,7 @@ module trng_csprng(
tmp_read_data = {30'h00000000, seed_reg, enable_reg};
ADDR_STATUS:
- tmp_read_data = {30'h00000000, ready_reg, rnd_syn};
+ tmp_read_data = {30'h00000000, rnd_syn, ready_reg};
ADDR_STAT_BLOCKS_LOW:
tmp_read_data = block_stat_ctr_reg[31 : 0];
diff --git a/src/rtl/trng_mixer.v b/src/rtl/trng_mixer.v
index 32d9216..9ee0094 100644
--- a/src/rtl/trng_mixer.v
+++ b/src/rtl/trng_mixer.v
@@ -494,7 +494,6 @@ module trng_mixer(
begin : mixer_api_logic
enable_new = 0;
enable_we = 0;
- restart_reg = 0;
restart_new = 0;
entropy_timeout_new = 24'h000000;
entropy_timeout_we = 0;