aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/top/n3xx
diff options
context:
space:
mode:
authormattprost <matt.prost@ni.com>2020-08-06 13:59:58 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-09-03 15:26:33 -0500
commit437381bd2cfe137c5e7e2a70aab8226bfb1c70cd (patch)
tree799a577d99bc4af46fc13f20b0e4e9fe5d817cb2 /fpga/usrp3/top/n3xx
parent8f09caaa06725d2364c63ac7cff02f3298895f4a (diff)
downloaduhd-437381bd2cfe137c5e7e2a70aab8226bfb1c70cd.tar.gz
uhd-437381bd2cfe137c5e7e2a70aab8226bfb1c70cd.tar.bz2
uhd-437381bd2cfe137c5e7e2a70aab8226bfb1c70cd.zip
fpga: Add Replay Block to RFNoC Core Image
Add the Replay RFNoC block to the RFNoC core image for x300, x310, n300, n310, n320/n321, and e320. The Replay block is contained within its own static connection, so previous default behavior is still supported. Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to 'fpga/usrp3/top/n3xx')
-rw-r--r--fpga/usrp3/top/n3xx/Makefile.n3xx.inc6
-rw-r--r--fpga/usrp3/top/n3xx/n300_rfnoc_image_core.v400
-rw-r--r--fpga/usrp3/top/n3xx/n300_rfnoc_image_core.yml29
-rw-r--r--fpga/usrp3/top/n3xx/n300_static_router.hex22
-rw-r--r--fpga/usrp3/top/n3xx/n310_rfnoc_image_core.v558
-rw-r--r--fpga/usrp3/top/n3xx/n310_rfnoc_image_core.yml42
-rw-r--r--fpga/usrp3/top/n3xx/n310_static_router.hex42
-rw-r--r--fpga/usrp3/top/n3xx/n320_rfnoc_image_core.v396
-rw-r--r--fpga/usrp3/top/n3xx/n320_rfnoc_image_core.yml30
-rw-r--r--fpga/usrp3/top/n3xx/n320_static_router.hex22
10 files changed, 1402 insertions, 145 deletions
diff --git a/fpga/usrp3/top/n3xx/Makefile.n3xx.inc b/fpga/usrp3/top/n3xx/Makefile.n3xx.inc
index 5851e7daa..23258b209 100644
--- a/fpga/usrp3/top/n3xx/Makefile.n3xx.inc
+++ b/fpga/usrp3/top/n3xx/Makefile.n3xx.inc
@@ -38,12 +38,13 @@ include $(BASE_DIR)/n3xx/dboards/rh/Makefile.srcs
include $(BASE_DIR)/n3xx/dboards/mg/Makefile.srcs
include $(BASE_DIR)/n3xx/dboards/common/Makefile.srcs
# For sake of convenience, we include the Makefile.srcs for DRAM FIFO, DDC, and
-# DUC, and of course the radio. Any other block needs to use the
+# DUC, Replay, and of course the radio. Any other block needs to use the
# RFNOC_OOT_MAKEFILE_SRCS variable (see below).
include $(LIB_DIR)/rfnoc/blocks/rfnoc_block_axi_ram_fifo/Makefile.srcs
include $(LIB_DIR)/rfnoc/blocks/rfnoc_block_radio/Makefile.srcs
include $(LIB_DIR)/rfnoc/blocks/rfnoc_block_ddc/Makefile.srcs
include $(LIB_DIR)/rfnoc/blocks/rfnoc_block_duc/Makefile.srcs
+include $(LIB_DIR)/rfnoc/blocks/rfnoc_block_replay/Makefile.srcs
# If out-of-tree modules want to be compiled into this image, then they need to
# pass in the RFNOC_OOT_MAKEFILE_SRCS as a list of Makefile.srcs files.
# Those files need to amend the RFNOC_OOT_SRCS variable with a list of actual
@@ -137,7 +138,8 @@ $(WHITE_RABBIT_SRCS) \
$(RFNOC_FRAMEWORK_SRCS) \
$(RFNOC_BLOCK_AXI_RAM_FIFO_SRCS) \
$(RFNOC_BLOCK_DUC_SRCS) $(RFNOC_BLOCK_DDC_SRCS) \
-$(RFNOC_BLOCK_RADIO_SRCS)
+$(RFNOC_BLOCK_RADIO_SRCS) \
+$(RFNOC_BLOCK_REPLAY_SRCS)
EDGE_TBL_DEF="RFNOC_EDGE_TBL_FILE=$(call RESOLVE_PATH,$(EDGE_FILE))"
diff --git a/fpga/usrp3/top/n3xx/n300_rfnoc_image_core.v b/fpga/usrp3/top/n3xx/n300_rfnoc_image_core.v
index 064dcf16b..43b9ffc81 100644
--- a/fpga/usrp3/top/n3xx/n300_rfnoc_image_core.v
+++ b/fpga/usrp3/top/n3xx/n300_rfnoc_image_core.v
@@ -1,5 +1,5 @@
//
-// Copyright 2019 Ettus Research, A National Instruments Brand
+// Copyright 2020 Ettus Research, A National Instruments Brand
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
@@ -7,9 +7,9 @@
// Module: rfnoc_image_core (for n300)
// This file was autogenerated by UHD's image builder tool (rfnoc_image_builder)
// Re-running that tool will overwrite this file!
-// File generated on: 2019-11-08T15:58:12.572410
-// Source: ./n3xx/n300_rfnoc_image_core.yml
-// Source SHA256: 0137aa82c54cb7f7e539f2b09d75ec9c2b5d0c97479431953ab78fc8c56b7201
+// File generated on: 2020-09-02T12:02:55.936585
+// Source: ./n300_rfnoc_image_core.yml
+// Source SHA256: e9dd3107c1f434abca5d183f64dfc5e53d52192f5d488cab07b239c3b44b2593
module rfnoc_image_core #(
parameter [15:0] PROTOVER = {8'd1, 8'd0}
@@ -144,10 +144,26 @@ module rfnoc_image_core #(
wire ep1_to_xb_tlast ;
wire ep1_to_xb_tvalid;
wire ep1_to_xb_tready;
+ wire [CHDR_W-1:0] xb_to_ep2_tdata ;
+ wire xb_to_ep2_tlast ;
+ wire xb_to_ep2_tvalid;
+ wire xb_to_ep2_tready;
+ wire [CHDR_W-1:0] ep2_to_xb_tdata ;
+ wire ep2_to_xb_tlast ;
+ wire ep2_to_xb_tvalid;
+ wire ep2_to_xb_tready;
+ wire [CHDR_W-1:0] xb_to_ep3_tdata ;
+ wire xb_to_ep3_tlast ;
+ wire xb_to_ep3_tvalid;
+ wire xb_to_ep3_tready;
+ wire [CHDR_W-1:0] ep3_to_xb_tdata ;
+ wire ep3_to_xb_tlast ;
+ wire ep3_to_xb_tvalid;
+ wire ep3_to_xb_tready;
chdr_crossbar_nxn #(
.CHDR_W (CHDR_W),
- .NPORTS (5),
+ .NPORTS (7),
.DEFAULT_PORT (0),
.MTU (MTU),
.ROUTE_TBL_SIZE (6),
@@ -160,14 +176,14 @@ module rfnoc_image_core #(
.clk (rfnoc_chdr_clk),
.reset (rfnoc_chdr_rst),
.device_id (device_id),
- .s_axis_tdata ({ep1_to_xb_tdata, ep0_to_xb_tdata, s_dma_tdata, s_eth1_tdata, s_eth0_tdata}),
- .s_axis_tlast ({ep1_to_xb_tlast, ep0_to_xb_tlast, s_dma_tlast, s_eth1_tlast, s_eth0_tlast}),
- .s_axis_tvalid ({ep1_to_xb_tvalid, ep0_to_xb_tvalid, s_dma_tvalid, s_eth1_tvalid, s_eth0_tvalid}),
- .s_axis_tready ({ep1_to_xb_tready, ep0_to_xb_tready, s_dma_tready, s_eth1_tready, s_eth0_tready}),
- .m_axis_tdata ({xb_to_ep1_tdata, xb_to_ep0_tdata, m_dma_tdata, m_eth1_tdata, m_eth0_tdata}),
- .m_axis_tlast ({xb_to_ep1_tlast, xb_to_ep0_tlast, m_dma_tlast, m_eth1_tlast, m_eth0_tlast}),
- .m_axis_tvalid ({xb_to_ep1_tvalid, xb_to_ep0_tvalid, m_dma_tvalid, m_eth1_tvalid, m_eth0_tvalid}),
- .m_axis_tready ({xb_to_ep1_tready, xb_to_ep0_tready, m_dma_tready, m_eth1_tready, m_eth0_tready}),
+ .s_axis_tdata ({ep3_to_xb_tdata, ep2_to_xb_tdata, ep1_to_xb_tdata, ep0_to_xb_tdata, s_dma_tdata, s_eth1_tdata, s_eth0_tdata}),
+ .s_axis_tlast ({ep3_to_xb_tlast, ep2_to_xb_tlast, ep1_to_xb_tlast, ep0_to_xb_tlast, s_dma_tlast, s_eth1_tlast, s_eth0_tlast}),
+ .s_axis_tvalid ({ep3_to_xb_tvalid, ep2_to_xb_tvalid, ep1_to_xb_tvalid, ep0_to_xb_tvalid, s_dma_tvalid, s_eth1_tvalid, s_eth0_tvalid}),
+ .s_axis_tready ({ep3_to_xb_tready, ep2_to_xb_tready, ep1_to_xb_tready, ep0_to_xb_tready, s_dma_tready, s_eth1_tready, s_eth0_tready}),
+ .m_axis_tdata ({xb_to_ep3_tdata, xb_to_ep2_tdata, xb_to_ep1_tdata, xb_to_ep0_tdata, m_dma_tdata, m_eth1_tdata, m_eth0_tdata}),
+ .m_axis_tlast ({xb_to_ep3_tlast, xb_to_ep2_tlast, xb_to_ep1_tlast, xb_to_ep0_tlast, m_dma_tlast, m_eth1_tlast, m_eth0_tlast}),
+ .m_axis_tvalid ({xb_to_ep3_tvalid, xb_to_ep2_tvalid, xb_to_ep1_tvalid, xb_to_ep0_tvalid, m_dma_tvalid, m_eth1_tvalid, m_eth0_tvalid}),
+ .m_axis_tready ({xb_to_ep3_tready, xb_to_ep2_tready, xb_to_ep1_tready, xb_to_ep0_tready, m_dma_tready, m_eth1_tready, m_eth0_tready}),
.ext_rtcfg_stb (1'h0),
.ext_rtcfg_addr (16'h0),
.ext_rtcfg_data (32'h0),
@@ -300,6 +316,128 @@ module rfnoc_image_core #(
.signal_data_err (1'b0 )
);
+ wire [CHDR_W-1:0] m_ep2_out0_tdata;
+ wire m_ep2_out0_tlast;
+ wire m_ep2_out0_tvalid;
+ wire m_ep2_out0_tready;
+ wire [CHDR_W-1:0] s_ep2_in0_tdata;
+ wire s_ep2_in0_tlast;
+ wire s_ep2_in0_tvalid;
+ wire s_ep2_in0_tready;
+ wire [31:0] m_ep2_ctrl_tdata , s_ep2_ctrl_tdata ;
+ wire m_ep2_ctrl_tlast , s_ep2_ctrl_tlast ;
+ wire m_ep2_ctrl_tvalid, s_ep2_ctrl_tvalid;
+ wire m_ep2_ctrl_tready, s_ep2_ctrl_tready;
+
+ chdr_stream_endpoint #(
+ .PROTOVER (PROTOVER),
+ .CHDR_W (CHDR_W),
+ .AXIS_CTRL_EN (0),
+ .AXIS_DATA_EN (1),
+ .NUM_DATA_I (1),
+ .NUM_DATA_O (1),
+ .INST_NUM (2),
+ .CTRL_XBAR_PORT (3),
+ .INGRESS_BUFF_SIZE (12),
+ .MTU (MTU),
+ .REPORT_STRM_ERRS (1)
+ ) ep2_i (
+ .rfnoc_chdr_clk (rfnoc_chdr_clk ),
+ .rfnoc_chdr_rst (rfnoc_chdr_rst ),
+ .rfnoc_ctrl_clk (rfnoc_ctrl_clk ),
+ .rfnoc_ctrl_rst (rfnoc_ctrl_rst ),
+ .device_id (device_id ),
+ .s_axis_chdr_tdata (xb_to_ep2_tdata ),
+ .s_axis_chdr_tlast (xb_to_ep2_tlast ),
+ .s_axis_chdr_tvalid (xb_to_ep2_tvalid ),
+ .s_axis_chdr_tready (xb_to_ep2_tready ),
+ .m_axis_chdr_tdata (ep2_to_xb_tdata ),
+ .m_axis_chdr_tlast (ep2_to_xb_tlast ),
+ .m_axis_chdr_tvalid (ep2_to_xb_tvalid ),
+ .m_axis_chdr_tready (ep2_to_xb_tready ),
+ .s_axis_data_tdata ({s_ep2_in0_tdata}),
+ .s_axis_data_tlast ({s_ep2_in0_tlast}),
+ .s_axis_data_tvalid ({s_ep2_in0_tvalid}),
+ .s_axis_data_tready ({s_ep2_in0_tready}),
+ .m_axis_data_tdata ({m_ep2_out0_tdata}),
+ .m_axis_data_tlast ({m_ep2_out0_tlast}),
+ .m_axis_data_tvalid ({m_ep2_out0_tvalid}),
+ .m_axis_data_tready ({m_ep2_out0_tready}),
+ .s_axis_ctrl_tdata (s_ep2_ctrl_tdata ),
+ .s_axis_ctrl_tlast (s_ep2_ctrl_tlast ),
+ .s_axis_ctrl_tvalid (s_ep2_ctrl_tvalid),
+ .s_axis_ctrl_tready (s_ep2_ctrl_tready),
+ .m_axis_ctrl_tdata (m_ep2_ctrl_tdata ),
+ .m_axis_ctrl_tlast (m_ep2_ctrl_tlast ),
+ .m_axis_ctrl_tvalid (m_ep2_ctrl_tvalid),
+ .m_axis_ctrl_tready (m_ep2_ctrl_tready),
+ .strm_seq_err_stb ( ),
+ .strm_data_err_stb ( ),
+ .strm_route_err_stb ( ),
+ .signal_data_err (1'b0 )
+ );
+
+ wire [CHDR_W-1:0] m_ep3_out0_tdata;
+ wire m_ep3_out0_tlast;
+ wire m_ep3_out0_tvalid;
+ wire m_ep3_out0_tready;
+ wire [CHDR_W-1:0] s_ep3_in0_tdata;
+ wire s_ep3_in0_tlast;
+ wire s_ep3_in0_tvalid;
+ wire s_ep3_in0_tready;
+ wire [31:0] m_ep3_ctrl_tdata , s_ep3_ctrl_tdata ;
+ wire m_ep3_ctrl_tlast , s_ep3_ctrl_tlast ;
+ wire m_ep3_ctrl_tvalid, s_ep3_ctrl_tvalid;
+ wire m_ep3_ctrl_tready, s_ep3_ctrl_tready;
+
+ chdr_stream_endpoint #(
+ .PROTOVER (PROTOVER),
+ .CHDR_W (CHDR_W),
+ .AXIS_CTRL_EN (0),
+ .AXIS_DATA_EN (1),
+ .NUM_DATA_I (1),
+ .NUM_DATA_O (1),
+ .INST_NUM (3),
+ .CTRL_XBAR_PORT (4),
+ .INGRESS_BUFF_SIZE (12),
+ .MTU (MTU),
+ .REPORT_STRM_ERRS (1)
+ ) ep3_i (
+ .rfnoc_chdr_clk (rfnoc_chdr_clk ),
+ .rfnoc_chdr_rst (rfnoc_chdr_rst ),
+ .rfnoc_ctrl_clk (rfnoc_ctrl_clk ),
+ .rfnoc_ctrl_rst (rfnoc_ctrl_rst ),
+ .device_id (device_id ),
+ .s_axis_chdr_tdata (xb_to_ep3_tdata ),
+ .s_axis_chdr_tlast (xb_to_ep3_tlast ),
+ .s_axis_chdr_tvalid (xb_to_ep3_tvalid ),
+ .s_axis_chdr_tready (xb_to_ep3_tready ),
+ .m_axis_chdr_tdata (ep3_to_xb_tdata ),
+ .m_axis_chdr_tlast (ep3_to_xb_tlast ),
+ .m_axis_chdr_tvalid (ep3_to_xb_tvalid ),
+ .m_axis_chdr_tready (ep3_to_xb_tready ),
+ .s_axis_data_tdata ({s_ep3_in0_tdata}),
+ .s_axis_data_tlast ({s_ep3_in0_tlast}),
+ .s_axis_data_tvalid ({s_ep3_in0_tvalid}),
+ .s_axis_data_tready ({s_ep3_in0_tready}),
+ .m_axis_data_tdata ({m_ep3_out0_tdata}),
+ .m_axis_data_tlast ({m_ep3_out0_tlast}),
+ .m_axis_data_tvalid ({m_ep3_out0_tvalid}),
+ .m_axis_data_tready ({m_ep3_out0_tready}),
+ .s_axis_ctrl_tdata (s_ep3_ctrl_tdata ),
+ .s_axis_ctrl_tlast (s_ep3_ctrl_tlast ),
+ .s_axis_ctrl_tvalid (s_ep3_ctrl_tvalid),
+ .s_axis_ctrl_tready (s_ep3_ctrl_tready),
+ .m_axis_ctrl_tdata (m_ep3_ctrl_tdata ),
+ .m_axis_ctrl_tlast (m_ep3_ctrl_tlast ),
+ .m_axis_ctrl_tvalid (m_ep3_ctrl_tvalid),
+ .m_axis_ctrl_tready (m_ep3_ctrl_tready),
+ .strm_seq_err_stb ( ),
+ .strm_data_err_stb ( ),
+ .strm_route_err_stb ( ),
+ .signal_data_err (1'b0 )
+ );
+
// ----------------------------------------------------
@@ -322,10 +460,14 @@ module rfnoc_image_core #(
wire m_radio0_ctrl_tlast , s_radio0_ctrl_tlast ;
wire m_radio0_ctrl_tvalid, s_radio0_ctrl_tvalid;
wire m_radio0_ctrl_tready, s_radio0_ctrl_tready;
+ wire [31:0] m_replay0_ctrl_tdata , s_replay0_ctrl_tdata ;
+ wire m_replay0_ctrl_tlast , s_replay0_ctrl_tlast ;
+ wire m_replay0_ctrl_tvalid, s_replay0_ctrl_tvalid;
+ wire m_replay0_ctrl_tready, s_replay0_ctrl_tready;
axis_ctrl_crossbar_nxn #(
.WIDTH (32),
- .NPORTS (5),
+ .NPORTS (6),
.TOPOLOGY ("TORUS"),
.INGRESS_BUFF_SIZE(5),
.ROUTER_BUFF_SIZE (5),
@@ -334,32 +476,32 @@ module rfnoc_image_core #(
) ctrl_xb_i (
.clk (rfnoc_ctrl_clk),
.reset (rfnoc_ctrl_rst),
- .s_axis_tdata ({m_radio0_ctrl_tdata , m_ddc0_ctrl_tdata , m_duc0_ctrl_tdata , m_ep0_ctrl_tdata , m_core_ctrl_tdata }),
- .s_axis_tvalid ({m_radio0_ctrl_tvalid, m_ddc0_ctrl_tvalid, m_duc0_ctrl_tvalid, m_ep0_ctrl_tvalid, m_core_ctrl_tvalid}),
- .s_axis_tlast ({m_radio0_ctrl_tlast , m_ddc0_ctrl_tlast , m_duc0_ctrl_tlast , m_ep0_ctrl_tlast , m_core_ctrl_tlast }),
- .s_axis_tready ({m_radio0_ctrl_tready, m_ddc0_ctrl_tready, m_duc0_ctrl_tready, m_ep0_ctrl_tready, m_core_ctrl_tready}),
- .m_axis_tdata ({s_radio0_ctrl_tdata , s_ddc0_ctrl_tdata , s_duc0_ctrl_tdata , s_ep0_ctrl_tdata , s_core_ctrl_tdata }),
- .m_axis_tvalid ({s_radio0_ctrl_tvalid, s_ddc0_ctrl_tvalid, s_duc0_ctrl_tvalid, s_ep0_ctrl_tvalid, s_core_ctrl_tvalid}),
- .m_axis_tlast ({s_radio0_ctrl_tlast , s_ddc0_ctrl_tlast , s_duc0_ctrl_tlast , s_ep0_ctrl_tlast , s_core_ctrl_tlast }),
- .m_axis_tready ({s_radio0_ctrl_tready, s_ddc0_ctrl_tready, s_duc0_ctrl_tready, s_ep0_ctrl_tready, s_core_ctrl_tready}),
+ .s_axis_tdata ({m_replay0_ctrl_tdata , m_radio0_ctrl_tdata , m_ddc0_ctrl_tdata , m_duc0_ctrl_tdata , m_ep0_ctrl_tdata , m_core_ctrl_tdata }),
+ .s_axis_tvalid ({m_replay0_ctrl_tvalid, m_radio0_ctrl_tvalid, m_ddc0_ctrl_tvalid, m_duc0_ctrl_tvalid, m_ep0_ctrl_tvalid, m_core_ctrl_tvalid}),
+ .s_axis_tlast ({m_replay0_ctrl_tlast , m_radio0_ctrl_tlast , m_ddc0_ctrl_tlast , m_duc0_ctrl_tlast , m_ep0_ctrl_tlast , m_core_ctrl_tlast }),
+ .s_axis_tready ({m_replay0_ctrl_tready, m_radio0_ctrl_tready, m_ddc0_ctrl_tready, m_duc0_ctrl_tready, m_ep0_ctrl_tready, m_core_ctrl_tready}),
+ .m_axis_tdata ({s_replay0_ctrl_tdata , s_radio0_ctrl_tdata , s_ddc0_ctrl_tdata , s_duc0_ctrl_tdata , s_ep0_ctrl_tdata , s_core_ctrl_tdata }),
+ .m_axis_tvalid ({s_replay0_ctrl_tvalid, s_radio0_ctrl_tvalid, s_ddc0_ctrl_tvalid, s_duc0_ctrl_tvalid, s_ep0_ctrl_tvalid, s_core_ctrl_tvalid}),
+ .m_axis_tlast ({s_replay0_ctrl_tlast , s_radio0_ctrl_tlast , s_ddc0_ctrl_tlast , s_duc0_ctrl_tlast , s_ep0_ctrl_tlast , s_core_ctrl_tlast }),
+ .m_axis_tready ({s_replay0_ctrl_tready, s_radio0_ctrl_tready, s_ddc0_ctrl_tready, s_duc0_ctrl_tready, s_ep0_ctrl_tready, s_core_ctrl_tready}),
.deadlock_detected()
);
// ----------------------------------------------------
// RFNoC Core Kernel
// ----------------------------------------------------
- wire [(512*3)-1:0] rfnoc_core_config, rfnoc_core_status;
+ wire [(512*4)-1:0] rfnoc_core_config, rfnoc_core_status;
rfnoc_core_kernel #(
.PROTOVER (PROTOVER),
.DEVICE_TYPE (16'h1300),
.DEVICE_FAMILY ("7SERIES"),
.SAFE_START_CLKS (0),
- .NUM_BLOCKS (3),
- .NUM_STREAM_ENDPOINTS(2),
+ .NUM_BLOCKS (4),
+ .NUM_STREAM_ENDPOINTS(4),
.NUM_ENDPOINTS_CTRL (1),
.NUM_TRANSPORTS (3),
- .NUM_EDGES (8),
+ .NUM_EDGES (12),
.CHDR_XBAR_PRESENT (1),
.EDGE_TBL_FILE (EDGE_TBL_FILE)
) core_kernel_i (
@@ -569,6 +711,145 @@ module rfnoc_image_core #(
// ----------------------------------------------------
+ // replay0
+ // ----------------------------------------------------
+ wire replay0_mem_clk;
+ wire [CHDR_W-1:0] s_replay0_in_1_tdata , s_replay0_in_0_tdata ;
+ wire s_replay0_in_1_tlast , s_replay0_in_0_tlast ;
+ wire s_replay0_in_1_tvalid, s_replay0_in_0_tvalid;
+ wire s_replay0_in_1_tready, s_replay0_in_0_tready;
+ wire [CHDR_W-1:0] m_replay0_out_1_tdata , m_replay0_out_0_tdata ;
+ wire m_replay0_out_1_tlast , m_replay0_out_0_tlast ;
+ wire m_replay0_out_1_tvalid, m_replay0_out_0_tvalid;
+ wire m_replay0_out_1_tready, m_replay0_out_0_tready;
+
+ // axi_ram
+ wire [ 1-1:0] replay0_axi_rst;
+ wire [ 4-1:0] replay0_m_axi_awid;
+ wire [128-1:0] replay0_m_axi_awaddr;
+ wire [ 32-1:0] replay0_m_axi_awlen;
+ wire [ 12-1:0] replay0_m_axi_awsize;
+ wire [ 8-1:0] replay0_m_axi_awburst;
+ wire [ 4-1:0] replay0_m_axi_awlock;
+ wire [ 16-1:0] replay0_m_axi_awcache;
+ wire [ 12-1:0] replay0_m_axi_awprot;
+ wire [ 16-1:0] replay0_m_axi_awqos;
+ wire [ 16-1:0] replay0_m_axi_awregion;
+ wire [ 4-1:0] replay0_m_axi_awuser;
+ wire [ 4-1:0] replay0_m_axi_awvalid;
+ wire [ 4-1:0] replay0_m_axi_awready;
+ wire [256-1:0] replay0_m_axi_wdata;
+ wire [ 32-1:0] replay0_m_axi_wstrb;
+ wire [ 4-1:0] replay0_m_axi_wlast;
+ wire [ 4-1:0] replay0_m_axi_wuser;
+ wire [ 4-1:0] replay0_m_axi_wvalid;
+ wire [ 4-1:0] replay0_m_axi_wready;
+ wire [ 4-1:0] replay0_m_axi_bid;
+ wire [ 8-1:0] replay0_m_axi_bresp;
+ wire [ 4-1:0] replay0_m_axi_buser;
+ wire [ 4-1:0] replay0_m_axi_bvalid;
+ wire [ 4-1:0] replay0_m_axi_bready;
+ wire [ 4-1:0] replay0_m_axi_arid;
+ wire [128-1:0] replay0_m_axi_araddr;
+ wire [ 32-1:0] replay0_m_axi_arlen;
+ wire [ 12-1:0] replay0_m_axi_arsize;
+ wire [ 8-1:0] replay0_m_axi_arburst;
+ wire [ 4-1:0] replay0_m_axi_arlock;
+ wire [ 16-1:0] replay0_m_axi_arcache;
+ wire [ 12-1:0] replay0_m_axi_arprot;
+ wire [ 16-1:0] replay0_m_axi_arqos;
+ wire [ 16-1:0] replay0_m_axi_arregion;
+ wire [ 4-1:0] replay0_m_axi_aruser;
+ wire [ 4-1:0] replay0_m_axi_arvalid;
+ wire [ 4-1:0] replay0_m_axi_arready;
+ wire [ 4-1:0] replay0_m_axi_rid;
+ wire [256-1:0] replay0_m_axi_rdata;
+ wire [ 8-1:0] replay0_m_axi_rresp;
+ wire [ 4-1:0] replay0_m_axi_rlast;
+ wire [ 4-1:0] replay0_m_axi_ruser;
+ wire [ 4-1:0] replay0_m_axi_rvalid;
+ wire [ 4-1:0] replay0_m_axi_rready;
+
+ rfnoc_block_replay #(
+ .THIS_PORTID(5),
+ .CHDR_W(CHDR_W),
+ .NUM_PORTS(2),
+ .MEM_ADDR_W(31),
+ .MEM_DATA_W(64),
+ .MTU(MTU)
+ ) b_replay0_3 (
+ .rfnoc_chdr_clk (rfnoc_chdr_clk),
+ .rfnoc_ctrl_clk (rfnoc_ctrl_clk),
+ .mem_clk(replay0_mem_clk),
+ .rfnoc_core_config (rfnoc_core_config[512*4-1:512*3]),
+ .rfnoc_core_status (rfnoc_core_status[512*4-1:512*3]),
+
+ .axi_rst(replay0_axi_rst),
+ .m_axi_awid(replay0_m_axi_awid),
+ .m_axi_awaddr(replay0_m_axi_awaddr),
+ .m_axi_awlen(replay0_m_axi_awlen),
+ .m_axi_awsize(replay0_m_axi_awsize),
+ .m_axi_awburst(replay0_m_axi_awburst),
+ .m_axi_awlock(replay0_m_axi_awlock),
+ .m_axi_awcache(replay0_m_axi_awcache),
+ .m_axi_awprot(replay0_m_axi_awprot),
+ .m_axi_awqos(replay0_m_axi_awqos),
+ .m_axi_awregion(replay0_m_axi_awregion),
+ .m_axi_awuser(replay0_m_axi_awuser),
+ .m_axi_awvalid(replay0_m_axi_awvalid),
+ .m_axi_awready(replay0_m_axi_awready),
+ .m_axi_wdata(replay0_m_axi_wdata),
+ .m_axi_wstrb(replay0_m_axi_wstrb),
+ .m_axi_wlast(replay0_m_axi_wlast),
+ .m_axi_wuser(replay0_m_axi_wuser),
+ .m_axi_wvalid(replay0_m_axi_wvalid),
+ .m_axi_wready(replay0_m_axi_wready),
+ .m_axi_bid(replay0_m_axi_bid),
+ .m_axi_bresp(replay0_m_axi_bresp),
+ .m_axi_buser(replay0_m_axi_buser),
+ .m_axi_bvalid(replay0_m_axi_bvalid),
+ .m_axi_bready(replay0_m_axi_bready),
+ .m_axi_arid(replay0_m_axi_arid),
+ .m_axi_araddr(replay0_m_axi_araddr),
+ .m_axi_arlen(replay0_m_axi_arlen),
+ .m_axi_arsize(replay0_m_axi_arsize),
+ .m_axi_arburst(replay0_m_axi_arburst),
+ .m_axi_arlock(replay0_m_axi_arlock),
+ .m_axi_arcache(replay0_m_axi_arcache),
+ .m_axi_arprot(replay0_m_axi_arprot),
+ .m_axi_arqos(replay0_m_axi_arqos),
+ .m_axi_arregion(replay0_m_axi_arregion),
+ .m_axi_aruser(replay0_m_axi_aruser),
+ .m_axi_arvalid(replay0_m_axi_arvalid),
+ .m_axi_arready(replay0_m_axi_arready),
+ .m_axi_rid(replay0_m_axi_rid),
+ .m_axi_rdata(replay0_m_axi_rdata),
+ .m_axi_rresp(replay0_m_axi_rresp),
+ .m_axi_rlast(replay0_m_axi_rlast),
+ .m_axi_ruser(replay0_m_axi_ruser),
+ .m_axi_rvalid(replay0_m_axi_rvalid),
+ .m_axi_rready(replay0_m_axi_rready),
+
+ .s_rfnoc_chdr_tdata ({s_replay0_in_1_tdata , s_replay0_in_0_tdata }),
+ .s_rfnoc_chdr_tlast ({s_replay0_in_1_tlast , s_replay0_in_0_tlast }),
+ .s_rfnoc_chdr_tvalid({s_replay0_in_1_tvalid, s_replay0_in_0_tvalid}),
+ .s_rfnoc_chdr_tready({s_replay0_in_1_tready, s_replay0_in_0_tready}),
+ .m_rfnoc_chdr_tdata ({m_replay0_out_1_tdata , m_replay0_out_0_tdata }),
+ .m_rfnoc_chdr_tlast ({m_replay0_out_1_tlast , m_replay0_out_0_tlast }),
+ .m_rfnoc_chdr_tvalid({m_replay0_out_1_tvalid, m_replay0_out_0_tvalid}),
+ .m_rfnoc_chdr_tready({m_replay0_out_1_tready, m_replay0_out_0_tready}),
+ .s_rfnoc_ctrl_tdata (s_replay0_ctrl_tdata ),
+ .s_rfnoc_ctrl_tlast (s_replay0_ctrl_tlast ),
+ .s_rfnoc_ctrl_tvalid(s_replay0_ctrl_tvalid),
+ .s_rfnoc_ctrl_tready(s_replay0_ctrl_tready),
+ .m_rfnoc_ctrl_tdata (m_replay0_ctrl_tdata ),
+ .m_rfnoc_ctrl_tlast (m_replay0_ctrl_tlast ),
+ .m_rfnoc_ctrl_tvalid(m_replay0_ctrl_tvalid),
+ .m_rfnoc_ctrl_tready(m_replay0_ctrl_tready)
+ );
+
+
+ // ----------------------------------------------------
// Static Router
// ----------------------------------------------------
assign s_duc0_in_0_tdata = m_ep0_out0_tdata ;
@@ -611,6 +892,26 @@ module rfnoc_image_core #(
assign s_ep1_in0_tvalid = m_ddc0_out_1_tvalid;
assign m_ddc0_out_1_tready = s_ep1_in0_tready;
+ assign s_replay0_in_0_tdata = m_ep2_out0_tdata ;
+ assign s_replay0_in_0_tlast = m_ep2_out0_tlast ;
+ assign s_replay0_in_0_tvalid = m_ep2_out0_tvalid;
+ assign m_ep2_out0_tready = s_replay0_in_0_tready;
+
+ assign s_ep2_in0_tdata = m_replay0_out_0_tdata ;
+ assign s_ep2_in0_tlast = m_replay0_out_0_tlast ;
+ assign s_ep2_in0_tvalid = m_replay0_out_0_tvalid;
+ assign m_replay0_out_0_tready = s_ep2_in0_tready;
+
+ assign s_replay0_in_1_tdata = m_ep3_out0_tdata ;
+ assign s_replay0_in_1_tlast = m_ep3_out0_tlast ;
+ assign s_replay0_in_1_tvalid = m_ep3_out0_tvalid;
+ assign m_ep3_out0_tready = s_replay0_in_1_tready;
+
+ assign s_ep3_in0_tdata = m_replay0_out_1_tdata ;
+ assign s_ep3_in0_tlast = m_replay0_out_1_tlast ;
+ assign s_ep3_in0_tvalid = m_replay0_out_1_tvalid;
+ assign m_replay0_out_1_tready = s_ep3_in0_tready;
+
// ----------------------------------------------------
// Unused Ports
@@ -622,6 +923,7 @@ module rfnoc_image_core #(
assign radio0_radio_clk = radio_clk;
assign ddc0_ce_clk = rfnoc_chdr_clk;
assign duc0_ce_clk = rfnoc_chdr_clk;
+ assign replay0_mem_clk = dram_clk;
// ----------------------------------------------------
@@ -639,6 +941,52 @@ module rfnoc_image_core #(
assign radio0_m_ctrlport_resp_status = m_ctrlport_radio0_resp_status;
assign radio0_m_ctrlport_resp_data = m_ctrlport_radio0_resp_data;
+ assign replay0_axi_rst = axi_rst;
+ assign m_axi_awid = replay0_m_axi_awid;
+ assign m_axi_awaddr = replay0_m_axi_awaddr;
+ assign m_axi_awlen = replay0_m_axi_awlen;
+ assign m_axi_awsize = replay0_m_axi_awsize;
+ assign m_axi_awburst = replay0_m_axi_awburst;
+ assign m_axi_awlock = replay0_m_axi_awlock;
+ assign m_axi_awcache = replay0_m_axi_awcache;
+ assign m_axi_awprot = replay0_m_axi_awprot;
+ assign m_axi_awqos = replay0_m_axi_awqos;
+ assign m_axi_awregion = replay0_m_axi_awregion;
+ assign m_axi_awuser = replay0_m_axi_awuser;
+ assign m_axi_awvalid = replay0_m_axi_awvalid;
+ assign replay0_m_axi_awready = m_axi_awready;
+ assign m_axi_wdata = replay0_m_axi_wdata;
+ assign m_axi_wstrb = replay0_m_axi_wstrb;
+ assign m_axi_wlast = replay0_m_axi_wlast;
+ assign m_axi_wuser = replay0_m_axi_wuser;
+ assign m_axi_wvalid = replay0_m_axi_wvalid;
+ assign replay0_m_axi_wready = m_axi_wready;
+ assign replay0_m_axi_bid = m_axi_bid;
+ assign replay0_m_axi_bresp = m_axi_bresp;
+ assign replay0_m_axi_buser = m_axi_buser;
+ assign replay0_m_axi_bvalid = m_axi_bvalid;
+ assign m_axi_bready = replay0_m_axi_bready;
+ assign m_axi_arid = replay0_m_axi_arid;
+ assign m_axi_araddr = replay0_m_axi_araddr;
+ assign m_axi_arlen = replay0_m_axi_arlen;
+ assign m_axi_arsize = replay0_m_axi_arsize;
+ assign m_axi_arburst = replay0_m_axi_arburst;
+ assign m_axi_arlock = replay0_m_axi_arlock;
+ assign m_axi_arcache = replay0_m_axi_arcache;
+ assign m_axi_arprot = replay0_m_axi_arprot;
+ assign m_axi_arqos = replay0_m_axi_arqos;
+ assign m_axi_arregion = replay0_m_axi_arregion;
+ assign m_axi_aruser = replay0_m_axi_aruser;
+ assign m_axi_arvalid = replay0_m_axi_arvalid;
+ assign replay0_m_axi_arready = m_axi_arready;
+ assign replay0_m_axi_rid = m_axi_rid;
+ assign replay0_m_axi_rdata = m_axi_rdata;
+ assign replay0_m_axi_rresp = m_axi_rresp;
+ assign replay0_m_axi_rlast = m_axi_rlast;
+ assign replay0_m_axi_ruser = m_axi_ruser;
+ assign replay0_m_axi_rvalid = m_axi_rvalid;
+ assign m_axi_rready = replay0_m_axi_rready;
+
assign radio0_radio_rx_data = radio_rx_data_radio0;
assign radio0_radio_rx_stb = radio_rx_stb_radio0;
assign radio_rx_running_radio0 = radio0_radio_rx_running;
diff --git a/fpga/usrp3/top/n3xx/n300_rfnoc_image_core.yml b/fpga/usrp3/top/n3xx/n300_rfnoc_image_core.yml
index 54df51725..3b28fcd14 100644
--- a/fpga/usrp3/top/n3xx/n300_rfnoc_image_core.yml
+++ b/fpga/usrp3/top/n3xx/n300_rfnoc_image_core.yml
@@ -20,6 +20,14 @@ stream_endpoints:
ctrl: False # Endpoint passes control traffic
data: True # Endpoint passes data traffic
buff_size: 32768 # Ingress buffer size for data
+ ep2: # Stream endpoint name
+ ctrl: False # Endpoint passes control traffic
+ data: True # Endpoint passes data traffic
+ buff_size: 4096 # Ingress buffer size for data
+ ep3: # Stream endpoint name
+ ctrl: False # Endpoint passes control traffic
+ data: True # Endpoint passes data traffic
+ buff_size: 4096 # Ingress buffer size for data
# A list of all NoC blocks in design
# ----------------------------------
@@ -34,16 +42,11 @@ noc_blocks:
NUM_PORTS: 2
radio0:
block_desc: 'radio_2x64.yml'
- #fifo0:
- #block_desc: 'axi_ram_fifo_4x64.yml'
- #parameters:
- ## These parameters match the memory interface on the N3XX
- #NUM_PORTS: 4
- #MEM_DATA_W: 64
- #MEM_ADDR_W: 31
- #FIFO_ADDR_BASE: "{30'h06000000, 30'h04000000, 30'h02000000, 30'h00000000}"
- #FIFO_ADDR_MASK: "{30'h01FFFFFF, 30'h01FFFFFF, 30'h01FFFFFF, 30'h01FFFFFF}"
- #MEM_CLK_RATE: "303819444" # 166.666666 MHz * 21.875 / 4 / 3 = 303.819444 MHz
+ replay0:
+ block_desc: 'replay.yml'
+ parameters:
+ NUM_PORTS: 2
+ MEM_ADDR_W: 31
# A list of all static connections in design
# ------------------------------------------
@@ -61,7 +64,12 @@ connections:
- { srcblk: duc0, srcport: out_1, dstblk: radio0, dstport: in_1 }
- { srcblk: radio0, srcport: out_1, dstblk: ddc0, dstport: in_1 }
- { srcblk: ddc0, srcport: out_1, dstblk: ep1, dstport: in0 }
+ - { srcblk: ep2, srcport: out0, dstblk: replay0, dstport: in_0 }
+ - { srcblk: replay0, srcport: out_0, dstblk: ep2, dstport: in0 }
+ - { srcblk: ep3, srcport: out0, dstblk: replay0, dstport: in_1 }
+ - { srcblk: replay0, srcport: out_1, dstblk: ep3, dstport: in0 }
- { srcblk: radio0, srcport: ctrl_port, dstblk: _device_, dstport: ctrlport_radio0 }
+ - { srcblk: replay0, srcport: axi_ram, dstblk: _device_, dstport: dram }
- { srcblk: _device_, srcport: x300_radio0, dstblk: radio0, dstport: x300_radio }
- { srcblk: _device_, srcport: time_keeper, dstblk: radio0, dstport: time_keeper }
@@ -76,3 +84,4 @@ clk_domains:
- { srcblk: _device_, srcport: radio, dstblk: radio0, dstport: radio }
- { srcblk: _device_, srcport: rfnoc_chdr, dstblk: ddc0, dstport: ce }
- { srcblk: _device_, srcport: rfnoc_chdr, dstblk: duc0, dstport: ce }
+ - { srcblk: _device_, srcport: dram, dstblk: replay0, dstport: mem }
diff --git a/fpga/usrp3/top/n3xx/n300_static_router.hex b/fpga/usrp3/top/n3xx/n300_static_router.hex
index 6e8701d3a..6217eaf68 100644
--- a/fpga/usrp3/top/n3xx/n300_static_router.hex
+++ b/fpga/usrp3/top/n3xx/n300_static_router.hex
@@ -1,9 +1,13 @@
-00000008
-004000c0
-00c00140
-01400100
-01000040
-008000c1
-00c10141
-01410101
-01010080
+0000000C
+00400140
+014001c0
+01c00180
+01800040
+00800141
+014101c1
+01c10181
+01810080
+00c00200
+020000c0
+01000201
+02010100
diff --git a/fpga/usrp3/top/n3xx/n310_rfnoc_image_core.v b/fpga/usrp3/top/n3xx/n310_rfnoc_image_core.v
index 027f176ce..3ded945ac 100644
--- a/fpga/usrp3/top/n3xx/n310_rfnoc_image_core.v
+++ b/fpga/usrp3/top/n3xx/n310_rfnoc_image_core.v
@@ -1,5 +1,5 @@
//
-// Copyright 2019 Ettus Research, A National Instruments Brand
+// Copyright 2020 Ettus Research, A National Instruments Brand
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
@@ -7,9 +7,9 @@
// Module: rfnoc_image_core (for n310)
// This file was autogenerated by UHD's image builder tool (rfnoc_image_builder)
// Re-running that tool will overwrite this file!
-// File generated on: 2019-11-08T15:58:13.073656
-// Source: ./n3xx/n310_rfnoc_image_core.yml
-// Source SHA256: a4a2464a5fdebb8ac35e78c2ea53ad7be23f8106376098188c9a4caeba8bcf0e
+// File generated on: 2020-09-02T12:03:00.129190
+// Source: ./n310_rfnoc_image_core.yml
+// Source SHA256: 39427a6d2533bc5342e99d75d7eaff9368e89ab8ff639821d333143af5ace45b
module rfnoc_image_core #(
parameter [15:0] PROTOVER = {8'd1, 8'd0}
@@ -178,10 +178,42 @@ module rfnoc_image_core #(
wire ep3_to_xb_tlast ;
wire ep3_to_xb_tvalid;
wire ep3_to_xb_tready;
+ wire [CHDR_W-1:0] xb_to_ep4_tdata ;
+ wire xb_to_ep4_tlast ;
+ wire xb_to_ep4_tvalid;
+ wire xb_to_ep4_tready;
+ wire [CHDR_W-1:0] ep4_to_xb_tdata ;
+ wire ep4_to_xb_tlast ;
+ wire ep4_to_xb_tvalid;
+ wire ep4_to_xb_tready;
+ wire [CHDR_W-1:0] xb_to_ep5_tdata ;
+ wire xb_to_ep5_tlast ;
+ wire xb_to_ep5_tvalid;
+ wire xb_to_ep5_tready;
+ wire [CHDR_W-1:0] ep5_to_xb_tdata ;
+ wire ep5_to_xb_tlast ;
+ wire ep5_to_xb_tvalid;
+ wire ep5_to_xb_tready;
+ wire [CHDR_W-1:0] xb_to_ep6_tdata ;
+ wire xb_to_ep6_tlast ;
+ wire xb_to_ep6_tvalid;
+ wire xb_to_ep6_tready;
+ wire [CHDR_W-1:0] ep6_to_xb_tdata ;
+ wire ep6_to_xb_tlast ;
+ wire ep6_to_xb_tvalid;
+ wire ep6_to_xb_tready;
+ wire [CHDR_W-1:0] xb_to_ep7_tdata ;
+ wire xb_to_ep7_tlast ;
+ wire xb_to_ep7_tvalid;
+ wire xb_to_ep7_tready;
+ wire [CHDR_W-1:0] ep7_to_xb_tdata ;
+ wire ep7_to_xb_tlast ;
+ wire ep7_to_xb_tvalid;
+ wire ep7_to_xb_tready;
chdr_crossbar_nxn #(
.CHDR_W (CHDR_W),
- .NPORTS (7),
+ .NPORTS (11),
.DEFAULT_PORT (0),
.MTU (MTU),
.ROUTE_TBL_SIZE (6),
@@ -194,14 +226,14 @@ module rfnoc_image_core #(
.clk (rfnoc_chdr_clk),
.reset (rfnoc_chdr_rst),
.device_id (device_id),
- .s_axis_tdata ({ep3_to_xb_tdata, ep2_to_xb_tdata, ep1_to_xb_tdata, ep0_to_xb_tdata, s_dma_tdata, s_eth1_tdata, s_eth0_tdata}),
- .s_axis_tlast ({ep3_to_xb_tlast, ep2_to_xb_tlast, ep1_to_xb_tlast, ep0_to_xb_tlast, s_dma_tlast, s_eth1_tlast, s_eth0_tlast}),
- .s_axis_tvalid ({ep3_to_xb_tvalid, ep2_to_xb_tvalid, ep1_to_xb_tvalid, ep0_to_xb_tvalid, s_dma_tvalid, s_eth1_tvalid, s_eth0_tvalid}),
- .s_axis_tready ({ep3_to_xb_tready, ep2_to_xb_tready, ep1_to_xb_tready, ep0_to_xb_tready, s_dma_tready, s_eth1_tready, s_eth0_tready}),
- .m_axis_tdata ({xb_to_ep3_tdata, xb_to_ep2_tdata, xb_to_ep1_tdata, xb_to_ep0_tdata, m_dma_tdata, m_eth1_tdata, m_eth0_tdata}),
- .m_axis_tlast ({xb_to_ep3_tlast, xb_to_ep2_tlast, xb_to_ep1_tlast, xb_to_ep0_tlast, m_dma_tlast, m_eth1_tlast, m_eth0_tlast}),
- .m_axis_tvalid ({xb_to_ep3_tvalid, xb_to_ep2_tvalid, xb_to_ep1_tvalid, xb_to_ep0_tvalid, m_dma_tvalid, m_eth1_tvalid, m_eth0_tvalid}),
- .m_axis_tready ({xb_to_ep3_tready, xb_to_ep2_tready, xb_to_ep1_tready, xb_to_ep0_tready, m_dma_tready, m_eth1_tready, m_eth0_tready}),
+ .s_axis_tdata ({ep7_to_xb_tdata, ep6_to_xb_tdata, ep5_to_xb_tdata, ep4_to_xb_tdata, ep3_to_xb_tdata, ep2_to_xb_tdata, ep1_to_xb_tdata, ep0_to_xb_tdata, s_dma_tdata, s_eth1_tdata, s_eth0_tdata}),
+ .s_axis_tlast ({ep7_to_xb_tlast, ep6_to_xb_tlast, ep5_to_xb_tlast, ep4_to_xb_tlast, ep3_to_xb_tlast, ep2_to_xb_tlast, ep1_to_xb_tlast, ep0_to_xb_tlast, s_dma_tlast, s_eth1_tlast, s_eth0_tlast}),
+ .s_axis_tvalid ({ep7_to_xb_tvalid, ep6_to_xb_tvalid, ep5_to_xb_tvalid, ep4_to_xb_tvalid, ep3_to_xb_tvalid, ep2_to_xb_tvalid, ep1_to_xb_tvalid, ep0_to_xb_tvalid, s_dma_tvalid, s_eth1_tvalid, s_eth0_tvalid}),
+ .s_axis_tready ({ep7_to_xb_tready, ep6_to_xb_tready, ep5_to_xb_tready, ep4_to_xb_tready, ep3_to_xb_tready, ep2_to_xb_tready, ep1_to_xb_tready, ep0_to_xb_tready, s_dma_tready, s_eth1_tready, s_eth0_tready}),
+ .m_axis_tdata ({xb_to_ep7_tdata, xb_to_ep6_tdata, xb_to_ep5_tdata, xb_to_ep4_tdata, xb_to_ep3_tdata, xb_to_ep2_tdata, xb_to_ep1_tdata, xb_to_ep0_tdata, m_dma_tdata, m_eth1_tdata, m_eth0_tdata}),
+ .m_axis_tlast ({xb_to_ep7_tlast, xb_to_ep6_tlast, xb_to_ep5_tlast, xb_to_ep4_tlast, xb_to_ep3_tlast, xb_to_ep2_tlast, xb_to_ep1_tlast, xb_to_ep0_tlast, m_dma_tlast, m_eth1_tlast, m_eth0_tlast}),
+ .m_axis_tvalid ({xb_to_ep7_tvalid, xb_to_ep6_tvalid, xb_to_ep5_tvalid, xb_to_ep4_tvalid, xb_to_ep3_tvalid, xb_to_ep2_tvalid, xb_to_ep1_tvalid, xb_to_ep0_tvalid, m_dma_tvalid, m_eth1_tvalid, m_eth0_tvalid}),
+ .m_axis_tready ({xb_to_ep7_tready, xb_to_ep6_tready, xb_to_ep5_tready, xb_to_ep4_tready, xb_to_ep3_tready, xb_to_ep2_tready, xb_to_ep1_tready, xb_to_ep0_tready, m_dma_tready, m_eth1_tready, m_eth0_tready}),
.ext_rtcfg_stb (1'h0),
.ext_rtcfg_addr (16'h0),
.ext_rtcfg_data (32'h0),
@@ -456,6 +488,250 @@ module rfnoc_image_core #(
.signal_data_err (1'b0 )
);
+ wire [CHDR_W-1:0] m_ep4_out0_tdata;
+ wire m_ep4_out0_tlast;
+ wire m_ep4_out0_tvalid;
+ wire m_ep4_out0_tready;
+ wire [CHDR_W-1:0] s_ep4_in0_tdata;
+ wire s_ep4_in0_tlast;
+ wire s_ep4_in0_tvalid;
+ wire s_ep4_in0_tready;
+ wire [31:0] m_ep4_ctrl_tdata , s_ep4_ctrl_tdata ;
+ wire m_ep4_ctrl_tlast , s_ep4_ctrl_tlast ;
+ wire m_ep4_ctrl_tvalid, s_ep4_ctrl_tvalid;
+ wire m_ep4_ctrl_tready, s_ep4_ctrl_tready;
+
+ chdr_stream_endpoint #(
+ .PROTOVER (PROTOVER),
+ .CHDR_W (CHDR_W),
+ .AXIS_CTRL_EN (0),
+ .AXIS_DATA_EN (1),
+ .NUM_DATA_I (1),
+ .NUM_DATA_O (1),
+ .INST_NUM (4),
+ .CTRL_XBAR_PORT (5),
+ .INGRESS_BUFF_SIZE (12),
+ .MTU (MTU),
+ .REPORT_STRM_ERRS (1)
+ ) ep4_i (
+ .rfnoc_chdr_clk (rfnoc_chdr_clk ),
+ .rfnoc_chdr_rst (rfnoc_chdr_rst ),
+ .rfnoc_ctrl_clk (rfnoc_ctrl_clk ),
+ .rfnoc_ctrl_rst (rfnoc_ctrl_rst ),
+ .device_id (device_id ),
+ .s_axis_chdr_tdata (xb_to_ep4_tdata ),
+ .s_axis_chdr_tlast (xb_to_ep4_tlast ),
+ .s_axis_chdr_tvalid (xb_to_ep4_tvalid ),
+ .s_axis_chdr_tready (xb_to_ep4_tready ),
+ .m_axis_chdr_tdata (ep4_to_xb_tdata ),
+ .m_axis_chdr_tlast (ep4_to_xb_tlast ),
+ .m_axis_chdr_tvalid (ep4_to_xb_tvalid ),
+ .m_axis_chdr_tready (ep4_to_xb_tready ),
+ .s_axis_data_tdata ({s_ep4_in0_tdata}),
+ .s_axis_data_tlast ({s_ep4_in0_tlast}),
+ .s_axis_data_tvalid ({s_ep4_in0_tvalid}),
+ .s_axis_data_tready ({s_ep4_in0_tready}),
+ .m_axis_data_tdata ({m_ep4_out0_tdata}),
+ .m_axis_data_tlast ({m_ep4_out0_tlast}),
+ .m_axis_data_tvalid ({m_ep4_out0_tvalid}),
+ .m_axis_data_tready ({m_ep4_out0_tready}),
+ .s_axis_ctrl_tdata (s_ep4_ctrl_tdata ),
+ .s_axis_ctrl_tlast (s_ep4_ctrl_tlast ),
+ .s_axis_ctrl_tvalid (s_ep4_ctrl_tvalid),
+ .s_axis_ctrl_tready (s_ep4_ctrl_tready),
+ .m_axis_ctrl_tdata (m_ep4_ctrl_tdata ),
+ .m_axis_ctrl_tlast (m_ep4_ctrl_tlast ),
+ .m_axis_ctrl_tvalid (m_ep4_ctrl_tvalid),
+ .m_axis_ctrl_tready (m_ep4_ctrl_tready),
+ .strm_seq_err_stb ( ),
+ .strm_data_err_stb ( ),
+ .strm_route_err_stb ( ),
+ .signal_data_err (1'b0 )
+ );
+
+ wire [CHDR_W-1:0] m_ep5_out0_tdata;
+ wire m_ep5_out0_tlast;
+ wire m_ep5_out0_tvalid;
+ wire m_ep5_out0_tready;
+ wire [CHDR_W-1:0] s_ep5_in0_tdata;
+ wire s_ep5_in0_tlast;
+ wire s_ep5_in0_tvalid;
+ wire s_ep5_in0_tready;
+ wire [31:0] m_ep5_ctrl_tdata , s_ep5_ctrl_tdata ;
+ wire m_ep5_ctrl_tlast , s_ep5_ctrl_tlast ;
+ wire m_ep5_ctrl_tvalid, s_ep5_ctrl_tvalid;
+ wire m_ep5_ctrl_tready, s_ep5_ctrl_tready;
+
+ chdr_stream_endpoint #(
+ .PROTOVER (PROTOVER),
+ .CHDR_W (CHDR_W),
+ .AXIS_CTRL_EN (0),
+ .AXIS_DATA_EN (1),
+ .NUM_DATA_I (1),
+ .NUM_DATA_O (1),
+ .INST_NUM (5),
+ .CTRL_XBAR_PORT (6),
+ .INGRESS_BUFF_SIZE (12),
+ .MTU (MTU),
+ .REPORT_STRM_ERRS (1)
+ ) ep5_i (
+ .rfnoc_chdr_clk (rfnoc_chdr_clk ),
+ .rfnoc_chdr_rst (rfnoc_chdr_rst ),
+ .rfnoc_ctrl_clk (rfnoc_ctrl_clk ),
+ .rfnoc_ctrl_rst (rfnoc_ctrl_rst ),
+ .device_id (device_id ),
+ .s_axis_chdr_tdata (xb_to_ep5_tdata ),
+ .s_axis_chdr_tlast (xb_to_ep5_tlast ),
+ .s_axis_chdr_tvalid (xb_to_ep5_tvalid ),
+ .s_axis_chdr_tready (xb_to_ep5_tready ),
+ .m_axis_chdr_tdata (ep5_to_xb_tdata ),
+ .m_axis_chdr_tlast (ep5_to_xb_tlast ),
+ .m_axis_chdr_tvalid (ep5_to_xb_tvalid ),
+ .m_axis_chdr_tready (ep5_to_xb_tready ),
+ .s_axis_data_tdata ({s_ep5_in0_tdata}),
+ .s_axis_data_tlast ({s_ep5_in0_tlast}),
+ .s_axis_data_tvalid ({s_ep5_in0_tvalid}),
+ .s_axis_data_tready ({s_ep5_in0_tready}),
+ .m_axis_data_tdata ({m_ep5_out0_tdata}),
+ .m_axis_data_tlast ({m_ep5_out0_tlast}),
+ .m_axis_data_tvalid ({m_ep5_out0_tvalid}),
+ .m_axis_data_tready ({m_ep5_out0_tready}),
+ .s_axis_ctrl_tdata (s_ep5_ctrl_tdata ),
+ .s_axis_ctrl_tlast (s_ep5_ctrl_tlast ),
+ .s_axis_ctrl_tvalid (s_ep5_ctrl_tvalid),
+ .s_axis_ctrl_tready (s_ep5_ctrl_tready),
+ .m_axis_ctrl_tdata (m_ep5_ctrl_tdata ),
+ .m_axis_ctrl_tlast (m_ep5_ctrl_tlast ),
+ .m_axis_ctrl_tvalid (m_ep5_ctrl_tvalid),
+ .m_axis_ctrl_tready (m_ep5_ctrl_tready),
+ .strm_seq_err_stb ( ),
+ .strm_data_err_stb ( ),
+ .strm_route_err_stb ( ),
+ .signal_data_err (1'b0 )
+ );
+
+ wire [CHDR_W-1:0] m_ep6_out0_tdata;
+ wire m_ep6_out0_tlast;
+ wire m_ep6_out0_tvalid;
+ wire m_ep6_out0_tready;
+ wire [CHDR_W-1:0] s_ep6_in0_tdata;
+ wire s_ep6_in0_tlast;
+ wire s_ep6_in0_tvalid;
+ wire s_ep6_in0_tready;
+ wire [31:0] m_ep6_ctrl_tdata , s_ep6_ctrl_tdata ;
+ wire m_ep6_ctrl_tlast , s_ep6_ctrl_tlast ;
+ wire m_ep6_ctrl_tvalid, s_ep6_ctrl_tvalid;
+ wire m_ep6_ctrl_tready, s_ep6_ctrl_tready;
+
+ chdr_stream_endpoint #(
+ .PROTOVER (PROTOVER),
+ .CHDR_W (CHDR_W),
+ .AXIS_CTRL_EN (0),
+ .AXIS_DATA_EN (1),
+ .NUM_DATA_I (1),
+ .NUM_DATA_O (1),
+ .INST_NUM (6),
+ .CTRL_XBAR_PORT (7),
+ .INGRESS_BUFF_SIZE (12),
+ .MTU (MTU),
+ .REPORT_STRM_ERRS (1)
+ ) ep6_i (
+ .rfnoc_chdr_clk (rfnoc_chdr_clk ),
+ .rfnoc_chdr_rst (rfnoc_chdr_rst ),
+ .rfnoc_ctrl_clk (rfnoc_ctrl_clk ),
+ .rfnoc_ctrl_rst (rfnoc_ctrl_rst ),
+ .device_id (device_id ),
+ .s_axis_chdr_tdata (xb_to_ep6_tdata ),
+ .s_axis_chdr_tlast (xb_to_ep6_tlast ),
+ .s_axis_chdr_tvalid (xb_to_ep6_tvalid ),
+ .s_axis_chdr_tready (xb_to_ep6_tready ),
+ .m_axis_chdr_tdata (ep6_to_xb_tdata ),
+ .m_axis_chdr_tlast (ep6_to_xb_tlast ),
+ .m_axis_chdr_tvalid (ep6_to_xb_tvalid ),
+ .m_axis_chdr_tready (ep6_to_xb_tready ),
+ .s_axis_data_tdata ({s_ep6_in0_tdata}),
+ .s_axis_data_tlast ({s_ep6_in0_tlast}),
+ .s_axis_data_tvalid ({s_ep6_in0_tvalid}),
+ .s_axis_data_tready ({s_ep6_in0_tready}),
+ .m_axis_data_tdata ({m_ep6_out0_tdata}),
+ .m_axis_data_tlast ({m_ep6_out0_tlast}),
+ .m_axis_data_tvalid ({m_ep6_out0_tvalid}),
+ .m_axis_data_tready ({m_ep6_out0_tready}),
+ .s_axis_ctrl_tdata (s_ep6_ctrl_tdata ),
+ .s_axis_ctrl_tlast (s_ep6_ctrl_tlast ),
+ .s_axis_ctrl_tvalid (s_ep6_ctrl_tvalid),
+ .s_axis_ctrl_tready (s_ep6_ctrl_tready),
+ .m_axis_ctrl_tdata (m_ep6_ctrl_tdata ),
+ .m_axis_ctrl_tlast (m_ep6_ctrl_tlast ),
+ .m_axis_ctrl_tvalid (m_ep6_ctrl_tvalid),
+ .m_axis_ctrl_tready (m_ep6_ctrl_tready),
+ .strm_seq_err_stb ( ),
+ .strm_data_err_stb ( ),
+ .strm_route_err_stb ( ),
+ .signal_data_err (1'b0 )
+ );
+
+ wire [CHDR_W-1:0] m_ep7_out0_tdata;
+ wire m_ep7_out0_tlast;
+ wire m_ep7_out0_tvalid;
+ wire m_ep7_out0_tready;
+ wire [CHDR_W-1:0] s_ep7_in0_tdata;
+ wire s_ep7_in0_tlast;
+ wire s_ep7_in0_tvalid;
+ wire s_ep7_in0_tready;
+ wire [31:0] m_ep7_ctrl_tdata , s_ep7_ctrl_tdata ;
+ wire m_ep7_ctrl_tlast , s_ep7_ctrl_tlast ;
+ wire m_ep7_ctrl_tvalid, s_ep7_ctrl_tvalid;
+ wire m_ep7_ctrl_tready, s_ep7_ctrl_tready;
+
+ chdr_stream_endpoint #(
+ .PROTOVER (PROTOVER),
+ .CHDR_W (CHDR_W),
+ .AXIS_CTRL_EN (0),
+ .AXIS_DATA_EN (1),
+ .NUM_DATA_I (1),
+ .NUM_DATA_O (1),
+ .INST_NUM (7),
+ .CTRL_XBAR_PORT (8),
+ .INGRESS_BUFF_SIZE (12),
+ .MTU (MTU),
+ .REPORT_STRM_ERRS (1)
+ ) ep7_i (
+ .rfnoc_chdr_clk (rfnoc_chdr_clk ),
+ .rfnoc_chdr_rst (rfnoc_chdr_rst ),
+ .rfnoc_ctrl_clk (rfnoc_ctrl_clk ),
+ .rfnoc_ctrl_rst (rfnoc_ctrl_rst ),
+ .device_id (device_id ),
+ .s_axis_chdr_tdata (xb_to_ep7_tdata ),
+ .s_axis_chdr_tlast (xb_to_ep7_tlast ),
+ .s_axis_chdr_tvalid (xb_to_ep7_tvalid ),
+ .s_axis_chdr_tready (xb_to_ep7_tready ),
+ .m_axis_chdr_tdata (ep7_to_xb_tdata ),
+ .m_axis_chdr_tlast (ep7_to_xb_tlast ),
+ .m_axis_chdr_tvalid (ep7_to_xb_tvalid ),
+ .m_axis_chdr_tready (ep7_to_xb_tready ),
+ .s_axis_data_tdata ({s_ep7_in0_tdata}),
+ .s_axis_data_tlast ({s_ep7_in0_tlast}),
+ .s_axis_data_tvalid ({s_ep7_in0_tvalid}),
+ .s_axis_data_tready ({s_ep7_in0_tready}),
+ .m_axis_data_tdata ({m_ep7_out0_tdata}),
+ .m_axis_data_tlast ({m_ep7_out0_tlast}),
+ .m_axis_data_tvalid ({m_ep7_out0_tvalid}),
+ .m_axis_data_tready ({m_ep7_out0_tready}),
+ .s_axis_ctrl_tdata (s_ep7_ctrl_tdata ),
+ .s_axis_ctrl_tlast (s_ep7_ctrl_tlast ),
+ .s_axis_ctrl_tvalid (s_ep7_ctrl_tvalid),
+ .s_axis_ctrl_tready (s_ep7_ctrl_tready),
+ .m_axis_ctrl_tdata (m_ep7_ctrl_tdata ),
+ .m_axis_ctrl_tlast (m_ep7_ctrl_tlast ),
+ .m_axis_ctrl_tvalid (m_ep7_ctrl_tvalid),
+ .m_axis_ctrl_tready (m_ep7_ctrl_tready),
+ .strm_seq_err_stb ( ),
+ .strm_data_err_stb ( ),
+ .strm_route_err_stb ( ),
+ .signal_data_err (1'b0 )
+ );
+
// ----------------------------------------------------
@@ -490,10 +766,14 @@ module rfnoc_image_core #(
wire m_radio1_ctrl_tlast , s_radio1_ctrl_tlast ;
wire m_radio1_ctrl_tvalid, s_radio1_ctrl_tvalid;
wire m_radio1_ctrl_tready, s_radio1_ctrl_tready;
+ wire [31:0] m_replay0_ctrl_tdata , s_replay0_ctrl_tdata ;
+ wire m_replay0_ctrl_tlast , s_replay0_ctrl_tlast ;
+ wire m_replay0_ctrl_tvalid, s_replay0_ctrl_tvalid;
+ wire m_replay0_ctrl_tready, s_replay0_ctrl_tready;
axis_ctrl_crossbar_nxn #(
.WIDTH (32),
- .NPORTS (8),
+ .NPORTS (9),
.TOPOLOGY ("TORUS"),
.INGRESS_BUFF_SIZE(5),
.ROUTER_BUFF_SIZE (5),
@@ -502,32 +782,32 @@ module rfnoc_image_core #(
) ctrl_xb_i (
.clk (rfnoc_ctrl_clk),
.reset (rfnoc_ctrl_rst),
- .s_axis_tdata ({m_radio1_ctrl_tdata , m_ddc1_ctrl_tdata , m_duc1_ctrl_tdata , m_radio0_ctrl_tdata , m_ddc0_ctrl_tdata , m_duc0_ctrl_tdata , m_ep0_ctrl_tdata , m_core_ctrl_tdata }),
- .s_axis_tvalid ({m_radio1_ctrl_tvalid, m_ddc1_ctrl_tvalid, m_duc1_ctrl_tvalid, m_radio0_ctrl_tvalid, m_ddc0_ctrl_tvalid, m_duc0_ctrl_tvalid, m_ep0_ctrl_tvalid, m_core_ctrl_tvalid}),
- .s_axis_tlast ({m_radio1_ctrl_tlast , m_ddc1_ctrl_tlast , m_duc1_ctrl_tlast , m_radio0_ctrl_tlast , m_ddc0_ctrl_tlast , m_duc0_ctrl_tlast , m_ep0_ctrl_tlast , m_core_ctrl_tlast }),
- .s_axis_tready ({m_radio1_ctrl_tready, m_ddc1_ctrl_tready, m_duc1_ctrl_tready, m_radio0_ctrl_tready, m_ddc0_ctrl_tready, m_duc0_ctrl_tready, m_ep0_ctrl_tready, m_core_ctrl_tready}),
- .m_axis_tdata ({s_radio1_ctrl_tdata , s_ddc1_ctrl_tdata , s_duc1_ctrl_tdata , s_radio0_ctrl_tdata , s_ddc0_ctrl_tdata , s_duc0_ctrl_tdata , s_ep0_ctrl_tdata , s_core_ctrl_tdata }),
- .m_axis_tvalid ({s_radio1_ctrl_tvalid, s_ddc1_ctrl_tvalid, s_duc1_ctrl_tvalid, s_radio0_ctrl_tvalid, s_ddc0_ctrl_tvalid, s_duc0_ctrl_tvalid, s_ep0_ctrl_tvalid, s_core_ctrl_tvalid}),
- .m_axis_tlast ({s_radio1_ctrl_tlast , s_ddc1_ctrl_tlast , s_duc1_ctrl_tlast , s_radio0_ctrl_tlast , s_ddc0_ctrl_tlast , s_duc0_ctrl_tlast , s_ep0_ctrl_tlast , s_core_ctrl_tlast }),
- .m_axis_tready ({s_radio1_ctrl_tready, s_ddc1_ctrl_tready, s_duc1_ctrl_tready, s_radio0_ctrl_tready, s_ddc0_ctrl_tready, s_duc0_ctrl_tready, s_ep0_ctrl_tready, s_core_ctrl_tready}),
+ .s_axis_tdata ({m_replay0_ctrl_tdata , m_radio1_ctrl_tdata , m_ddc1_ctrl_tdata , m_duc1_ctrl_tdata , m_radio0_ctrl_tdata , m_ddc0_ctrl_tdata , m_duc0_ctrl_tdata , m_ep0_ctrl_tdata , m_core_ctrl_tdata }),
+ .s_axis_tvalid ({m_replay0_ctrl_tvalid, m_radio1_ctrl_tvalid, m_ddc1_ctrl_tvalid, m_duc1_ctrl_tvalid, m_radio0_ctrl_tvalid, m_ddc0_ctrl_tvalid, m_duc0_ctrl_tvalid, m_ep0_ctrl_tvalid, m_core_ctrl_tvalid}),
+ .s_axis_tlast ({m_replay0_ctrl_tlast , m_radio1_ctrl_tlast , m_ddc1_ctrl_tlast , m_duc1_ctrl_tlast , m_radio0_ctrl_tlast , m_ddc0_ctrl_tlast , m_duc0_ctrl_tlast , m_ep0_ctrl_tlast , m_core_ctrl_tlast }),
+ .s_axis_tready ({m_replay0_ctrl_tready, m_radio1_ctrl_tready, m_ddc1_ctrl_tready, m_duc1_ctrl_tready, m_radio0_ctrl_tready, m_ddc0_ctrl_tready, m_duc0_ctrl_tready, m_ep0_ctrl_tready, m_core_ctrl_tready}),
+ .m_axis_tdata ({s_replay0_ctrl_tdata , s_radio1_ctrl_tdata , s_ddc1_ctrl_tdata , s_duc1_ctrl_tdata , s_radio0_ctrl_tdata , s_ddc0_ctrl_tdata , s_duc0_ctrl_tdata , s_ep0_ctrl_tdata , s_core_ctrl_tdata }),
+ .m_axis_tvalid ({s_replay0_ctrl_tvalid, s_radio1_ctrl_tvalid, s_ddc1_ctrl_tvalid, s_duc1_ctrl_tvalid, s_radio0_ctrl_tvalid, s_ddc0_ctrl_tvalid, s_duc0_ctrl_tvalid, s_ep0_ctrl_tvalid, s_core_ctrl_tvalid}),
+ .m_axis_tlast ({s_replay0_ctrl_tlast , s_radio1_ctrl_tlast , s_ddc1_ctrl_tlast , s_duc1_ctrl_tlast , s_radio0_ctrl_tlast , s_ddc0_ctrl_tlast , s_duc0_ctrl_tlast , s_ep0_ctrl_tlast , s_core_ctrl_tlast }),
+ .m_axis_tready ({s_replay0_ctrl_tready, s_radio1_ctrl_tready, s_ddc1_ctrl_tready, s_duc1_ctrl_tready, s_radio0_ctrl_tready, s_ddc0_ctrl_tready, s_duc0_ctrl_tready, s_ep0_ctrl_tready, s_core_ctrl_tready}),
.deadlock_detected()
);
// ----------------------------------------------------
// RFNoC Core Kernel
// ----------------------------------------------------
- wire [(512*6)-1:0] rfnoc_core_config, rfnoc_core_status;
+ wire [(512*7)-1:0] rfnoc_core_config, rfnoc_core_status;
rfnoc_core_kernel #(
.PROTOVER (PROTOVER),
.DEVICE_TYPE (16'h1300),
.DEVICE_FAMILY ("7SERIES"),
.SAFE_START_CLKS (0),
- .NUM_BLOCKS (6),
- .NUM_STREAM_ENDPOINTS(4),
+ .NUM_BLOCKS (7),
+ .NUM_STREAM_ENDPOINTS(8),
.NUM_ENDPOINTS_CTRL (1),
.NUM_TRANSPORTS (3),
- .NUM_EDGES (16),
+ .NUM_EDGES (24),
.CHDR_XBAR_PRESENT (1),
.EDGE_TBL_FILE (EDGE_TBL_FILE)
) core_kernel_i (
@@ -916,6 +1196,145 @@ module rfnoc_image_core #(
// ----------------------------------------------------
+ // replay0
+ // ----------------------------------------------------
+ wire replay0_mem_clk;
+ wire [CHDR_W-1:0] s_replay0_in_3_tdata , s_replay0_in_2_tdata , s_replay0_in_1_tdata , s_replay0_in_0_tdata ;
+ wire s_replay0_in_3_tlast , s_replay0_in_2_tlast , s_replay0_in_1_tlast , s_replay0_in_0_tlast ;
+ wire s_replay0_in_3_tvalid, s_replay0_in_2_tvalid, s_replay0_in_1_tvalid, s_replay0_in_0_tvalid;
+ wire s_replay0_in_3_tready, s_replay0_in_2_tready, s_replay0_in_1_tready, s_replay0_in_0_tready;
+ wire [CHDR_W-1:0] m_replay0_out_3_tdata , m_replay0_out_2_tdata , m_replay0_out_1_tdata , m_replay0_out_0_tdata ;
+ wire m_replay0_out_3_tlast , m_replay0_out_2_tlast , m_replay0_out_1_tlast , m_replay0_out_0_tlast ;
+ wire m_replay0_out_3_tvalid, m_replay0_out_2_tvalid, m_replay0_out_1_tvalid, m_replay0_out_0_tvalid;
+ wire m_replay0_out_3_tready, m_replay0_out_2_tready, m_replay0_out_1_tready, m_replay0_out_0_tready;
+
+ // axi_ram
+ wire [ 1-1:0] replay0_axi_rst;
+ wire [ 4-1:0] replay0_m_axi_awid;
+ wire [128-1:0] replay0_m_axi_awaddr;
+ wire [ 32-1:0] replay0_m_axi_awlen;
+ wire [ 12-1:0] replay0_m_axi_awsize;
+ wire [ 8-1:0] replay0_m_axi_awburst;
+ wire [ 4-1:0] replay0_m_axi_awlock;
+ wire [ 16-1:0] replay0_m_axi_awcache;
+ wire [ 12-1:0] replay0_m_axi_awprot;
+ wire [ 16-1:0] replay0_m_axi_awqos;
+ wire [ 16-1:0] replay0_m_axi_awregion;
+ wire [ 4-1:0] replay0_m_axi_awuser;
+ wire [ 4-1:0] replay0_m_axi_awvalid;
+ wire [ 4-1:0] replay0_m_axi_awready;
+ wire [256-1:0] replay0_m_axi_wdata;
+ wire [ 32-1:0] replay0_m_axi_wstrb;
+ wire [ 4-1:0] replay0_m_axi_wlast;
+ wire [ 4-1:0] replay0_m_axi_wuser;
+ wire [ 4-1:0] replay0_m_axi_wvalid;
+ wire [ 4-1:0] replay0_m_axi_wready;
+ wire [ 4-1:0] replay0_m_axi_bid;
+ wire [ 8-1:0] replay0_m_axi_bresp;
+ wire [ 4-1:0] replay0_m_axi_buser;
+ wire [ 4-1:0] replay0_m_axi_bvalid;
+ wire [ 4-1:0] replay0_m_axi_bready;
+ wire [ 4-1:0] replay0_m_axi_arid;
+ wire [128-1:0] replay0_m_axi_araddr;
+ wire [ 32-1:0] replay0_m_axi_arlen;
+ wire [ 12-1:0] replay0_m_axi_arsize;
+ wire [ 8-1:0] replay0_m_axi_arburst;
+ wire [ 4-1:0] replay0_m_axi_arlock;
+ wire [ 16-1:0] replay0_m_axi_arcache;
+ wire [ 12-1:0] replay0_m_axi_arprot;
+ wire [ 16-1:0] replay0_m_axi_arqos;
+ wire [ 16-1:0] replay0_m_axi_arregion;
+ wire [ 4-1:0] replay0_m_axi_aruser;
+ wire [ 4-1:0] replay0_m_axi_arvalid;
+ wire [ 4-1:0] replay0_m_axi_arready;
+ wire [ 4-1:0] replay0_m_axi_rid;
+ wire [256-1:0] replay0_m_axi_rdata;
+ wire [ 8-1:0] replay0_m_axi_rresp;
+ wire [ 4-1:0] replay0_m_axi_rlast;
+ wire [ 4-1:0] replay0_m_axi_ruser;
+ wire [ 4-1:0] replay0_m_axi_rvalid;
+ wire [ 4-1:0] replay0_m_axi_rready;
+
+ rfnoc_block_replay #(
+ .THIS_PORTID(8),
+ .CHDR_W(CHDR_W),
+ .NUM_PORTS(4),
+ .MEM_ADDR_W(31),
+ .MEM_DATA_W(64),
+ .MTU(MTU)
+ ) b_replay0_6 (
+ .rfnoc_chdr_clk (rfnoc_chdr_clk),
+ .rfnoc_ctrl_clk (rfnoc_ctrl_clk),
+ .mem_clk(replay0_mem_clk),
+ .rfnoc_core_config (rfnoc_core_config[512*7-1:512*6]),
+ .rfnoc_core_status (rfnoc_core_status[512*7-1:512*6]),
+
+ .axi_rst(replay0_axi_rst),
+ .m_axi_awid(replay0_m_axi_awid),
+ .m_axi_awaddr(replay0_m_axi_awaddr),
+ .m_axi_awlen(replay0_m_axi_awlen),
+ .m_axi_awsize(replay0_m_axi_awsize),
+ .m_axi_awburst(replay0_m_axi_awburst),
+ .m_axi_awlock(replay0_m_axi_awlock),
+ .m_axi_awcache(replay0_m_axi_awcache),
+ .m_axi_awprot(replay0_m_axi_awprot),
+ .m_axi_awqos(replay0_m_axi_awqos),
+ .m_axi_awregion(replay0_m_axi_awregion),
+ .m_axi_awuser(replay0_m_axi_awuser),
+ .m_axi_awvalid(replay0_m_axi_awvalid),
+ .m_axi_awready(replay0_m_axi_awready),
+ .m_axi_wdata(replay0_m_axi_wdata),
+ .m_axi_wstrb(replay0_m_axi_wstrb),
+ .m_axi_wlast(replay0_m_axi_wlast),
+ .m_axi_wuser(replay0_m_axi_wuser),
+ .m_axi_wvalid(replay0_m_axi_wvalid),
+ .m_axi_wready(replay0_m_axi_wready),
+ .m_axi_bid(replay0_m_axi_bid),
+ .m_axi_bresp(replay0_m_axi_bresp),
+ .m_axi_buser(replay0_m_axi_buser),
+ .m_axi_bvalid(replay0_m_axi_bvalid),
+ .m_axi_bready(replay0_m_axi_bready),
+ .m_axi_arid(replay0_m_axi_arid),
+ .m_axi_araddr(replay0_m_axi_araddr),
+ .m_axi_arlen(replay0_m_axi_arlen),
+ .m_axi_arsize(replay0_m_axi_arsize),
+ .m_axi_arburst(replay0_m_axi_arburst),
+ .m_axi_arlock(replay0_m_axi_arlock),
+ .m_axi_arcache(replay0_m_axi_arcache),
+ .m_axi_arprot(replay0_m_axi_arprot),
+ .m_axi_arqos(replay0_m_axi_arqos),
+ .m_axi_arregion(replay0_m_axi_arregion),
+ .m_axi_aruser(replay0_m_axi_aruser),
+ .m_axi_arvalid(replay0_m_axi_arvalid),
+ .m_axi_arready(replay0_m_axi_arready),
+ .m_axi_rid(replay0_m_axi_rid),
+ .m_axi_rdata(replay0_m_axi_rdata),
+ .m_axi_rresp(replay0_m_axi_rresp),
+ .m_axi_rlast(replay0_m_axi_rlast),
+ .m_axi_ruser(replay0_m_axi_ruser),
+ .m_axi_rvalid(replay0_m_axi_rvalid),
+ .m_axi_rready(replay0_m_axi_rready),
+
+ .s_rfnoc_chdr_tdata ({s_replay0_in_3_tdata , s_replay0_in_2_tdata , s_replay0_in_1_tdata , s_replay0_in_0_tdata }),
+ .s_rfnoc_chdr_tlast ({s_replay0_in_3_tlast , s_replay0_in_2_tlast , s_replay0_in_1_tlast , s_replay0_in_0_tlast }),
+ .s_rfnoc_chdr_tvalid({s_replay0_in_3_tvalid, s_replay0_in_2_tvalid, s_replay0_in_1_tvalid, s_replay0_in_0_tvalid}),
+ .s_rfnoc_chdr_tready({s_replay0_in_3_tready, s_replay0_in_2_tready, s_replay0_in_1_tready, s_replay0_in_0_tready}),
+ .m_rfnoc_chdr_tdata ({m_replay0_out_3_tdata , m_replay0_out_2_tdata , m_replay0_out_1_tdata , m_replay0_out_0_tdata }),
+ .m_rfnoc_chdr_tlast ({m_replay0_out_3_tlast , m_replay0_out_2_tlast , m_replay0_out_1_tlast , m_replay0_out_0_tlast }),
+ .m_rfnoc_chdr_tvalid({m_replay0_out_3_tvalid, m_replay0_out_2_tvalid, m_replay0_out_1_tvalid, m_replay0_out_0_tvalid}),
+ .m_rfnoc_chdr_tready({m_replay0_out_3_tready, m_replay0_out_2_tready, m_replay0_out_1_tready, m_replay0_out_0_tready}),
+ .s_rfnoc_ctrl_tdata (s_replay0_ctrl_tdata ),
+ .s_rfnoc_ctrl_tlast (s_replay0_ctrl_tlast ),
+ .s_rfnoc_ctrl_tvalid(s_replay0_ctrl_tvalid),
+ .s_rfnoc_ctrl_tready(s_replay0_ctrl_tready),
+ .m_rfnoc_ctrl_tdata (m_replay0_ctrl_tdata ),
+ .m_rfnoc_ctrl_tlast (m_replay0_ctrl_tlast ),
+ .m_rfnoc_ctrl_tvalid(m_replay0_ctrl_tvalid),
+ .m_rfnoc_ctrl_tready(m_replay0_ctrl_tready)
+ );
+
+
+ // ----------------------------------------------------
// Static Router
// ----------------------------------------------------
assign s_duc0_in_0_tdata = m_ep0_out0_tdata ;
@@ -998,6 +1417,46 @@ module rfnoc_image_core #(
assign s_ep3_in0_tvalid = m_ddc1_out_1_tvalid;
assign m_ddc1_out_1_tready = s_ep3_in0_tready;
+ assign s_replay0_in_0_tdata = m_ep4_out0_tdata ;
+ assign s_replay0_in_0_tlast = m_ep4_out0_tlast ;
+ assign s_replay0_in_0_tvalid = m_ep4_out0_tvalid;
+ assign m_ep4_out0_tready = s_replay0_in_0_tready;
+
+ assign s_ep4_in0_tdata = m_replay0_out_0_tdata ;
+ assign s_ep4_in0_tlast = m_replay0_out_0_tlast ;
+ assign s_ep4_in0_tvalid = m_replay0_out_0_tvalid;
+ assign m_replay0_out_0_tready = s_ep4_in0_tready;
+
+ assign s_replay0_in_1_tdata = m_ep5_out0_tdata ;
+ assign s_replay0_in_1_tlast = m_ep5_out0_tlast ;
+ assign s_replay0_in_1_tvalid = m_ep5_out0_tvalid;
+ assign m_ep5_out0_tready = s_replay0_in_1_tready;
+
+ assign s_ep5_in0_tdata = m_replay0_out_1_tdata ;
+ assign s_ep5_in0_tlast = m_replay0_out_1_tlast ;
+ assign s_ep5_in0_tvalid = m_replay0_out_1_tvalid;
+ assign m_replay0_out_1_tready = s_ep5_in0_tready;
+
+ assign s_replay0_in_2_tdata = m_ep6_out0_tdata ;
+ assign s_replay0_in_2_tlast = m_ep6_out0_tlast ;
+ assign s_replay0_in_2_tvalid = m_ep6_out0_tvalid;
+ assign m_ep6_out0_tready = s_replay0_in_2_tready;
+
+ assign s_ep6_in0_tdata = m_replay0_out_2_tdata ;
+ assign s_ep6_in0_tlast = m_replay0_out_2_tlast ;
+ assign s_ep6_in0_tvalid = m_replay0_out_2_tvalid;
+ assign m_replay0_out_2_tready = s_ep6_in0_tready;
+
+ assign s_replay0_in_3_tdata = m_ep7_out0_tdata ;
+ assign s_replay0_in_3_tlast = m_ep7_out0_tlast ;
+ assign s_replay0_in_3_tvalid = m_ep7_out0_tvalid;
+ assign m_ep7_out0_tready = s_replay0_in_3_tready;
+
+ assign s_ep7_in0_tdata = m_replay0_out_3_tdata ;
+ assign s_ep7_in0_tlast = m_replay0_out_3_tlast ;
+ assign s_ep7_in0_tvalid = m_replay0_out_3_tvalid;
+ assign m_replay0_out_3_tready = s_ep7_in0_tready;
+
// ----------------------------------------------------
// Unused Ports
@@ -1012,6 +1471,7 @@ module rfnoc_image_core #(
assign radio1_radio_clk = radio_clk;
assign ddc1_ce_clk = rfnoc_chdr_clk;
assign duc1_ce_clk = rfnoc_chdr_clk;
+ assign replay0_mem_clk = dram_clk;
// ----------------------------------------------------
@@ -1040,6 +1500,52 @@ module rfnoc_image_core #(
assign radio1_m_ctrlport_resp_status = m_ctrlport_radio1_resp_status;
assign radio1_m_ctrlport_resp_data = m_ctrlport_radio1_resp_data;
+ assign replay0_axi_rst = axi_rst;
+ assign m_axi_awid = replay0_m_axi_awid;
+ assign m_axi_awaddr = replay0_m_axi_awaddr;
+ assign m_axi_awlen = replay0_m_axi_awlen;
+ assign m_axi_awsize = replay0_m_axi_awsize;
+ assign m_axi_awburst = replay0_m_axi_awburst;
+ assign m_axi_awlock = replay0_m_axi_awlock;
+ assign m_axi_awcache = replay0_m_axi_awcache;
+ assign m_axi_awprot = replay0_m_axi_awprot;
+ assign m_axi_awqos = replay0_m_axi_awqos;
+ assign m_axi_awregion = replay0_m_axi_awregion;
+ assign m_axi_awuser = replay0_m_axi_awuser;
+ assign m_axi_awvalid = replay0_m_axi_awvalid;
+ assign replay0_m_axi_awready = m_axi_awready;
+ assign m_axi_wdata = replay0_m_axi_wdata;
+ assign m_axi_wstrb = replay0_m_axi_wstrb;
+ assign m_axi_wlast = replay0_m_axi_wlast;
+ assign m_axi_wuser = replay0_m_axi_wuser;
+ assign m_axi_wvalid = replay0_m_axi_wvalid;
+ assign replay0_m_axi_wready = m_axi_wready;
+ assign replay0_m_axi_bid = m_axi_bid;
+ assign replay0_m_axi_bresp = m_axi_bresp;
+ assign replay0_m_axi_buser = m_axi_buser;
+ assign replay0_m_axi_bvalid = m_axi_bvalid;
+ assign m_axi_bready = replay0_m_axi_bready;
+ assign m_axi_arid = replay0_m_axi_arid;
+ assign m_axi_araddr = replay0_m_axi_araddr;
+ assign m_axi_arlen = replay0_m_axi_arlen;
+ assign m_axi_arsize = replay0_m_axi_arsize;
+ assign m_axi_arburst = replay0_m_axi_arburst;
+ assign m_axi_arlock = replay0_m_axi_arlock;
+ assign m_axi_arcache = replay0_m_axi_arcache;
+ assign m_axi_arprot = replay0_m_axi_arprot;
+ assign m_axi_arqos = replay0_m_axi_arqos;
+ assign m_axi_arregion = replay0_m_axi_arregion;
+ assign m_axi_aruser = replay0_m_axi_aruser;
+ assign m_axi_arvalid = replay0_m_axi_arvalid;
+ assign replay0_m_axi_arready = m_axi_arready;
+ assign replay0_m_axi_rid = m_axi_rid;
+ assign replay0_m_axi_rdata = m_axi_rdata;
+ assign replay0_m_axi_rresp = m_axi_rresp;
+ assign replay0_m_axi_rlast = m_axi_rlast;
+ assign replay0_m_axi_ruser = m_axi_ruser;
+ assign replay0_m_axi_rvalid = m_axi_rvalid;
+ assign m_axi_rready = replay0_m_axi_rready;
+
assign radio0_radio_rx_data = radio_rx_data_radio0;
assign radio0_radio_rx_stb = radio_rx_stb_radio0;
assign radio_rx_running_radio0 = radio0_radio_rx_running;
diff --git a/fpga/usrp3/top/n3xx/n310_rfnoc_image_core.yml b/fpga/usrp3/top/n3xx/n310_rfnoc_image_core.yml
index d930baf6f..abef58afc 100644
--- a/fpga/usrp3/top/n3xx/n310_rfnoc_image_core.yml
+++ b/fpga/usrp3/top/n3xx/n310_rfnoc_image_core.yml
@@ -28,6 +28,22 @@ stream_endpoints:
ctrl: False # Endpoint passes control traffic
data: True # Endpoint passes data traffic
buff_size: 32768 # Ingress buffer size for data
+ ep4: # Stream endpoint name
+ ctrl: False # Endpoint passes control traffic
+ data: True # Endpoint passes data traffic
+ buff_size: 4096 # Ingress buffer size for data
+ ep5: # Stream endpoint name
+ ctrl: False # Endpoint passes control traffic
+ data: True # Endpoint passes data traffic
+ buff_size: 4096 # Ingress buffer size for data
+ ep6: # Stream endpoint name
+ ctrl: False # Endpoint passes control traffic
+ data: True # Endpoint passes data traffic
+ buff_size: 4096 # Ingress buffer size for data
+ ep7: # Stream endpoint name
+ ctrl: False # Endpoint passes control traffic
+ data: True # Endpoint passes data traffic
+ buff_size: 4096 # Ingress buffer size for data
# A list of all NoC blocks in design
# ----------------------------------
@@ -52,16 +68,11 @@ noc_blocks:
NUM_PORTS: 2
radio1:
block_desc: 'radio_2x64.yml'
- #fifo0:
- #block_desc: 'axi_ram_fifo_4x64.yml'
- #parameters:
- ## These parameters match the memory interface on the N3XX
- #NUM_PORTS: 4
- #MEM_DATA_W: 64
- #MEM_ADDR_W: 31
- #FIFO_ADDR_BASE: "{30'h06000000, 30'h04000000, 30'h02000000, 30'h00000000}"
- #FIFO_ADDR_MASK: "{30'h01FFFFFF, 30'h01FFFFFF, 30'h01FFFFFF, 30'h01FFFFFF}"
- #MEM_CLK_RATE: "303819444" # 166.666666 MHz * 21.875 / 4 / 3 = 303.819444 MHz
+ replay0:
+ block_desc: 'replay.yml'
+ parameters:
+ NUM_PORTS: 4
+ MEM_ADDR_W: 31
# A list of all static connections in design
# ------------------------------------------
@@ -87,8 +98,17 @@ connections:
- { srcblk: duc1, srcport: out_1, dstblk: radio1, dstport: in_1 }
- { srcblk: radio1, srcport: out_1, dstblk: ddc1, dstport: in_1 }
- { srcblk: ddc1, srcport: out_1, dstblk: ep3, dstport: in0 }
+ - { srcblk: ep4, srcport: out0, dstblk: replay0, dstport: in_0 }
+ - { srcblk: replay0, srcport: out_0, dstblk: ep4, dstport: in0 }
+ - { srcblk: ep5, srcport: out0, dstblk: replay0, dstport: in_1 }
+ - { srcblk: replay0, srcport: out_1, dstblk: ep5, dstport: in0 }
+ - { srcblk: ep6, srcport: out0, dstblk: replay0, dstport: in_2 }
+ - { srcblk: replay0, srcport: out_2, dstblk: ep6, dstport: in0 }
+ - { srcblk: ep7, srcport: out0, dstblk: replay0, dstport: in_3 }
+ - { srcblk: replay0, srcport: out_3, dstblk: ep7, dstport: in0 }
- { srcblk: radio0, srcport: ctrl_port, dstblk: _device_, dstport: ctrlport_radio0 }
- { srcblk: radio1, srcport: ctrl_port, dstblk: _device_, dstport: ctrlport_radio1 }
+ - { srcblk: replay0, srcport: axi_ram, dstblk: _device_, dstport: dram }
- { srcblk: _device_, srcport: x300_radio0, dstblk: radio0, dstport: x300_radio }
- { srcblk: _device_, srcport: x300_radio1, dstblk: radio1, dstport: x300_radio }
- { srcblk: _device_, srcport: time_keeper, dstblk: radio0, dstport: time_keeper }
@@ -108,4 +128,4 @@ clk_domains:
- { srcblk: _device_, srcport: radio, dstblk: radio1, dstport: radio }
- { srcblk: _device_, srcport: rfnoc_chdr, dstblk: ddc1, dstport: ce }
- { srcblk: _device_, srcport: rfnoc_chdr, dstblk: duc1, dstport: ce }
-# - { srcblk: _device_, srcport: dram, dstblk: fifo0, dstport: mem }
+ - { srcblk: _device_, srcport: dram, dstblk: replay0, dstport: mem }
diff --git a/fpga/usrp3/top/n3xx/n310_static_router.hex b/fpga/usrp3/top/n3xx/n310_static_router.hex
index 73449b968..99d1452cd 100644
--- a/fpga/usrp3/top/n3xx/n310_static_router.hex
+++ b/fpga/usrp3/top/n3xx/n310_static_router.hex
@@ -1,17 +1,25 @@
-00000010
-00400140
-014001c0
-01c00180
-01800040
-00800141
-014101c1
-01c10181
-01810080
-00c00200
-02000280
-02800240
-024000c0
-01000201
-02010281
-02810241
-02410100
+00000018
+00400240
+024002c0
+02c00280
+02800040
+00800241
+024102c1
+02c10281
+02810080
+00c00300
+03000380
+03800340
+034000c0
+01000301
+03010381
+03810341
+03410100
+014003c0
+03c00140
+018003c1
+03c10180
+01c003c2
+03c201c0
+020003c3
+03c30200
diff --git a/fpga/usrp3/top/n3xx/n320_rfnoc_image_core.v b/fpga/usrp3/top/n3xx/n320_rfnoc_image_core.v
index 40c76d629..6196836eb 100644
--- a/fpga/usrp3/top/n3xx/n320_rfnoc_image_core.v
+++ b/fpga/usrp3/top/n3xx/n320_rfnoc_image_core.v
@@ -7,9 +7,9 @@
// Module: rfnoc_image_core (for n320)
// This file was autogenerated by UHD's image builder tool (rfnoc_image_builder)
// Re-running that tool will overwrite this file!
-// File generated on: 2020-08-10T16:16:40.486292
+// File generated on: 2020-09-02T12:03:04.264797
// Source: ./n320_rfnoc_image_core.yml
-// Source SHA256: dd1cf12171ae4b9c0e66dca548a881337bb27815a1ed9c18cd151459939de6bf
+// Source SHA256: a059eb9043ce1c034abc0a0db7daad88a5e584207994c53030a98b3bea1bce39
module rfnoc_image_core #(
parameter [15:0] PROTOVER = {8'd1, 8'd0}
@@ -162,10 +162,26 @@ module rfnoc_image_core #(
wire ep1_to_xb_tlast ;
wire ep1_to_xb_tvalid;
wire ep1_to_xb_tready;
+ wire [CHDR_W-1:0] xb_to_ep2_tdata ;
+ wire xb_to_ep2_tlast ;
+ wire xb_to_ep2_tvalid;
+ wire xb_to_ep2_tready;
+ wire [CHDR_W-1:0] ep2_to_xb_tdata ;
+ wire ep2_to_xb_tlast ;
+ wire ep2_to_xb_tvalid;
+ wire ep2_to_xb_tready;
+ wire [CHDR_W-1:0] xb_to_ep3_tdata ;
+ wire xb_to_ep3_tlast ;
+ wire xb_to_ep3_tvalid;
+ wire xb_to_ep3_tready;
+ wire [CHDR_W-1:0] ep3_to_xb_tdata ;
+ wire ep3_to_xb_tlast ;
+ wire ep3_to_xb_tvalid;
+ wire ep3_to_xb_tready;
chdr_crossbar_nxn #(
.CHDR_W (CHDR_W),
- .NPORTS (5),
+ .NPORTS (7),
.DEFAULT_PORT (0),
.MTU (MTU),
.ROUTE_TBL_SIZE (6),
@@ -178,14 +194,14 @@ module rfnoc_image_core #(
.clk (rfnoc_chdr_clk),
.reset (rfnoc_chdr_rst),
.device_id (device_id),
- .s_axis_tdata ({ep1_to_xb_tdata, ep0_to_xb_tdata, s_dma_tdata, s_eth1_tdata, s_eth0_tdata}),
- .s_axis_tlast ({ep1_to_xb_tlast, ep0_to_xb_tlast, s_dma_tlast, s_eth1_tlast, s_eth0_tlast}),
- .s_axis_tvalid ({ep1_to_xb_tvalid, ep0_to_xb_tvalid, s_dma_tvalid, s_eth1_tvalid, s_eth0_tvalid}),
- .s_axis_tready ({ep1_to_xb_tready, ep0_to_xb_tready, s_dma_tready, s_eth1_tready, s_eth0_tready}),
- .m_axis_tdata ({xb_to_ep1_tdata, xb_to_ep0_tdata, m_dma_tdata, m_eth1_tdata, m_eth0_tdata}),
- .m_axis_tlast ({xb_to_ep1_tlast, xb_to_ep0_tlast, m_dma_tlast, m_eth1_tlast, m_eth0_tlast}),
- .m_axis_tvalid ({xb_to_ep1_tvalid, xb_to_ep0_tvalid, m_dma_tvalid, m_eth1_tvalid, m_eth0_tvalid}),
- .m_axis_tready ({xb_to_ep1_tready, xb_to_ep0_tready, m_dma_tready, m_eth1_tready, m_eth0_tready}),
+ .s_axis_tdata ({ep3_to_xb_tdata, ep2_to_xb_tdata, ep1_to_xb_tdata, ep0_to_xb_tdata, s_dma_tdata, s_eth1_tdata, s_eth0_tdata}),
+ .s_axis_tlast ({ep3_to_xb_tlast, ep2_to_xb_tlast, ep1_to_xb_tlast, ep0_to_xb_tlast, s_dma_tlast, s_eth1_tlast, s_eth0_tlast}),
+ .s_axis_tvalid ({ep3_to_xb_tvalid, ep2_to_xb_tvalid, ep1_to_xb_tvalid, ep0_to_xb_tvalid, s_dma_tvalid, s_eth1_tvalid, s_eth0_tvalid}),
+ .s_axis_tready ({ep3_to_xb_tready, ep2_to_xb_tready, ep1_to_xb_tready, ep0_to_xb_tready, s_dma_tready, s_eth1_tready, s_eth0_tready}),
+ .m_axis_tdata ({xb_to_ep3_tdata, xb_to_ep2_tdata, xb_to_ep1_tdata, xb_to_ep0_tdata, m_dma_tdata, m_eth1_tdata, m_eth0_tdata}),
+ .m_axis_tlast ({xb_to_ep3_tlast, xb_to_ep2_tlast, xb_to_ep1_tlast, xb_to_ep0_tlast, m_dma_tlast, m_eth1_tlast, m_eth0_tlast}),
+ .m_axis_tvalid ({xb_to_ep3_tvalid, xb_to_ep2_tvalid, xb_to_ep1_tvalid, xb_to_ep0_tvalid, m_dma_tvalid, m_eth1_tvalid, m_eth0_tvalid}),
+ .m_axis_tready ({xb_to_ep3_tready, xb_to_ep2_tready, xb_to_ep1_tready, xb_to_ep0_tready, m_dma_tready, m_eth1_tready, m_eth0_tready}),
.ext_rtcfg_stb (1'h0),
.ext_rtcfg_addr (16'h0),
.ext_rtcfg_data (32'h0),
@@ -318,6 +334,128 @@ module rfnoc_image_core #(
.signal_data_err (1'b0 )
);
+ wire [CHDR_W-1:0] m_ep2_out0_tdata;
+ wire m_ep2_out0_tlast;
+ wire m_ep2_out0_tvalid;
+ wire m_ep2_out0_tready;
+ wire [CHDR_W-1:0] s_ep2_in0_tdata;
+ wire s_ep2_in0_tlast;
+ wire s_ep2_in0_tvalid;
+ wire s_ep2_in0_tready;
+ wire [31:0] m_ep2_ctrl_tdata , s_ep2_ctrl_tdata ;
+ wire m_ep2_ctrl_tlast , s_ep2_ctrl_tlast ;
+ wire m_ep2_ctrl_tvalid, s_ep2_ctrl_tvalid;
+ wire m_ep2_ctrl_tready, s_ep2_ctrl_tready;
+
+ chdr_stream_endpoint #(
+ .PROTOVER (PROTOVER),
+ .CHDR_W (CHDR_W),
+ .AXIS_CTRL_EN (0),
+ .AXIS_DATA_EN (1),
+ .NUM_DATA_I (1),
+ .NUM_DATA_O (1),
+ .INST_NUM (2),
+ .CTRL_XBAR_PORT (3),
+ .INGRESS_BUFF_SIZE (12),
+ .MTU (MTU),
+ .REPORT_STRM_ERRS (1)
+ ) ep2_i (
+ .rfnoc_chdr_clk (rfnoc_chdr_clk ),
+ .rfnoc_chdr_rst (rfnoc_chdr_rst ),
+ .rfnoc_ctrl_clk (rfnoc_ctrl_clk ),
+ .rfnoc_ctrl_rst (rfnoc_ctrl_rst ),
+ .device_id (device_id ),
+ .s_axis_chdr_tdata (xb_to_ep2_tdata ),
+ .s_axis_chdr_tlast (xb_to_ep2_tlast ),
+ .s_axis_chdr_tvalid (xb_to_ep2_tvalid ),
+ .s_axis_chdr_tready (xb_to_ep2_tready ),
+ .m_axis_chdr_tdata (ep2_to_xb_tdata ),
+ .m_axis_chdr_tlast (ep2_to_xb_tlast ),
+ .m_axis_chdr_tvalid (ep2_to_xb_tvalid ),
+ .m_axis_chdr_tready (ep2_to_xb_tready ),
+ .s_axis_data_tdata ({s_ep2_in0_tdata}),
+ .s_axis_data_tlast ({s_ep2_in0_tlast}),
+ .s_axis_data_tvalid ({s_ep2_in0_tvalid}),
+ .s_axis_data_tready ({s_ep2_in0_tready}),
+ .m_axis_data_tdata ({m_ep2_out0_tdata}),
+ .m_axis_data_tlast ({m_ep2_out0_tlast}),
+ .m_axis_data_tvalid ({m_ep2_out0_tvalid}),
+ .m_axis_data_tready ({m_ep2_out0_tready}),
+ .s_axis_ctrl_tdata (s_ep2_ctrl_tdata ),
+ .s_axis_ctrl_tlast (s_ep2_ctrl_tlast ),
+ .s_axis_ctrl_tvalid (s_ep2_ctrl_tvalid),
+ .s_axis_ctrl_tready (s_ep2_ctrl_tready),
+ .m_axis_ctrl_tdata (m_ep2_ctrl_tdata ),
+ .m_axis_ctrl_tlast (m_ep2_ctrl_tlast ),
+ .m_axis_ctrl_tvalid (m_ep2_ctrl_tvalid),
+ .m_axis_ctrl_tready (m_ep2_ctrl_tready),
+ .strm_seq_err_stb ( ),
+ .strm_data_err_stb ( ),
+ .strm_route_err_stb ( ),
+ .signal_data_err (1'b0 )
+ );
+
+ wire [CHDR_W-1:0] m_ep3_out0_tdata;
+ wire m_ep3_out0_tlast;
+ wire m_ep3_out0_tvalid;
+ wire m_ep3_out0_tready;
+ wire [CHDR_W-1:0] s_ep3_in0_tdata;
+ wire s_ep3_in0_tlast;
+ wire s_ep3_in0_tvalid;
+ wire s_ep3_in0_tready;
+ wire [31:0] m_ep3_ctrl_tdata , s_ep3_ctrl_tdata ;
+ wire m_ep3_ctrl_tlast , s_ep3_ctrl_tlast ;
+ wire m_ep3_ctrl_tvalid, s_ep3_ctrl_tvalid;
+ wire m_ep3_ctrl_tready, s_ep3_ctrl_tready;
+
+ chdr_stream_endpoint #(
+ .PROTOVER (PROTOVER),
+ .CHDR_W (CHDR_W),
+ .AXIS_CTRL_EN (0),
+ .AXIS_DATA_EN (1),
+ .NUM_DATA_I (1),
+ .NUM_DATA_O (1),
+ .INST_NUM (3),
+ .CTRL_XBAR_PORT (4),
+ .INGRESS_BUFF_SIZE (12),
+ .MTU (MTU),
+ .REPORT_STRM_ERRS (1)
+ ) ep3_i (
+ .rfnoc_chdr_clk (rfnoc_chdr_clk ),
+ .rfnoc_chdr_rst (rfnoc_chdr_rst ),
+ .rfnoc_ctrl_clk (rfnoc_ctrl_clk ),
+ .rfnoc_ctrl_rst (rfnoc_ctrl_rst ),
+ .device_id (device_id ),
+ .s_axis_chdr_tdata (xb_to_ep3_tdata ),
+ .s_axis_chdr_tlast (xb_to_ep3_tlast ),
+ .s_axis_chdr_tvalid (xb_to_ep3_tvalid ),
+ .s_axis_chdr_tready (xb_to_ep3_tready ),
+ .m_axis_chdr_tdata (ep3_to_xb_tdata ),
+ .m_axis_chdr_tlast (ep3_to_xb_tlast ),
+ .m_axis_chdr_tvalid (ep3_to_xb_tvalid ),
+ .m_axis_chdr_tready (ep3_to_xb_tready ),
+ .s_axis_data_tdata ({s_ep3_in0_tdata}),
+ .s_axis_data_tlast ({s_ep3_in0_tlast}),
+ .s_axis_data_tvalid ({s_ep3_in0_tvalid}),
+ .s_axis_data_tready ({s_ep3_in0_tready}),
+ .m_axis_data_tdata ({m_ep3_out0_tdata}),
+ .m_axis_data_tlast ({m_ep3_out0_tlast}),
+ .m_axis_data_tvalid ({m_ep3_out0_tvalid}),
+ .m_axis_data_tready ({m_ep3_out0_tready}),
+ .s_axis_ctrl_tdata (s_ep3_ctrl_tdata ),
+ .s_axis_ctrl_tlast (s_ep3_ctrl_tlast ),
+ .s_axis_ctrl_tvalid (s_ep3_ctrl_tvalid),
+ .s_axis_ctrl_tready (s_ep3_ctrl_tready),
+ .m_axis_ctrl_tdata (m_ep3_ctrl_tdata ),
+ .m_axis_ctrl_tlast (m_ep3_ctrl_tlast ),
+ .m_axis_ctrl_tvalid (m_ep3_ctrl_tvalid),
+ .m_axis_ctrl_tready (m_ep3_ctrl_tready),
+ .strm_seq_err_stb ( ),
+ .strm_data_err_stb ( ),
+ .strm_route_err_stb ( ),
+ .signal_data_err (1'b0 )
+ );
+
// ----------------------------------------------------
@@ -352,10 +490,14 @@ module rfnoc_image_core #(
wire m_radio1_ctrl_tlast , s_radio1_ctrl_tlast ;
wire m_radio1_ctrl_tvalid, s_radio1_ctrl_tvalid;
wire m_radio1_ctrl_tready, s_radio1_ctrl_tready;
+ wire [31:0] m_replay0_ctrl_tdata , s_replay0_ctrl_tdata ;
+ wire m_replay0_ctrl_tlast , s_replay0_ctrl_tlast ;
+ wire m_replay0_ctrl_tvalid, s_replay0_ctrl_tvalid;
+ wire m_replay0_ctrl_tready, s_replay0_ctrl_tready;
axis_ctrl_crossbar_nxn #(
.WIDTH (32),
- .NPORTS (8),
+ .NPORTS (9),
.TOPOLOGY ("TORUS"),
.INGRESS_BUFF_SIZE(5),
.ROUTER_BUFF_SIZE (5),
@@ -364,32 +506,32 @@ module rfnoc_image_core #(
) ctrl_xb_i (
.clk (rfnoc_ctrl_clk),
.reset (rfnoc_ctrl_rst),
- .s_axis_tdata ({m_radio1_ctrl_tdata , m_ddc1_ctrl_tdata , m_duc1_ctrl_tdata , m_radio0_ctrl_tdata , m_ddc0_ctrl_tdata , m_duc0_ctrl_tdata , m_ep0_ctrl_tdata , m_core_ctrl_tdata }),
- .s_axis_tvalid ({m_radio1_ctrl_tvalid, m_ddc1_ctrl_tvalid, m_duc1_ctrl_tvalid, m_radio0_ctrl_tvalid, m_ddc0_ctrl_tvalid, m_duc0_ctrl_tvalid, m_ep0_ctrl_tvalid, m_core_ctrl_tvalid}),
- .s_axis_tlast ({m_radio1_ctrl_tlast , m_ddc1_ctrl_tlast , m_duc1_ctrl_tlast , m_radio0_ctrl_tlast , m_ddc0_ctrl_tlast , m_duc0_ctrl_tlast , m_ep0_ctrl_tlast , m_core_ctrl_tlast }),
- .s_axis_tready ({m_radio1_ctrl_tready, m_ddc1_ctrl_tready, m_duc1_ctrl_tready, m_radio0_ctrl_tready, m_ddc0_ctrl_tready, m_duc0_ctrl_tready, m_ep0_ctrl_tready, m_core_ctrl_tready}),
- .m_axis_tdata ({s_radio1_ctrl_tdata , s_ddc1_ctrl_tdata , s_duc1_ctrl_tdata , s_radio0_ctrl_tdata , s_ddc0_ctrl_tdata , s_duc0_ctrl_tdata , s_ep0_ctrl_tdata , s_core_ctrl_tdata }),
- .m_axis_tvalid ({s_radio1_ctrl_tvalid, s_ddc1_ctrl_tvalid, s_duc1_ctrl_tvalid, s_radio0_ctrl_tvalid, s_ddc0_ctrl_tvalid, s_duc0_ctrl_tvalid, s_ep0_ctrl_tvalid, s_core_ctrl_tvalid}),
- .m_axis_tlast ({s_radio1_ctrl_tlast , s_ddc1_ctrl_tlast , s_duc1_ctrl_tlast , s_radio0_ctrl_tlast , s_ddc0_ctrl_tlast , s_duc0_ctrl_tlast , s_ep0_ctrl_tlast , s_core_ctrl_tlast }),
- .m_axis_tready ({s_radio1_ctrl_tready, s_ddc1_ctrl_tready, s_duc1_ctrl_tready, s_radio0_ctrl_tready, s_ddc0_ctrl_tready, s_duc0_ctrl_tready, s_ep0_ctrl_tready, s_core_ctrl_tready}),
+ .s_axis_tdata ({m_replay0_ctrl_tdata , m_radio1_ctrl_tdata , m_ddc1_ctrl_tdata , m_duc1_ctrl_tdata , m_radio0_ctrl_tdata , m_ddc0_ctrl_tdata , m_duc0_ctrl_tdata , m_ep0_ctrl_tdata , m_core_ctrl_tdata }),
+ .s_axis_tvalid ({m_replay0_ctrl_tvalid, m_radio1_ctrl_tvalid, m_ddc1_ctrl_tvalid, m_duc1_ctrl_tvalid, m_radio0_ctrl_tvalid, m_ddc0_ctrl_tvalid, m_duc0_ctrl_tvalid, m_ep0_ctrl_tvalid, m_core_ctrl_tvalid}),
+ .s_axis_tlast ({m_replay0_ctrl_tlast , m_radio1_ctrl_tlast , m_ddc1_ctrl_tlast , m_duc1_ctrl_tlast , m_radio0_ctrl_tlast , m_ddc0_ctrl_tlast , m_duc0_ctrl_tlast , m_ep0_ctrl_tlast , m_core_ctrl_tlast }),
+ .s_axis_tready ({m_replay0_ctrl_tready, m_radio1_ctrl_tready, m_ddc1_ctrl_tready, m_duc1_ctrl_tready, m_radio0_ctrl_tready, m_ddc0_ctrl_tready, m_duc0_ctrl_tready, m_ep0_ctrl_tready, m_core_ctrl_tready}),
+ .m_axis_tdata ({s_replay0_ctrl_tdata , s_radio1_ctrl_tdata , s_ddc1_ctrl_tdata , s_duc1_ctrl_tdata , s_radio0_ctrl_tdata , s_ddc0_ctrl_tdata , s_duc0_ctrl_tdata , s_ep0_ctrl_tdata , s_core_ctrl_tdata }),
+ .m_axis_tvalid ({s_replay0_ctrl_tvalid, s_radio1_ctrl_tvalid, s_ddc1_ctrl_tvalid, s_duc1_ctrl_tvalid, s_radio0_ctrl_tvalid, s_ddc0_ctrl_tvalid, s_duc0_ctrl_tvalid, s_ep0_ctrl_tvalid, s_core_ctrl_tvalid}),
+ .m_axis_tlast ({s_replay0_ctrl_tlast , s_radio1_ctrl_tlast , s_ddc1_ctrl_tlast , s_duc1_ctrl_tlast , s_radio0_ctrl_tlast , s_ddc0_ctrl_tlast , s_duc0_ctrl_tlast , s_ep0_ctrl_tlast , s_core_ctrl_tlast }),
+ .m_axis_tready ({s_replay0_ctrl_tready, s_radio1_ctrl_tready, s_ddc1_ctrl_tready, s_duc1_ctrl_tready, s_radio0_ctrl_tready, s_ddc0_ctrl_tready, s_duc0_ctrl_tready, s_ep0_ctrl_tready, s_core_ctrl_tready}),
.deadlock_detected()
);
// ----------------------------------------------------
// RFNoC Core Kernel
// ----------------------------------------------------
- wire [(512*6)-1:0] rfnoc_core_config, rfnoc_core_status;
+ wire [(512*7)-1:0] rfnoc_core_config, rfnoc_core_status;
rfnoc_core_kernel #(
.PROTOVER (PROTOVER),
.DEVICE_TYPE (16'h1320),
.DEVICE_FAMILY ("7SERIES"),
.SAFE_START_CLKS (0),
- .NUM_BLOCKS (6),
- .NUM_STREAM_ENDPOINTS(2),
+ .NUM_BLOCKS (7),
+ .NUM_STREAM_ENDPOINTS(4),
.NUM_ENDPOINTS_CTRL (1),
.NUM_TRANSPORTS (3),
- .NUM_EDGES (8),
+ .NUM_EDGES (12),
.CHDR_XBAR_PRESENT (1),
.EDGE_TBL_FILE (EDGE_TBL_FILE)
) core_kernel_i (
@@ -778,6 +920,145 @@ module rfnoc_image_core #(
// ----------------------------------------------------
+ // replay0
+ // ----------------------------------------------------
+ wire replay0_mem_clk;
+ wire [CHDR_W-1:0] s_replay0_in_1_tdata , s_replay0_in_0_tdata ;
+ wire s_replay0_in_1_tlast , s_replay0_in_0_tlast ;
+ wire s_replay0_in_1_tvalid, s_replay0_in_0_tvalid;
+ wire s_replay0_in_1_tready, s_replay0_in_0_tready;
+ wire [CHDR_W-1:0] m_replay0_out_1_tdata , m_replay0_out_0_tdata ;
+ wire m_replay0_out_1_tlast , m_replay0_out_0_tlast ;
+ wire m_replay0_out_1_tvalid, m_replay0_out_0_tvalid;
+ wire m_replay0_out_1_tready, m_replay0_out_0_tready;
+
+ // axi_ram
+ wire [ 1-1:0] replay0_axi_rst;
+ wire [ 4-1:0] replay0_m_axi_awid;
+ wire [128-1:0] replay0_m_axi_awaddr;
+ wire [ 32-1:0] replay0_m_axi_awlen;
+ wire [ 12-1:0] replay0_m_axi_awsize;
+ wire [ 8-1:0] replay0_m_axi_awburst;
+ wire [ 4-1:0] replay0_m_axi_awlock;
+ wire [ 16-1:0] replay0_m_axi_awcache;
+ wire [ 12-1:0] replay0_m_axi_awprot;
+ wire [ 16-1:0] replay0_m_axi_awqos;
+ wire [ 16-1:0] replay0_m_axi_awregion;
+ wire [ 4-1:0] replay0_m_axi_awuser;
+ wire [ 4-1:0] replay0_m_axi_awvalid;
+ wire [ 4-1:0] replay0_m_axi_awready;
+ wire [256-1:0] replay0_m_axi_wdata;
+ wire [ 32-1:0] replay0_m_axi_wstrb;
+ wire [ 4-1:0] replay0_m_axi_wlast;
+ wire [ 4-1:0] replay0_m_axi_wuser;
+ wire [ 4-1:0] replay0_m_axi_wvalid;
+ wire [ 4-1:0] replay0_m_axi_wready;
+ wire [ 4-1:0] replay0_m_axi_bid;
+ wire [ 8-1:0] replay0_m_axi_bresp;
+ wire [ 4-1:0] replay0_m_axi_buser;
+ wire [ 4-1:0] replay0_m_axi_bvalid;
+ wire [ 4-1:0] replay0_m_axi_bready;
+ wire [ 4-1:0] replay0_m_axi_arid;
+ wire [128-1:0] replay0_m_axi_araddr;
+ wire [ 32-1:0] replay0_m_axi_arlen;
+ wire [ 12-1:0] replay0_m_axi_arsize;
+ wire [ 8-1:0] replay0_m_axi_arburst;
+ wire [ 4-1:0] replay0_m_axi_arlock;
+ wire [ 16-1:0] replay0_m_axi_arcache;
+ wire [ 12-1:0] replay0_m_axi_arprot;
+ wire [ 16-1:0] replay0_m_axi_arqos;
+ wire [ 16-1:0] replay0_m_axi_arregion;
+ wire [ 4-1:0] replay0_m_axi_aruser;
+ wire [ 4-1:0] replay0_m_axi_arvalid;
+ wire [ 4-1:0] replay0_m_axi_arready;
+ wire [ 4-1:0] replay0_m_axi_rid;
+ wire [256-1:0] replay0_m_axi_rdata;
+ wire [ 8-1:0] replay0_m_axi_rresp;
+ wire [ 4-1:0] replay0_m_axi_rlast;
+ wire [ 4-1:0] replay0_m_axi_ruser;
+ wire [ 4-1:0] replay0_m_axi_rvalid;
+ wire [ 4-1:0] replay0_m_axi_rready;
+
+ rfnoc_block_replay #(
+ .THIS_PORTID(8),
+ .CHDR_W(CHDR_W),
+ .NUM_PORTS(2),
+ .MEM_ADDR_W(31),
+ .MEM_DATA_W(64),
+ .MTU(MTU)
+ ) b_replay0_6 (
+ .rfnoc_chdr_clk (rfnoc_chdr_clk),
+ .rfnoc_ctrl_clk (rfnoc_ctrl_clk),
+ .mem_clk(replay0_mem_clk),
+ .rfnoc_core_config (rfnoc_core_config[512*7-1:512*6]),
+ .rfnoc_core_status (rfnoc_core_status[512*7-1:512*6]),
+
+ .axi_rst(replay0_axi_rst),
+ .m_axi_awid(replay0_m_axi_awid),
+ .m_axi_awaddr(replay0_m_axi_awaddr),
+ .m_axi_awlen(replay0_m_axi_awlen),
+ .m_axi_awsize(replay0_m_axi_awsize),
+ .m_axi_awburst(replay0_m_axi_awburst),
+ .m_axi_awlock(replay0_m_axi_awlock),
+ .m_axi_awcache(replay0_m_axi_awcache),
+ .m_axi_awprot(replay0_m_axi_awprot),
+ .m_axi_awqos(replay0_m_axi_awqos),
+ .m_axi_awregion(replay0_m_axi_awregion),
+ .m_axi_awuser(replay0_m_axi_awuser),
+ .m_axi_awvalid(replay0_m_axi_awvalid),
+ .m_axi_awready(replay0_m_axi_awready),
+ .m_axi_wdata(replay0_m_axi_wdata),
+ .m_axi_wstrb(replay0_m_axi_wstrb),
+ .m_axi_wlast(replay0_m_axi_wlast),
+ .m_axi_wuser(replay0_m_axi_wuser),
+ .m_axi_wvalid(replay0_m_axi_wvalid),
+ .m_axi_wready(replay0_m_axi_wready),
+ .m_axi_bid(replay0_m_axi_bid),
+ .m_axi_bresp(replay0_m_axi_bresp),
+ .m_axi_buser(replay0_m_axi_buser),
+ .m_axi_bvalid(replay0_m_axi_bvalid),
+ .m_axi_bready(replay0_m_axi_bready),
+ .m_axi_arid(replay0_m_axi_arid),
+ .m_axi_araddr(replay0_m_axi_araddr),
+ .m_axi_arlen(replay0_m_axi_arlen),
+ .m_axi_arsize(replay0_m_axi_arsize),
+ .m_axi_arburst(replay0_m_axi_arburst),
+ .m_axi_arlock(replay0_m_axi_arlock),
+ .m_axi_arcache(replay0_m_axi_arcache),
+ .m_axi_arprot(replay0_m_axi_arprot),
+ .m_axi_arqos(replay0_m_axi_arqos),
+ .m_axi_arregion(replay0_m_axi_arregion),
+ .m_axi_aruser(replay0_m_axi_aruser),
+ .m_axi_arvalid(replay0_m_axi_arvalid),
+ .m_axi_arready(replay0_m_axi_arready),
+ .m_axi_rid(replay0_m_axi_rid),
+ .m_axi_rdata(replay0_m_axi_rdata),
+ .m_axi_rresp(replay0_m_axi_rresp),
+ .m_axi_rlast(replay0_m_axi_rlast),
+ .m_axi_ruser(replay0_m_axi_ruser),
+ .m_axi_rvalid(replay0_m_axi_rvalid),
+ .m_axi_rready(replay0_m_axi_rready),
+
+ .s_rfnoc_chdr_tdata ({s_replay0_in_1_tdata , s_replay0_in_0_tdata }),
+ .s_rfnoc_chdr_tlast ({s_replay0_in_1_tlast , s_replay0_in_0_tlast }),
+ .s_rfnoc_chdr_tvalid({s_replay0_in_1_tvalid, s_replay0_in_0_tvalid}),
+ .s_rfnoc_chdr_tready({s_replay0_in_1_tready, s_replay0_in_0_tready}),
+ .m_rfnoc_chdr_tdata ({m_replay0_out_1_tdata , m_replay0_out_0_tdata }),
+ .m_rfnoc_chdr_tlast ({m_replay0_out_1_tlast , m_replay0_out_0_tlast }),
+ .m_rfnoc_chdr_tvalid({m_replay0_out_1_tvalid, m_replay0_out_0_tvalid}),
+ .m_rfnoc_chdr_tready({m_replay0_out_1_tready, m_replay0_out_0_tready}),
+ .s_rfnoc_ctrl_tdata (s_replay0_ctrl_tdata ),
+ .s_rfnoc_ctrl_tlast (s_replay0_ctrl_tlast ),
+ .s_rfnoc_ctrl_tvalid(s_replay0_ctrl_tvalid),
+ .s_rfnoc_ctrl_tready(s_replay0_ctrl_tready),
+ .m_rfnoc_ctrl_tdata (m_replay0_ctrl_tdata ),
+ .m_rfnoc_ctrl_tlast (m_replay0_ctrl_tlast ),
+ .m_rfnoc_ctrl_tvalid(m_replay0_ctrl_tvalid),
+ .m_rfnoc_ctrl_tready(m_replay0_ctrl_tready)
+ );
+
+
+ // ----------------------------------------------------
// Static Router
// ----------------------------------------------------
assign s_duc0_in_0_tdata = m_ep0_out0_tdata ;
@@ -820,6 +1101,26 @@ module rfnoc_image_core #(
assign s_ep1_in0_tvalid = m_ddc1_out_0_tvalid;
assign m_ddc1_out_0_tready = s_ep1_in0_tready;
+ assign s_replay0_in_0_tdata = m_ep2_out0_tdata ;
+ assign s_replay0_in_0_tlast = m_ep2_out0_tlast ;
+ assign s_replay0_in_0_tvalid = m_ep2_out0_tvalid;
+ assign m_ep2_out0_tready = s_replay0_in_0_tready;
+
+ assign s_ep2_in0_tdata = m_replay0_out_0_tdata ;
+ assign s_ep2_in0_tlast = m_replay0_out_0_tlast ;
+ assign s_ep2_in0_tvalid = m_replay0_out_0_tvalid;
+ assign m_replay0_out_0_tready = s_ep2_in0_tready;
+
+ assign s_replay0_in_1_tdata = m_ep3_out0_tdata ;
+ assign s_replay0_in_1_tlast = m_ep3_out0_tlast ;
+ assign s_replay0_in_1_tvalid = m_ep3_out0_tvalid;
+ assign m_ep3_out0_tready = s_replay0_in_1_tready;
+
+ assign s_ep3_in0_tdata = m_replay0_out_1_tdata ;
+ assign s_ep3_in0_tlast = m_replay0_out_1_tlast ;
+ assign s_ep3_in0_tvalid = m_replay0_out_1_tvalid;
+ assign m_replay0_out_1_tready = s_ep3_in0_tready;
+
// ----------------------------------------------------
// Unused Ports
@@ -834,6 +1135,7 @@ module rfnoc_image_core #(
assign radio1_radio_clk = radio_clk;
assign ddc1_ce_clk = radio_clk;
assign duc1_ce_clk = radio_clk;
+ assign replay0_mem_clk = dram_clk;
// ----------------------------------------------------
@@ -862,6 +1164,52 @@ module rfnoc_image_core #(
assign radio1_m_ctrlport_resp_status = m_ctrlport_radio1_resp_status;
assign radio1_m_ctrlport_resp_data = m_ctrlport_radio1_resp_data;
+ assign replay0_axi_rst = axi_rst;
+ assign m_axi_awid = replay0_m_axi_awid;
+ assign m_axi_awaddr = replay0_m_axi_awaddr;
+ assign m_axi_awlen = replay0_m_axi_awlen;
+ assign m_axi_awsize = replay0_m_axi_awsize;
+ assign m_axi_awburst = replay0_m_axi_awburst;
+ assign m_axi_awlock = replay0_m_axi_awlock;
+ assign m_axi_awcache = replay0_m_axi_awcache;
+ assign m_axi_awprot = replay0_m_axi_awprot;
+ assign m_axi_awqos = replay0_m_axi_awqos;
+ assign m_axi_awregion = replay0_m_axi_awregion;
+ assign m_axi_awuser = replay0_m_axi_awuser;
+ assign m_axi_awvalid = replay0_m_axi_awvalid;
+ assign replay0_m_axi_awready = m_axi_awready;
+ assign m_axi_wdata = replay0_m_axi_wdata;
+ assign m_axi_wstrb = replay0_m_axi_wstrb;
+ assign m_axi_wlast = replay0_m_axi_wlast;
+ assign m_axi_wuser = replay0_m_axi_wuser;
+ assign m_axi_wvalid = replay0_m_axi_wvalid;
+ assign replay0_m_axi_wready = m_axi_wready;
+ assign replay0_m_axi_bid = m_axi_bid;
+ assign replay0_m_axi_bresp = m_axi_bresp;
+ assign replay0_m_axi_buser = m_axi_buser;
+ assign replay0_m_axi_bvalid = m_axi_bvalid;
+ assign m_axi_bready = replay0_m_axi_bready;
+ assign m_axi_arid = replay0_m_axi_arid;
+ assign m_axi_araddr = replay0_m_axi_araddr;
+ assign m_axi_arlen = replay0_m_axi_arlen;
+ assign m_axi_arsize = replay0_m_axi_arsize;
+ assign m_axi_arburst = replay0_m_axi_arburst;
+ assign m_axi_arlock = replay0_m_axi_arlock;
+ assign m_axi_arcache = replay0_m_axi_arcache;
+ assign m_axi_arprot = replay0_m_axi_arprot;
+ assign m_axi_arqos = replay0_m_axi_arqos;
+ assign m_axi_arregion = replay0_m_axi_arregion;
+ assign m_axi_aruser = replay0_m_axi_aruser;
+ assign m_axi_arvalid = replay0_m_axi_arvalid;
+ assign replay0_m_axi_arready = m_axi_arready;
+ assign replay0_m_axi_rid = m_axi_rid;
+ assign replay0_m_axi_rdata = m_axi_rdata;
+ assign replay0_m_axi_rresp = m_axi_rresp;
+ assign replay0_m_axi_rlast = m_axi_rlast;
+ assign replay0_m_axi_ruser = m_axi_ruser;
+ assign replay0_m_axi_rvalid = m_axi_rvalid;
+ assign m_axi_rready = replay0_m_axi_rready;
+
assign radio0_radio_rx_data = radio_rx_data_radio0;
assign radio0_radio_rx_stb = radio_rx_stb_radio0;
assign radio_rx_running_radio0 = radio0_radio_rx_running;
diff --git a/fpga/usrp3/top/n3xx/n320_rfnoc_image_core.yml b/fpga/usrp3/top/n3xx/n320_rfnoc_image_core.yml
index 5f1850d52..ecddcc3d0 100644
--- a/fpga/usrp3/top/n3xx/n320_rfnoc_image_core.yml
+++ b/fpga/usrp3/top/n3xx/n320_rfnoc_image_core.yml
@@ -20,6 +20,14 @@ stream_endpoints:
ctrl: False # Endpoint passes control traffic
data: True # Endpoint passes data traffic
buff_size: 65536 # Ingress buffer size for data
+ ep2: # Stream endpoint name
+ ctrl: False # Endpoint passes control traffic
+ data: True # Endpoint passes data traffic
+ buff_size: 4096 # Ingress buffer size for data
+ ep3: # Stream endpoint name
+ ctrl: False # Endpoint passes control traffic
+ data: True # Endpoint passes data traffic
+ buff_size: 4096 # Ingress buffer size for data
# A list of all NoC blocks in design
# ----------------------------------
@@ -44,16 +52,11 @@ noc_blocks:
NUM_PORTS: 1
radio1:
block_desc: 'radio_1x64.yml'
- #fifo0:
- #block_desc: 'axi_ram_fifo_4x64.yml'
- #parameters:
- ## These parameters match the memory interface on the N3XX
- #NUM_PORTS: 4
- #MEM_DATA_W: 64
- #MEM_ADDR_W: 31
- #FIFO_ADDR_BASE: "{30'h06000000, 30'h04000000, 30'h02000000, 30'h00000000}"
- #FIFO_ADDR_MASK: "{30'h01FFFFFF, 30'h01FFFFFF, 30'h01FFFFFF, 30'h01FFFFFF}"
- #MEM_CLK_RATE: "303819444" # 166.666666 MHz * 21.875 / 4 / 3 = 303.819444 MHz
+ replay0:
+ block_desc: 'replay.yml'
+ parameters:
+ NUM_PORTS: 2
+ MEM_ADDR_W: 31
# A list of all static connections in design
# ------------------------------------------
@@ -71,8 +74,13 @@ connections:
- { srcblk: duc1, srcport: out_0, dstblk: radio1, dstport: in_0 }
- { srcblk: radio1, srcport: out_0, dstblk: ddc1, dstport: in_0 }
- { srcblk: ddc1, srcport: out_0, dstblk: ep1, dstport: in0 }
+ - { srcblk: ep2, srcport: out0, dstblk: replay0, dstport: in_0 }
+ - { srcblk: replay0, srcport: out_0, dstblk: ep2, dstport: in0 }
+ - { srcblk: ep3, srcport: out0, dstblk: replay0, dstport: in_1 }
+ - { srcblk: replay0, srcport: out_1, dstblk: ep3, dstport: in0 }
- { srcblk: radio0, srcport: ctrl_port, dstblk: _device_, dstport: ctrlport_radio0 }
- { srcblk: radio1, srcport: ctrl_port, dstblk: _device_, dstport: ctrlport_radio1 }
+ - { srcblk: replay0, srcport: axi_ram, dstblk: _device_, dstport: dram }
- { srcblk: _device_, srcport: radio_ch0, dstblk: radio0, dstport: radio_iface }
- { srcblk: _device_, srcport: radio_ch1, dstblk: radio1, dstport: radio_iface }
- { srcblk: _device_, srcport: time_keeper, dstblk: radio0, dstport: time_keeper }
@@ -92,4 +100,4 @@ clk_domains:
- { srcblk: _device_, srcport: radio, dstblk: radio1, dstport: radio }
- { srcblk: _device_, srcport: radio, dstblk: ddc1, dstport: ce }
- { srcblk: _device_, srcport: radio, dstblk: duc1, dstport: ce }
-# - { srcblk: _device_, srcport: dram, dstblk: fifo0, dstport: mem }
+ - { srcblk: _device_, srcport: dram, dstblk: replay0, dstport: mem }
diff --git a/fpga/usrp3/top/n3xx/n320_static_router.hex b/fpga/usrp3/top/n3xx/n320_static_router.hex
index eeaf5024d..5fa678758 100644
--- a/fpga/usrp3/top/n3xx/n320_static_router.hex
+++ b/fpga/usrp3/top/n3xx/n320_static_router.hex
@@ -1,9 +1,13 @@
-00000008
-004000c0
-00c00140
-01400100
-01000040
-00800180
-01800200
-020001c0
-01c00080
+0000000C
+00400140
+014001c0
+01c00180
+01800040
+00800200
+02000280
+02800240
+02400080
+00c002c0
+02c000c0
+010002c1
+02c10100