[Cryptech-Commits] [staging/core/rng/rosc_entropy] 11/11: Added addresses and hard coded strings for name and version accessible from API. Updated API addresses.
git at cryptech.is
git at cryptech.is
Tue Mar 17 13:18:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository staging/core/rng/rosc_entropy.
commit a7b141c2ef441c775ed5d3bf96348ab00334075d
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Fri Nov 14 13:18:24 2014 +0100
Added addresses and hard coded strings for name and version accessible from API. Updated API addresses.
---
src/rtl/rosc_entropy.v | 37 ++++++++++++++++++++++++++++++-------
1 file changed, 30 insertions(+), 7 deletions(-)
diff --git a/src/rtl/rosc_entropy.v b/src/rtl/rosc_entropy.v
index c9600fb..0a7e60b 100644
--- a/src/rtl/rosc_entropy.v
+++ b/src/rtl/rosc_entropy.v
@@ -64,22 +64,30 @@ module rosc_entropy(
//----------------------------------------------------------------
// Parameters.
//----------------------------------------------------------------
- parameter ADDR_CTRL = 8'h00;
+ parameter ADDR_NAME0 = 8'h00;
+ parameter ADDR_NAME1 = 8'h01;
+ parameter ADDR_VERSION = 8'h02;
+
+ parameter ADDR_CTRL = 8'h10;
parameter CTRL_ENABLE_BIT = 0;
- parameter ADDR_STATUS = 8'h01;
+ parameter ADDR_STATUS = 8'h11;
parameter STATUS_ENTROPY_VALID_BIT = 0;
- parameter ADDR_OP_A = 8'h08;
- parameter ADDR_OP_B = 8'h09;
+ parameter ADDR_OP_A = 8'h18;
+ parameter ADDR_OP_B = 8'h19;
- parameter ADDR_ENTROPY = 8'h10;
- parameter ADDR_RAW = 8'h20;
- parameter ADDR_ROSC_OUTPUTS = 8'h21;
+ parameter ADDR_ENTROPY = 8'h20;
+ parameter ADDR_RAW = 8'h21;
+ parameter ADDR_ROSC_OUTPUTS = 8'h22;
parameter DEFAULT_OP_A = 32'haaaaaaaa;
parameter DEFAULT_OP_B = ~DEFAULT_OP_A;
+ parameter CORE_NAME0 = 32'h726f7363; // "rosc"
+ parameter CORE_NAME1 = 32'h20656e74; // " ent"
+ parameter CORE_VERSION = 32'h302e3130; // "0.10"
+
//----------------------------------------------------------------
// Registers including update variables and write enable.
@@ -236,6 +244,21 @@ module rosc_entropy(
else
begin
case (address)
+ ADDR_NAME0:
+ begin
+ tmp_read_data = CORE_NAME0;
+ end
+
+ ADDR_NAME1:
+ begin
+ tmp_read_data = CORE_NAME1;
+ end
+
+ ADDR_VERSION:
+ begin
+ tmp_read_data = CORE_VERSION;
+ end
+
ADDR_CTRL:
begin
tmp_read_data[CTRL_ENABLE_BIT] = enable_reg;
More information about the Commits
mailing list