|
|
@@ -1,9 +1,10 @@
|
|
|
+
|
|
|
//-----------------------------------------------------------------------------
|
|
|
//
|
|
|
-// (c) Copyright 2010-2011 Xilinx, Inc. All rights reserved.
|
|
|
+// (c) Copyright 2020-2024 Advanced Micro Devices, Inc. All rights reserved.
|
|
|
//
|
|
|
// This file contains confidential and proprietary information
|
|
|
-// of Xilinx, Inc. and is protected under U.S. and
|
|
|
+// of AMD and is protected under U.S. and
|
|
|
// international copyright and other intellectual property
|
|
|
// laws.
|
|
|
//
|
|
|
@@ -11,13 +12,13 @@
|
|
|
// This disclaimer is not a license and does not grant any
|
|
|
// rights to the materials distributed herewith. Except as
|
|
|
// otherwise provided in a valid license issued to you by
|
|
|
-// Xilinx, and to the maximum extent permitted by applicable
|
|
|
+// AMD, and to the maximum extent permitted by applicable
|
|
|
// law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND
|
|
|
-// WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES
|
|
|
+// WITH ALL FAULTS, AND AMD HEREBY DISCLAIMS ALL WARRANTIES
|
|
|
// AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING
|
|
|
// BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON-
|
|
|
// INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and
|
|
|
-// (2) Xilinx shall not be liable (whether in contract or tort,
|
|
|
+// (2) AMD shall not be liable (whether in contract or tort,
|
|
|
// including negligence, or under any other theory of
|
|
|
// liability) for any loss or damage of any kind or nature
|
|
|
// related to, arising under or in connection with these
|
|
|
@@ -26,11 +27,11 @@
|
|
|
// (including loss of data, profits, goodwill, or any type of
|
|
|
// loss or damage suffered as a result of any action brought
|
|
|
// by a third party) even if such damage or loss was
|
|
|
-// reasonably foreseeable or Xilinx had been advised of the
|
|
|
+// reasonably foreseeable or AMD had been advised of the
|
|
|
// possibility of the same.
|
|
|
//
|
|
|
// CRITICAL APPLICATIONS
|
|
|
-// Xilinx products are not designed or intended to be fail-
|
|
|
+// AMD products are not designed or intended to be fail-
|
|
|
// safe, or for use in any application requiring fail-safe
|
|
|
// performance, such as life-support or safety devices or
|
|
|
// systems, Class III medical devices, nuclear facilities,
|
|
|
@@ -39,7 +40,7 @@
|
|
|
// injury, or severe property or environmental damage
|
|
|
// (individually and collectively, "Critical
|
|
|
// Applications"). Customer assumes the sole risk and
|
|
|
-// liability of any use of Xilinx products in Critical
|
|
|
+// liability of any use of AMD products in Critical
|
|
|
// Applications, subject only to applicable laws and
|
|
|
// regulations governing limitations on product liability.
|
|
|
//
|
|
|
@@ -77,15 +78,6 @@ wire ep_sys_clk_n;
|
|
|
wire ep_sys_clk;
|
|
|
wire rp_sys_clk;
|
|
|
|
|
|
-`ifdef ENABLE_GT
|
|
|
-parameter PIPE_SIM = "FALSE";
|
|
|
-defparam board.EP.pcie1234_support_i.pcie1234_i.inst.inst.PIPE_SIM_MODE = "FALSE";
|
|
|
-defparam board.RP.rport.PIPE_SIM_MODE = "FALSE";
|
|
|
-`else
|
|
|
-parameter PIPE_SIM = "TRUE";
|
|
|
-defparam board.EP.pcie1234_support.pcie1234_i.inst.inst.PIPE_SIM_MODE = "TRUE";
|
|
|
-defparam board.RP.rport.PIPE_SIM_MODE = "TRUE";
|
|
|
-`endif
|
|
|
|
|
|
localparam EXT_PIPE_SIM = "FALSE";
|
|
|
|
|
|
@@ -94,18 +86,15 @@ localparam EXT_PIPE_SIM = "FALSE";
|
|
|
// PCI-Express Serial Interconnect
|
|
|
//
|
|
|
|
|
|
-wire [0:0] ep_pci_exp_txn;
|
|
|
-wire [0:0] ep_pci_exp_txp;
|
|
|
-wire [0:0] rp_pci_exp_txn;
|
|
|
-wire [0:0] rp_pci_exp_txp;
|
|
|
+wire [1:0] ep_pci_exp_txn;
|
|
|
+wire [1:0] ep_pci_exp_txp;
|
|
|
+wire [1:0] rp_pci_exp_txn;
|
|
|
+wire [1:0] rp_pci_exp_txp;
|
|
|
//
|
|
|
// PCI-Express Endpoint Instance
|
|
|
//
|
|
|
|
|
|
-xilinx_pcie_2_1_ep_7x
|
|
|
-
|
|
|
-
|
|
|
-EP (
|
|
|
+PciVnaEmulTop PciVnaEmulTop (
|
|
|
|
|
|
|
|
|
// SYS Inteface
|
|
|
@@ -122,6 +111,23 @@ EP (
|
|
|
.pci_exp_rxp(rp_pci_exp_txp)
|
|
|
);
|
|
|
|
|
|
+//EP (
|
|
|
+
|
|
|
+
|
|
|
+// // SYS Inteface
|
|
|
+// .sys_clk_n(ep_sys_clk_n),
|
|
|
+// .sys_clk_p(ep_sys_clk_p),
|
|
|
+// .sys_rst_n(sys_rst_n),
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+// // PCI-Express Interface
|
|
|
+// .pci_exp_txn(ep_pci_exp_txn),
|
|
|
+// .pci_exp_txp(ep_pci_exp_txp),
|
|
|
+// .pci_exp_rxn(rp_pci_exp_txn),
|
|
|
+// .pci_exp_rxp(rp_pci_exp_txp)
|
|
|
+//);
|
|
|
+
|
|
|
//
|
|
|
// PCI-Express Model Root Port Instance
|
|
|
//
|
|
|
@@ -132,7 +138,7 @@ xilinx_pcie_2_1_rport_7x # (
|
|
|
.PL_FAST_TRAIN("TRUE"),
|
|
|
.ALLOW_X8_GEN2("FALSE"),
|
|
|
.C_DATA_WIDTH(64),
|
|
|
- .LINK_CAP_MAX_LINK_WIDTH(6'h1),
|
|
|
+ .LINK_CAP_MAX_LINK_WIDTH(6'h2),
|
|
|
.DEVICE_ID(16'h7100),
|
|
|
.LINK_CAP_MAX_LINK_SPEED(4'h1),
|
|
|
.LINK_CTRL2_TARGET_LINK_SPEED(4'h1),
|
|
|
@@ -143,7 +149,7 @@ xilinx_pcie_2_1_rport_7x # (
|
|
|
.VC0_CPL_INFINITE("TRUE"),
|
|
|
.VC0_TOTAL_CREDITS_PD(437),
|
|
|
.VC0_TOTAL_CREDITS_CD(461),
|
|
|
- .USER_CLK_FREQ(2),
|
|
|
+ .USER_CLK_FREQ(1),
|
|
|
.USER_CLK2_DIV2("FALSE")
|
|
|
)
|
|
|
RP (
|
|
|
@@ -188,7 +194,6 @@ CLK_GEN_EP (
|
|
|
|
|
|
|
|
|
|
|
|
-`include "pipe_interconnect.vh"
|
|
|
|
|
|
|
|
|
initial begin
|