aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2015-04-27 14:06:30 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2015-04-27 14:06:30 +0200
commitbce36af5ceacb2ae840878b3999c29c86d18ef9b (patch)
tree16420c307a4d6c1b2ef9362b472e645895b1cfe7
parent1afae41cfe177d99488e5fa219accf786fd380bb (diff)
Adding name and version fields to the csprng.
-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.