util_axis_fifo: Remove m_axis_addr_next output from the address modules

Remove m_axis_addr_next output from the address modules since it is no
longer used.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2015-09-21 17:48:35 +02:00
parent 5c22e622de
commit cd93beb10f
3 changed files with 2 additions and 14 deletions

View File

@ -41,7 +41,6 @@ module fifo_address_gray (
input m_axis_aresetn,
input m_axis_ready,
output reg m_axis_valid,
output [ADDRESS_WIDTH-1:0] m_axis_raddr_next,
output reg [ADDRESS_WIDTH:0] m_axis_level,
input s_axis_aclk,
@ -70,7 +69,6 @@ wire [ADDRESS_WIDTH:0] m_axis_raddr_gray_next;
wire [ADDRESS_WIDTH:0] m_axis_waddr_gray;
assign s_axis_waddr = _s_axis_waddr[ADDRESS_WIDTH-1:0];
assign m_axis_raddr_next = _m_axis_raddr_next[ADDRESS_WIDTH-1:0];
always @(*)
begin

View File

@ -41,7 +41,6 @@ module fifo_address_gray_pipelined (
input m_axis_aresetn,
input m_axis_ready,
output reg m_axis_valid,
output [ADDRESS_WIDTH-1:0] m_axis_raddr_next,
output [ADDRESS_WIDTH-1:0] m_axis_raddr,
output reg [ADDRESS_WIDTH:0] m_axis_level,
@ -65,7 +64,6 @@ reg [ADDRESS_WIDTH:0] _m_axis_raddr_next;
wire [ADDRESS_WIDTH:0] _m_axis_waddr;
assign s_axis_waddr = _s_axis_waddr[ADDRESS_WIDTH-1:0];
assign m_axis_raddr_next = _m_axis_raddr_next[ADDRESS_WIDTH-1:0];
assign m_axis_raddr = _m_axis_raddr[ADDRESS_WIDTH-1:0];
always @(*)

View File

@ -43,7 +43,6 @@ module fifo_address_sync (
input m_axis_ready,
output reg m_axis_valid,
output reg [ADDRESS_WIDTH-1:0] m_axis_raddr,
output reg [ADDRESS_WIDTH-1:0] m_axis_raddr_next,
output [ADDRESS_WIDTH:0] m_axis_level,
output reg s_axis_ready,
@ -65,14 +64,6 @@ assign m_axis_level = level;
wire read = m_axis_ready & m_axis_valid;
wire write = s_axis_ready & s_axis_valid;
always @(*)
begin
if (read)
m_axis_raddr_next <= m_axis_raddr + 1'b1;
else
m_axis_raddr_next <= m_axis_raddr;
end
always @(posedge clk)
begin
if (resetn == 1'b0) begin
@ -81,7 +72,8 @@ begin
end else begin
if (write)
s_axis_waddr <= s_axis_waddr + 1'b1;
m_axis_raddr <= m_axis_raddr_next;
if (read)
m_axis_raddr <= m_axis_raddr + 1'b1;
end
end