fpga: x400: Fix NODE_INST for transport adapters

Set the NODE_INST parameter for each transport adapter on X4xx so that
each adapter has a unique node instance number.


Original-commit: 8e87a4d24aeeb77a9528ff67a36d8a0ae12e7137
This commit is contained in:
Wade Fife
2022-08-29 17:01:45 -05:00
committed by skooNI
parent 1756797ec2
commit 5af17e0984
3 changed files with 25 additions and 17 deletions
+9 -6
View File
@@ -17,6 +17,7 @@
// CHDR_W : CHDR bus width
// BYTE_MTU : Transport MTU in bytes
// PORTNUM : Port number to distinguish multiple QSFP ports
// NODE_INST : RFNoC transport adapter node instance for the first port
// RFNOC_PROTOVER : RFNoC protocol version for IPv4 interface
//
@@ -31,7 +32,8 @@ module x4xx_qsfp_wrapper_temp #(
parameter CPU_W = 64,
parameter CHDR_W = 64,
parameter BYTE_MTU = $clog2(8*1024),
parameter [7:0] PORTNUM = 8'd0
parameter [7:0] PORTNUM = 8'd0,
parameter NODE_INST = 0
) (
// Resets
input logic areset,
@@ -296,11 +298,12 @@ module x4xx_qsfp_wrapper_temp #(
end
x4xx_qsfp_wrapper #(
.PROTOCOL ({ PROTOCOL3, PROTOCOL2, PROTOCOL1, PROTOCOL0 }),
.CPU_W (CPU_W),
.CHDR_W (CHDR_W),
.BYTE_MTU (BYTE_MTU),
.PORTNUM (PORTNUM)
.PROTOCOL ({ PROTOCOL3, PROTOCOL2, PROTOCOL1, PROTOCOL0 }),
.CPU_W (CPU_W),
.CHDR_W (CHDR_W),
.BYTE_MTU (BYTE_MTU),
.PORTNUM (PORTNUM),
.NODE_INST (NODE_INST)
) x4xx_qsfp_wrapper_i (
.areset (areset),
.refclk_p (refclk_p),