diff options
Diffstat (limited to 'src/rtl')
-rw-r--r-- | src/rtl/avalanche_entropy.v | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rtl/avalanche_entropy.v b/src/rtl/avalanche_entropy.v index 6ae824a..fc70f5f 100644 --- a/src/rtl/avalanche_entropy.v +++ b/src/rtl/avalanche_entropy.v @@ -80,7 +80,7 @@ module avalanche_entropy( localparam CTRL_ENABLE_BIT = 0; localparam ADDR_STATUS = 8'h09; - localparam STATUS_VALID_BIT = 0; + localparam STATUS_VALID_BIT = 1; localparam ADDR_ENTROPY = 8'h20; localparam ADDR_DELTA = 8'h30; @@ -203,13 +203,13 @@ module avalanche_entropy( ADDR_CTRL: begin - tmp_read_data = {31'h00000000, enable_reg}; + tmp_read_data[CTRL_ENABLE_BIT] = enable_reg; end ADDR_STATUS: begin - tmp_read_data = {31'h00000000, entropy_valid}; - end + tmp_read_data[STATUS_VALID_BIT] = entropy_valid; + end ADDR_ENTROPY: begin |