//ISExst: FF/Latch ddrc_test01.axibram_write_i.waddr_i.fill[4] has a constant value of 0 in block <ddrc_test01>. This FF/Latch will be trimmed during the optimization process.
//ISExst: FF/Latch ddrc_test01.axibram_read_i.raddr_i.fill[4] has a constant value of 0 in block <ddrc_test01>. This FF/Latch will be trimmed during the optimization process.
//ISExst: FF/Latch ddrc_test01.axibram_write_i.wdata_i.fill[4] has a constant value of 0 in block <ddrc_test01>. This FF/Latch will be trimmed during the optimization process.
assignnext_fill=fill[4:0]+((we&&~re)?1:((~we&&re)?5'b11111:5'b00000));//SuppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 5-bit target.
assignnext_fill=fill[DATA_DEPTH:0]+((we&&~re)?1:((~we&&re)?-1:0));//S uppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 5-bit target.
always@(posedgeclkorposedgerst)begin
always@(posedgeclkorposedgerst)begin
if(rst)fill<=0;
if(rst)fill<=0;
elseif(we&&~re)fill<=fill+1;//SuppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 5-bit target.
elsefill<=next_fill;
elseif(~we&&re)fill<=fill-1;//SuppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 5-bit target.
// else if (we && ~re) fill <= fill+1; //S uppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 5-bit target.
// else if (~we && re) fill <= fill-1; //S uppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 5-bit target.
if(rst)wa<=0;
if(rst)wa<=0;
elseif(wem)wa<=wa+1;//SuppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 4-bit target.
elseif(wem)wa<=wa+1;//SuppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 4-bit target.
if(rst)ra<=1;// 0;
if(rst)ra<=1;// 0;
elseif(re)ra<=ra+1;//now ra is 1 ahead //SuppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 4-bit target.
elseif(re)ra<=ra+1;//now ra is 1 ahead //SuppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 4-bit target.
elseif(!nempty)ra<=wa+1;// Just recover from bit errors TODO: fix //SuppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 4-bit target.
elseif(!nempty)ra<=wa+1;// Just recover from bit errors TODO: fix //SuppressThisWarning ISExst Result of 32-bit expression is truncated to fit in 4-bit target.