From abe837e6083aa958edc8db0cd8e0e14705f191e4 Mon Sep 17 00:00:00 2001 From: AndreiGrozav Date: Thu, 2 Jun 2016 17:34:29 +0300 Subject: [PATCH] util_rfifo: Set an offset for the write addres --- library/util_rfifo/util_rfifo.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/util_rfifo/util_rfifo.v b/library/util_rfifo/util_rfifo.v index 67e295cba..939ea820c 100644 --- a/library/util_rfifo/util_rfifo.v +++ b/library/util_rfifo/util_rfifo.v @@ -175,7 +175,7 @@ module util_rfifo ( // internal registers reg [(DATA_WIDTH-1):0] din_wdata = 'd0; - reg [(ADDRESS_WIDTH-1):0] din_waddr = 'd0; + reg [(ADDRESS_WIDTH-1):0] din_waddr = 'hc; reg din_wr = 'd0; reg [ 6:0] din_req_cnt = 'd0; reg [ 7:0] din_enable_m1 = 'd0; @@ -254,7 +254,7 @@ module util_rfifo ( always @(posedge din_clk or negedge din_rstn) begin if (din_rstn == 1'b0) begin - din_waddr <= 'd0; + din_waddr <= 'hc; din_wr <= 1'd0; end else begin if (din_wr == 1'b1) begin