fpga: x400: Add ifdef to remove QSFP wrappers when unused
Original-commit: 4c085c2b5849913231a4d1403a4dff1d570b8d5d
This commit is contained in:
@@ -830,6 +830,7 @@ module x4xx (
|
|||||||
.sysref_out_pclk (),
|
.sysref_out_pclk (),
|
||||||
.sysref_out_rclk (),
|
.sysref_out_rclk (),
|
||||||
.sysref_pl_in (sysref_pl),
|
.sysref_pl_in (sysref_pl),
|
||||||
|
`ifdef QSFP0_0
|
||||||
.s_axi_hp0_aruser (axi_hp0_aruser),
|
.s_axi_hp0_aruser (axi_hp0_aruser),
|
||||||
.s_axi_hp0_awuser (axi_hp0_awuser),
|
.s_axi_hp0_awuser (axi_hp0_awuser),
|
||||||
.s_axi_hp0_awid (axi_hp0_awid),
|
.s_axi_hp0_awid (axi_hp0_awid),
|
||||||
@@ -869,11 +870,20 @@ module x4xx (
|
|||||||
.s_axi_hp0_rready (axi_hp0_rready),
|
.s_axi_hp0_rready (axi_hp0_rready),
|
||||||
.s_axi_hp0_awqos (axi_hp0_awqos),
|
.s_axi_hp0_awqos (axi_hp0_awqos),
|
||||||
.s_axi_hp0_arqos (axi_hp0_arqos),
|
.s_axi_hp0_arqos (axi_hp0_arqos),
|
||||||
|
`else
|
||||||
|
// Disconnect the DMA interface if the associated QSFP port is not used.
|
||||||
|
.s_axi_hp0_awvalid (1'b0),
|
||||||
|
.s_axi_hp0_wvalid (1'b0),
|
||||||
|
.s_axi_hp0_bready (1'b1),
|
||||||
|
.s_axi_hp0_arvalid (1'b0),
|
||||||
|
.s_axi_hp0_rready (1'b1),
|
||||||
|
`endif
|
||||||
.s_axis_eth_dma_tdata (e2h_dma_tdata),
|
.s_axis_eth_dma_tdata (e2h_dma_tdata),
|
||||||
.s_axis_eth_dma_tkeep (e2h_dma_tkeep),
|
.s_axis_eth_dma_tkeep (e2h_dma_tkeep),
|
||||||
.s_axis_eth_dma_tlast (e2h_dma_tlast),
|
.s_axis_eth_dma_tlast (e2h_dma_tlast),
|
||||||
.s_axis_eth_dma_tready (e2h_dma_tready),
|
.s_axis_eth_dma_tready (e2h_dma_tready),
|
||||||
.s_axis_eth_dma_tvalid (e2h_dma_tvalid),
|
.s_axis_eth_dma_tvalid (e2h_dma_tvalid),
|
||||||
|
`ifdef QSFP1_0
|
||||||
.s_axi_hp1_aruser (axi_hp1_aruser),
|
.s_axi_hp1_aruser (axi_hp1_aruser),
|
||||||
.s_axi_hp1_awuser (axi_hp1_awuser),
|
.s_axi_hp1_awuser (axi_hp1_awuser),
|
||||||
.s_axi_hp1_awid (axi_hp1_awid),
|
.s_axi_hp1_awid (axi_hp1_awid),
|
||||||
@@ -913,6 +923,14 @@ module x4xx (
|
|||||||
.s_axi_hp1_rready (axi_hp1_rready),
|
.s_axi_hp1_rready (axi_hp1_rready),
|
||||||
.s_axi_hp1_awqos (axi_hp1_awqos),
|
.s_axi_hp1_awqos (axi_hp1_awqos),
|
||||||
.s_axi_hp1_arqos (axi_hp1_arqos),
|
.s_axi_hp1_arqos (axi_hp1_arqos),
|
||||||
|
`else
|
||||||
|
// Disconnect the DMA interface if the associated QSFP port is not used.
|
||||||
|
.s_axi_hp1_awvalid (1'b0),
|
||||||
|
.s_axi_hp1_wvalid (1'b0),
|
||||||
|
.s_axi_hp1_bready (1'b1),
|
||||||
|
.s_axi_hp1_arvalid (1'b0),
|
||||||
|
.s_axi_hp1_rready (1'b1),
|
||||||
|
`endif
|
||||||
.s_axi_hpc0_aruser (),
|
.s_axi_hpc0_aruser (),
|
||||||
.s_axi_hpc0_awuser (),
|
.s_axi_hpc0_awuser (),
|
||||||
.s_axi_hpc0_awid (),
|
.s_axi_hpc0_awid (),
|
||||||
@@ -1639,6 +1657,7 @@ module x4xx (
|
|||||||
assign qsfp1_rx_n[3] = 1'b1;
|
assign qsfp1_rx_n[3] = 1'b1;
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
|
`ifdef QSFP0_0
|
||||||
x4xx_qsfp_wrapper_temp #(
|
x4xx_qsfp_wrapper_temp #(
|
||||||
`ifdef QSFP0_0
|
`ifdef QSFP0_0
|
||||||
.PROTOCOL0 (`QSFP0_0),
|
.PROTOCOL0 (`QSFP0_0),
|
||||||
@@ -1753,8 +1772,10 @@ module x4xx (
|
|||||||
.link_up (eth0_link_up),
|
.link_up (eth0_link_up),
|
||||||
.activity (eth0_activity)
|
.activity (eth0_activity)
|
||||||
);
|
);
|
||||||
|
`endif
|
||||||
|
|
||||||
|
|
||||||
|
`ifdef QSFP1_0
|
||||||
x4xx_qsfp_wrapper_temp #(
|
x4xx_qsfp_wrapper_temp #(
|
||||||
`ifdef QSFP1_0
|
`ifdef QSFP1_0
|
||||||
.PROTOCOL0 (`QSFP1_0),
|
.PROTOCOL0 (`QSFP1_0),
|
||||||
@@ -1869,6 +1890,7 @@ module x4xx (
|
|||||||
.link_up (eth1_link_up),
|
.link_up (eth1_link_up),
|
||||||
.activity (eth1_activity)
|
.activity (eth1_activity)
|
||||||
);
|
);
|
||||||
|
`endif
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user