diff options
author | Paul Selkirk <paul@psgd.org> | 2015-03-25 01:03:24 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2015-03-25 01:03:24 -0400 |
commit | 371b7e3e652010015aa1d991163df4606aae8aea (patch) | |
tree | 6c34f159aac012952fd1109781547e52bd55704d | |
parent | e824aac0bcc65c877cb22a0168ffa7735ee75677 (diff) |
register data for eim output
-rw-r--r-- | src/rtl/avalanche_entropy.v | 11 |
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 //====================================================================== |