aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rtl/avalanche_entropy.v11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/rtl/avalanche_entropy.v b/src/rtl/avalanche_entropy.v
index a9f69c9..686dd2d 100644
--- a/src/rtl/avalanche_entropy.v
+++ b/src/rtl/avalanche_entropy.v
@@ -80,7 +80,7 @@ module avalanche_entropy(
parameter CTRL_ENABLE_BIT = 0;
parameter ADDR_STATUS = 8'h11;
- parameter STATUS_ENABLE_VALID_BIT = 0;
+ parameter STATUS_VALID_BIT = 0;
parameter ADDR_ENTROPY = 8'h20;
parameter ADDR_DELTA = 8'h30;
@@ -105,13 +105,14 @@ module avalanche_entropy(
wire [31 : 0] delta;
reg [31 : 0] tmp_read_data;
+ reg [31 : 0] tmp_read_data_reg;
reg tmp_error;
//----------------------------------------------------------------
// Concurrent connectivity for ports etc.
//----------------------------------------------------------------
- assign read_data = tmp_read_data;
+ assign read_data = tmp_read_data_reg;
assign error = tmp_error;
assign security_error = 0;
@@ -234,6 +235,12 @@ module avalanche_entropy(
end // if (cs)
end // api_logic
+ // register data for eim output
+ always @(posedge clk)
+ begin
+ tmp_read_data_reg <= tmp_read_data;
+ end
+
endmodule // avalanche_entropy
//======================================================================