From 7167afd469c16d15e9a89db4aa767ff10ea060a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Wed, 2 Sep 2015 14:27:05 +0200 Subject: Changed the max number of blocks to force reseed once every 256 TByte. Changed default number of blocks to do reseed once every 16 GByte. --- src/rtl/trng_csprng.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rtl/trng_csprng.v b/src/rtl/trng_csprng.v index 208feb1..ce5b50f 100644 --- a/src/rtl/trng_csprng.v +++ b/src/rtl/trng_csprng.v @@ -104,7 +104,7 @@ module trng_csprng( localparam ADDR_TEST_SEED_W15 = 8'h8f; localparam CIPHER_KEYLEN256 = 1'b1; // 256 bit key. - localparam CIPHER_MAX_BLOCKS = 64'h1000000000000000; + localparam CIPHER_MAX_BLOCKS = 64'h0000000100000000; localparam CTRL_IDLE = 4'h0; localparam CTRL_SEED0 = 4'h1; @@ -119,6 +119,7 @@ module trng_csprng( localparam DEFAULT_NUM_ROUNDS = 5'h18; localparam DEFAULT_NUM_BLOCKS = 64'h1000000000000000; + localparam DEFAULT_NUM_BLOCKS = 64'h0000000001000000; parameter CORE_NAME0 = 32'h63737072; // "cspr" parameter CORE_NAME1 = 32'h6e672020; // "ng " -- cgit v1.2.3