From 5742813ab43fec9fa90d970f086f1e266875b8f3 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Tue, 17 Nov 2015 23:40:22 -0500 Subject: Harmonize status valid bit with other cores. --- src/rtl/avalanche_entropy.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3