1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-30 08:32:52 +08:00

Update FIFO instances

This commit is contained in:
Alex Forencich 2019-07-19 16:17:36 -07:00
parent 00ebe73bdc
commit eb92578699
15 changed files with 33 additions and 25 deletions

View File

@ -54,11 +54,11 @@ module eth_interface #
parameter ENABLE_PADDING = 1,
parameter ENABLE_DIC = 1,
parameter MIN_FRAME_LENGTH = 64,
parameter TX_FIFO_ADDR_WIDTH = 12-$clog2(AXI_STRB_WIDTH),
parameter TX_FIFO_DEPTH = 4096,
parameter TX_FRAME_FIFO = 1,
parameter TX_DROP_BAD_FRAME = TX_FRAME_FIFO,
parameter TX_DROP_WHEN_FULL = 0,
parameter RX_FIFO_ADDR_WIDTH = 12-$clog2(AXI_STRB_WIDTH),
parameter RX_FIFO_DEPTH = 4096,
parameter RX_FRAME_FIFO = 1,
parameter RX_DROP_BAD_FRAME = RX_FRAME_FIFO,
parameter RX_DROP_WHEN_FULL = RX_FRAME_FIFO,
@ -362,7 +362,7 @@ wire [PTP_TAG_WIDTH-1:0] tx_axis_ptp_ts_tag;
wire tx_axis_ptp_ts_valid;
axis_async_fifo #(
.ADDR_WIDTH(6),
.DEPTH(64),
.DATA_WIDTH(PTP_TAG_WIDTH+PTP_TS_WIDTH),
.KEEP_ENABLE(0),
.LAST_ENABLE(0),
@ -409,7 +409,7 @@ wire [PTP_TS_WIDTH-1:0] rx_axis_ptp_ts_96;
wire rx_axis_ptp_ts_valid;
axis_fifo #(
.ADDR_WIDTH(6),
.DEPTH(64),
.DATA_WIDTH(PTP_TS_WIDTH),
.KEEP_ENABLE(0),
.LAST_ENABLE(0),
@ -606,7 +606,7 @@ tx_adapter (
);
axis_async_fifo #(
.ADDR_WIDTH(TX_FIFO_ADDR_WIDTH),
.DEPTH(TX_FIFO_DEPTH),
.DATA_WIDTH(AXI_DATA_WIDTH),
.KEEP_ENABLE(1),
.KEEP_WIDTH(AXI_STRB_WIDTH),
@ -689,7 +689,7 @@ rx_adapter (
);
axis_async_fifo #(
.ADDR_WIDTH(RX_FIFO_ADDR_WIDTH),
.DEPTH(RX_FIFO_DEPTH),
.DATA_WIDTH(AXI_DATA_WIDTH),
.KEEP_ENABLE(1),
.KEEP_WIDTH(AXI_STRB_WIDTH),

View File

@ -80,8 +80,8 @@ module interface #
parameter AXI_BASE_ADDR = 0,
parameter XGMII_DATA_WIDTH = 64,
parameter XGMII_CTRL_WIDTH = (XGMII_DATA_WIDTH/8),
parameter TX_FIFO_ADDR_WIDTH = 12-$clog2(AXI_STRB_WIDTH),
parameter RX_FIFO_ADDR_WIDTH = 12-$clog2(AXI_STRB_WIDTH)
parameter TX_FIFO_DEPTH = 4096,
parameter RX_FIFO_DEPTH = 4096
)
(
input wire clk,
@ -1740,7 +1740,7 @@ event_mux_inst (
);
axis_fifo #(
.ADDR_WIDTH(4),
.DEPTH(16),
.DATA_WIDTH(EVENT_SOURCE_WIDTH+EVENT_TYPE_WIDTH+EVENT_QUEUE_INDEX_WIDTH),
.KEEP_ENABLE(0),
.LAST_ENABLE(0),
@ -1780,7 +1780,7 @@ tx_event_fifo (
);
axis_fifo #(
.ADDR_WIDTH(4),
.DEPTH(16),
.DATA_WIDTH(EVENT_SOURCE_WIDTH+EVENT_TYPE_WIDTH+EVENT_QUEUE_INDEX_WIDTH),
.KEEP_ENABLE(0),
.LAST_ENABLE(0),
@ -2319,8 +2319,8 @@ generate
.AXI_BASE_ADDR(23'h000000),
.XGMII_DATA_WIDTH(XGMII_DATA_WIDTH),
.XGMII_CTRL_WIDTH(XGMII_CTRL_WIDTH),
.TX_FIFO_ADDR_WIDTH(TX_FIFO_ADDR_WIDTH),
.RX_FIFO_ADDR_WIDTH(RX_FIFO_ADDR_WIDTH)
.TX_FIFO_DEPTH(TX_FIFO_DEPTH),
.RX_FIFO_DEPTH(RX_FIFO_DEPTH)
)
port_inst (
.clk(clk),

View File

@ -70,8 +70,8 @@ module port #
parameter AXI_BASE_ADDR = 0,
parameter XGMII_DATA_WIDTH = 64,
parameter XGMII_CTRL_WIDTH = (XGMII_DATA_WIDTH/8),
parameter TX_FIFO_ADDR_WIDTH = 12-$clog2(AXI_STRB_WIDTH),
parameter RX_FIFO_ADDR_WIDTH = 12-$clog2(AXI_STRB_WIDTH)
parameter TX_FIFO_DEPTH = 4096,
parameter RX_FIFO_DEPTH = 4096
)
(
input wire clk,
@ -1015,7 +1015,7 @@ tx_engine_inst (
);
axis_fifo #(
.ADDR_WIDTH(4),
.DEPTH(16),
.DATA_WIDTH(16),
.KEEP_ENABLE(0),
.LAST_ENABLE(0),
@ -1272,8 +1272,8 @@ eth_interface #(
.ENABLE_PADDING(1),
.ENABLE_DIC(1),
.MIN_FRAME_LENGTH(64),
.TX_FIFO_ADDR_WIDTH(TX_FIFO_ADDR_WIDTH),
.RX_FIFO_ADDR_WIDTH(RX_FIFO_ADDR_WIDTH),
.TX_FIFO_DEPTH(TX_FIFO_DEPTH),
.RX_FIFO_DEPTH(RX_FIFO_DEPTH),
.TX_CHECKSUM_ENABLE(TX_CHECKSUM_ENABLE),
.RX_CHECKSUM_ENABLE(RX_CHECKSUM_ENABLE),
.LOGIC_PTP_PERIOD_NS(4'h4),

View File

@ -59,6 +59,7 @@ SYN_FILES += lib/axi/rtl/arbiter.v
SYN_FILES += lib/axi/rtl/priority_encoder.v
SYN_FILES += lib/axis/rtl/axis_adapter.v
SYN_FILES += lib/axis/rtl/axis_async_fifo.v
SYN_FILES += lib/axis/rtl/axis_async_fifo_adapter.v
SYN_FILES += lib/axis/rtl/axis_arb_mux.v
SYN_FILES += lib/axis/rtl/axis_fifo.v
SYN_FILES += lib/axis/rtl/axis_register.v

View File

@ -1936,8 +1936,8 @@ generate
.AXI_BASE_ADDR(n*2**IF_AXI_ADDR_WIDTH),
.XGMII_DATA_WIDTH(64),
.XGMII_CTRL_WIDTH(8),
.TX_FIFO_ADDR_WIDTH(15-$clog2(AXI_STRB_WIDTH)),
.RX_FIFO_ADDR_WIDTH(15-$clog2(AXI_STRB_WIDTH))
.TX_FIFO_DEPTH(32768),
.RX_FIFO_DEPTH(32768)
)
interface_inst (
.clk(clk_250mhz),

View File

@ -91,6 +91,7 @@ srcs.append("../lib/axi/rtl/priority_encoder.v")
srcs.append("../lib/axis/rtl/axis_adapter.v")
srcs.append("../lib/axis/rtl/axis_arb_mux.v")
srcs.append("../lib/axis/rtl/axis_async_fifo.v")
srcs.append("../lib/axis/rtl/axis_async_fifo_adapter.v")
srcs.append("../lib/axis/rtl/axis_fifo.v")
srcs.append("../lib/axis/rtl/axis_register.v")
srcs.append("../lib/pcie/rtl/pcie_axi_dma_desc_mux.v")

View File

@ -57,6 +57,7 @@ SYN_FILES += lib/axi/rtl/arbiter.v
SYN_FILES += lib/axi/rtl/priority_encoder.v
SYN_FILES += lib/axis/rtl/axis_adapter.v
SYN_FILES += lib/axis/rtl/axis_async_fifo.v
SYN_FILES += lib/axis/rtl/axis_async_fifo_adapter.v
SYN_FILES += lib/axis/rtl/axis_arb_mux.v
SYN_FILES += lib/axis/rtl/axis_fifo.v
SYN_FILES += lib/axis/rtl/axis_register.v

View File

@ -1899,8 +1899,8 @@ generate
.AXI_BASE_ADDR(n*2**IF_AXI_ADDR_WIDTH),
.XGMII_DATA_WIDTH(64),
.XGMII_CTRL_WIDTH(8),
.TX_FIFO_ADDR_WIDTH(14-$clog2(AXI_STRB_WIDTH)),
.RX_FIFO_ADDR_WIDTH(14-$clog2(AXI_STRB_WIDTH))
.TX_FIFO_DEPTH(16384),
.RX_FIFO_DEPTH(16384)
)
interface_inst (
.clk(clk_250mhz),

View File

@ -89,6 +89,7 @@ srcs.append("../lib/axi/rtl/priority_encoder.v")
srcs.append("../lib/axis/rtl/axis_adapter.v")
srcs.append("../lib/axis/rtl/axis_arb_mux.v")
srcs.append("../lib/axis/rtl/axis_async_fifo.v")
srcs.append("../lib/axis/rtl/axis_async_fifo_adapter.v")
srcs.append("../lib/axis/rtl/axis_fifo.v")
srcs.append("../lib/axis/rtl/axis_register.v")
srcs.append("../lib/pcie/rtl/pcie_axi_dma_desc_mux.v")

View File

@ -59,6 +59,7 @@ SYN_FILES += lib/axi/rtl/arbiter.v
SYN_FILES += lib/axi/rtl/priority_encoder.v
SYN_FILES += lib/axis/rtl/axis_adapter.v
SYN_FILES += lib/axis/rtl/axis_async_fifo.v
SYN_FILES += lib/axis/rtl/axis_async_fifo_adapter.v
SYN_FILES += lib/axis/rtl/axis_arb_mux.v
SYN_FILES += lib/axis/rtl/axis_fifo.v
SYN_FILES += lib/axis/rtl/axis_register.v

View File

@ -1936,8 +1936,8 @@ generate
.AXI_BASE_ADDR(n*2**IF_AXI_ADDR_WIDTH),
.XGMII_DATA_WIDTH(64),
.XGMII_CTRL_WIDTH(8),
.TX_FIFO_ADDR_WIDTH(15-$clog2(AXI_STRB_WIDTH)),
.RX_FIFO_ADDR_WIDTH(15-$clog2(AXI_STRB_WIDTH))
.TX_FIFO_DEPTH(32768),
.RX_FIFO_DEPTH(32768)
)
interface_inst (
.clk(clk_250mhz),

View File

@ -91,6 +91,7 @@ srcs.append("../lib/axi/rtl/priority_encoder.v")
srcs.append("../lib/axis/rtl/axis_adapter.v")
srcs.append("../lib/axis/rtl/axis_arb_mux.v")
srcs.append("../lib/axis/rtl/axis_async_fifo.v")
srcs.append("../lib/axis/rtl/axis_async_fifo_adapter.v")
srcs.append("../lib/axis/rtl/axis_fifo.v")
srcs.append("../lib/axis/rtl/axis_register.v")
srcs.append("../lib/pcie/rtl/pcie_axi_dma_desc_mux.v")

View File

@ -57,6 +57,7 @@ SYN_FILES += lib/axi/rtl/arbiter.v
SYN_FILES += lib/axi/rtl/priority_encoder.v
SYN_FILES += lib/axis/rtl/axis_adapter.v
SYN_FILES += lib/axis/rtl/axis_async_fifo.v
SYN_FILES += lib/axis/rtl/axis_async_fifo_adapter.v
SYN_FILES += lib/axis/rtl/axis_arb_mux.v
SYN_FILES += lib/axis/rtl/axis_fifo.v
SYN_FILES += lib/axis/rtl/axis_register.v

View File

@ -1899,8 +1899,8 @@ generate
.AXI_BASE_ADDR(n*2**IF_AXI_ADDR_WIDTH),
.XGMII_DATA_WIDTH(64),
.XGMII_CTRL_WIDTH(8),
.TX_FIFO_ADDR_WIDTH(14-$clog2(AXI_STRB_WIDTH)),
.RX_FIFO_ADDR_WIDTH(14-$clog2(AXI_STRB_WIDTH))
.TX_FIFO_DEPTH(16384),
.RX_FIFO_DEPTH(16384)
)
interface_inst (
.clk(clk_250mhz),

View File

@ -89,6 +89,7 @@ srcs.append("../lib/axi/rtl/priority_encoder.v")
srcs.append("../lib/axis/rtl/axis_adapter.v")
srcs.append("../lib/axis/rtl/axis_arb_mux.v")
srcs.append("../lib/axis/rtl/axis_async_fifo.v")
srcs.append("../lib/axis/rtl/axis_async_fifo_adapter.v")
srcs.append("../lib/axis/rtl/axis_fifo.v")
srcs.append("../lib/axis/rtl/axis_register.v")
srcs.append("../lib/pcie/rtl/pcie_axi_dma_desc_mux.v")