From bce36af5ceacb2ae840878b3999c29c86d18ef9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Mon, 27 Apr 2015 14:06:30 +0200 Subject: 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. -- cgit v1.2.3