aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rtl/trng_csprng.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rtl/trng_csprng.v b/src/rtl/trng_csprng.v
index e8cdc44..1fa6135 100644
--- a/src/rtl/trng_csprng.v
+++ b/src/rtl/trng_csprng.v
@@ -65,6 +65,10 @@ module trng_csprng(
//----------------------------------------------------------------
// Internal constant and parameter definitions.
//----------------------------------------------------------------
+ localparam ADDR_NAME0 = 8'h00;
+ localparam ADDR_NAME1 = 8'h01;
+ localparam ADDR_VERSION = 8'h02;
+
localparam ADDR_CTRL = 8'h10;
localparam CTRL_ENABLE_BIT = 0;
localparam CTRL_SEED_BIT = 1;
@@ -95,6 +99,10 @@ module trng_csprng(
localparam DEFAULT_NUM_ROUNDS = 5'h18;
localparam DEFAULT_NUM_BLOCKS = 64'h1000000000000000;
+ parameter CORE_NAME0 = 32'h63737072; // "cspr"
+ parameter CORE_NAME1 = 32'h6e672020; // "ng "
+ parameter CORE_VERSION = 32'h302e3530; // "0.50"
+
//----------------------------------------------------------------
// Registers including update variables and write enable.