-
Notifications
You must be signed in to change notification settings - Fork 518
/
Copy pathfpga.sv
90 lines (82 loc) · 3.53 KB
/
fpga.sv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// ============================================================================
// Amazon FPGA Hardware Development Kit
//
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Amazon Software License (the "License"). You may not use
// this file except in compliance with the License. A copy of the License is
// located at
//
// http://aws.amazon.com/asl/
//
// or in the "license" file accompanying this file. This file is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or
// implied. See the License for the specific language governing permissions and
// limitations under the License.
// ============================================================================
module fpga(
//
// Auto-generated file that defines all of the external ports of FPGA
//
`include "fpga_ports.vh"
);
//
// Auto-generated file that defines all of the internal signals that
// connects directly between SH and CL
//
`include "fpga_signals.vh"
//
// SHELL BFM instantiation
//
sh_bfm sh(.*);
//
// Developer's CL Design instantiation
// User shall change the CL type by using the CL_NAME define during
// compile time
//
`ifndef CL_NAME
`define CL_NAME cl_dram_hbm_dma
`endif//CL_NAME
`CL_NAME CL(.*);
`ifdef C2C_LOOPBACK
assign PCIE_RP_REF_CLK_P = clk_hbm_ref;
assign PCIE_RP_REF_CLK_N = ~clk_hbm_ref;
assign PCIE_EP_REF_CLK_P = clk_hbm_ref;
assign PCIE_EP_REF_CLK_N = ~clk_hbm_ref;
assign PCIE_EP_PERSTN = PCIE_RP_PERSTN;
assign CL.rp_common_commands_in = CL.ep_common_commands_out;
assign CL.rp_pipe_rx_0_sigs = CL.ep_pipe_tx_0_sigs;
assign CL.rp_pipe_rx_1_sigs = CL.ep_pipe_tx_1_sigs;
assign CL.rp_pipe_rx_2_sigs = CL.ep_pipe_tx_2_sigs;
assign CL.rp_pipe_rx_3_sigs = CL.ep_pipe_tx_3_sigs;
assign CL.rp_pipe_rx_4_sigs = CL.ep_pipe_tx_4_sigs;
assign CL.rp_pipe_rx_5_sigs = CL.ep_pipe_tx_5_sigs;
assign CL.rp_pipe_rx_6_sigs = CL.ep_pipe_tx_6_sigs;
assign CL.rp_pipe_rx_7_sigs = CL.ep_pipe_tx_7_sigs;
assign CL.rp_pipe_rx_8_sigs = CL.ep_pipe_tx_8_sigs;
assign CL.rp_pipe_rx_9_sigs = CL.ep_pipe_tx_9_sigs;
assign CL.rp_pipe_rx_10_sigs = CL.ep_pipe_tx_10_sigs;
assign CL.rp_pipe_rx_11_sigs = CL.ep_pipe_tx_11_sigs;
assign CL.rp_pipe_rx_12_sigs = CL.ep_pipe_tx_12_sigs;
assign CL.rp_pipe_rx_13_sigs = CL.ep_pipe_tx_13_sigs;
assign CL.rp_pipe_rx_14_sigs = CL.ep_pipe_tx_14_sigs;
assign CL.rp_pipe_rx_15_sigs = CL.ep_pipe_tx_15_sigs;
assign CL.ep_common_commands_in = CL.rp_common_commands_out;
assign CL.ep_pipe_rx_0_sigs = CL.rp_pipe_tx_0_sigs;
assign CL.ep_pipe_rx_1_sigs = CL.rp_pipe_tx_1_sigs;
assign CL.ep_pipe_rx_2_sigs = CL.rp_pipe_tx_2_sigs;
assign CL.ep_pipe_rx_3_sigs = CL.rp_pipe_tx_3_sigs;
assign CL.ep_pipe_rx_4_sigs = CL.rp_pipe_tx_4_sigs;
assign CL.ep_pipe_rx_5_sigs = CL.rp_pipe_tx_5_sigs;
assign CL.ep_pipe_rx_6_sigs = CL.rp_pipe_tx_6_sigs;
assign CL.ep_pipe_rx_7_sigs = CL.rp_pipe_tx_7_sigs;
assign CL.ep_pipe_rx_8_sigs = CL.rp_pipe_tx_8_sigs;
assign CL.ep_pipe_rx_9_sigs = CL.rp_pipe_tx_9_sigs;
assign CL.ep_pipe_rx_10_sigs = CL.rp_pipe_tx_10_sigs;
assign CL.ep_pipe_rx_11_sigs = CL.rp_pipe_tx_11_sigs;
assign CL.ep_pipe_rx_12_sigs = CL.rp_pipe_tx_12_sigs;
assign CL.ep_pipe_rx_13_sigs = CL.rp_pipe_tx_13_sigs;
assign CL.ep_pipe_rx_14_sigs = CL.rp_pipe_tx_14_sigs;
assign CL.ep_pipe_rx_15_sigs = CL.rp_pipe_tx_15_sigs;
`endif // `ifdef C2C_LOOPBACK
endmodule : fpga