[Cryptech-Commits] [core/rng/trng] 01/01: Adding name and version fields to the csprng.

git at cryptech.is git at cryptech.is
Mon Apr 27 12:06:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

joachim at secworks.se pushed a commit to branch master
in repository core/rng/trng.

commit bce36af5ceacb2ae840878b3999c29c86d18ef9b
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Mon Apr 27 14:06:30 2015 +0200

    Adding name and version fields to the csprng.
---
 src/rtl/trng_csprng.v | 8 ++++++++
 1 file changed, 8 insertions(+)

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.



More information about the Commits mailing list