util_rfifo: Set an offset for the write addres

main
AndreiGrozav 2016-06-02 17:34:29 +03:00
parent ebdc7832a7
commit abe837e608
1 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ module util_rfifo (
// internal registers // internal registers
reg [(DATA_WIDTH-1):0] din_wdata = 'd0; 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 din_wr = 'd0;
reg [ 6:0] din_req_cnt = 'd0; reg [ 6:0] din_req_cnt = 'd0;
reg [ 7:0] din_enable_m1 = 'd0; reg [ 7:0] din_enable_m1 = 'd0;
@ -254,7 +254,7 @@ module util_rfifo (
always @(posedge din_clk or negedge din_rstn) begin always @(posedge din_clk or negedge din_rstn) begin
if (din_rstn == 1'b0) begin if (din_rstn == 1'b0) begin
din_waddr <= 'd0; din_waddr <= 'hc;
din_wr <= 1'd0; din_wr <= 1'd0;
end else begin end else begin
if (din_wr == 1'b1) begin if (din_wr == 1'b1) begin