-
Notifications
You must be signed in to change notification settings - Fork 519
/
CL_TEMPLATE.sv
308 lines (259 loc) · 9.25 KB
/
CL_TEMPLATE.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
// ============================================================================
// 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.
// ============================================================================
//====================================================================================
// Top level module file for CL_TEMPLATE
//====================================================================================
module CL_TEMPLATE
#(
parameter EN_DDR = 0,
parameter EN_HBM = 0
)
(
`include "cl_ports.vh"
);
`include "cl_id_defines.vh" // CL ID defines required for all examples
`include "CL_TEMPLATE_defines.vh"
//=============================================================================
// GLOBALS
//=============================================================================
always_comb begin
cl_sh_flr_done = 'b1;
cl_sh_status0 = 'b0;
cl_sh_status1 = 'b0;
cl_sh_status2 = 'b0;
cl_sh_id0 = `CL_SH_ID0;
cl_sh_id1 = `CL_SH_ID1;
cl_sh_status_vled = 'b0;
cl_sh_dma_wr_full = 'b0;
cl_sh_dma_rd_full = 'b0;
end
//=============================================================================
// PCIM
//=============================================================================
// Cause Protocol Violations
always_comb begin
cl_sh_pcim_awaddr = 'b0;
cl_sh_pcim_awsize = 'b0;
cl_sh_pcim_awburst = 'b0;
cl_sh_pcim_awvalid = 'b0;
cl_sh_pcim_wdata = 'b0;
cl_sh_pcim_wstrb = 'b0;
cl_sh_pcim_wlast = 'b0;
cl_sh_pcim_wvalid = 'b0;
cl_sh_pcim_araddr = 'b0;
cl_sh_pcim_arsize = 'b0;
cl_sh_pcim_arburst = 'b0;
cl_sh_pcim_arvalid = 'b0;
end
// Remaining CL Output Ports
always_comb begin
cl_sh_pcim_awid = 'b0;
cl_sh_pcim_awlen = 'b0;
cl_sh_pcim_awcache = 'b0;
cl_sh_pcim_awlock = 'b0;
cl_sh_pcim_awprot = 'b0;
cl_sh_pcim_awqos = 'b0;
cl_sh_pcim_awuser = 'b0;
cl_sh_pcim_wid = 'b0;
cl_sh_pcim_wuser = 'b0;
cl_sh_pcim_arid = 'b0;
cl_sh_pcim_arlen = 'b0;
cl_sh_pcim_arcache = 'b0;
cl_sh_pcim_arlock = 'b0;
cl_sh_pcim_arprot = 'b0;
cl_sh_pcim_arqos = 'b0;
cl_sh_pcim_aruser = 'b0;
cl_sh_pcim_rready = 'b0;
end
//=============================================================================
// PCIS
//=============================================================================
// Cause Protocol Violations
always_comb begin
cl_sh_dma_pcis_bresp = 'b0;
cl_sh_dma_pcis_rresp = 'b0;
cl_sh_dma_pcis_rvalid = 'b0;
end
// Remaining CL Output Ports
always_comb begin
cl_sh_dma_pcis_awready = 'b0;
cl_sh_dma_pcis_wready = 'b0;
cl_sh_dma_pcis_bid = 'b0;
cl_sh_dma_pcis_bvalid = 'b0;
cl_sh_dma_pcis_arready = 'b0;
cl_sh_dma_pcis_rid = 'b0;
cl_sh_dma_pcis_rdata = 'b0;
cl_sh_dma_pcis_rlast = 'b0;
cl_sh_dma_pcis_ruser = 'b0;
end
//=============================================================================
// OCL
//=============================================================================
// Cause Protocol Violations
always_comb begin
cl_ocl_bresp = 'b0;
cl_ocl_rresp = 'b0;
cl_ocl_rvalid = 'b0;
end
// Remaining CL Output Ports
always_comb begin
cl_ocl_awready = 'b0;
cl_ocl_wready = 'b0;
cl_ocl_bvalid = 'b0;
cl_ocl_arready = 'b0;
cl_ocl_rdata = 'b0;
end
//=============================================================================
// SDA
//=============================================================================
// Cause Protocol Violations
always_comb begin
cl_sda_bresp = 'b0;
cl_sda_rresp = 'b0;
cl_sda_rvalid = 'b0;
end
// Remaining CL Output Ports
always_comb begin
cl_sda_awready = 'b0;
cl_sda_wready = 'b0;
cl_sda_bvalid = 'b0;
cl_sda_arready = 'b0;
cl_sda_rdata = 'b0;
end
//=============================================================================
// SH_DDR
//=============================================================================
sh_ddr
#(
.DDR_PRESENT (EN_DDR)
)
SH_DDR
(
.clk (clk_main_a0 ),
.rst_n ( ),
.stat_clk (clk_main_a0 ),
.stat_rst_n ( ),
.CLK_DIMM_DP (CLK_DIMM_DP ),
.CLK_DIMM_DN (CLK_DIMM_DN ),
.M_ACT_N (M_ACT_N ),
.M_MA (M_MA ),
.M_BA (M_BA ),
.M_BG (M_BG ),
.M_CKE (M_CKE ),
.M_ODT (M_ODT ),
.M_CS_N (M_CS_N ),
.M_CLK_DN (M_CLK_DN ),
.M_CLK_DP (M_CLK_DP ),
.M_PAR (M_PAR ),
.M_DQ (M_DQ ),
.M_ECC (M_ECC ),
.M_DQS_DP (M_DQS_DP ),
.M_DQS_DN (M_DQS_DN ),
.cl_RST_DIMM_N (RST_DIMM_N ),
.cl_sh_ddr_axi_awid ( ),
.cl_sh_ddr_axi_awaddr ( ),
.cl_sh_ddr_axi_awlen ( ),
.cl_sh_ddr_axi_awsize ( ),
.cl_sh_ddr_axi_awvalid ( ),
.cl_sh_ddr_axi_awburst ( ),
.cl_sh_ddr_axi_awuser ( ),
.cl_sh_ddr_axi_awready ( ),
.cl_sh_ddr_axi_wdata ( ),
.cl_sh_ddr_axi_wstrb ( ),
.cl_sh_ddr_axi_wlast ( ),
.cl_sh_ddr_axi_wvalid ( ),
.cl_sh_ddr_axi_wready ( ),
.cl_sh_ddr_axi_bid ( ),
.cl_sh_ddr_axi_bresp ( ),
.cl_sh_ddr_axi_bvalid ( ),
.cl_sh_ddr_axi_bready ( ),
.cl_sh_ddr_axi_arid ( ),
.cl_sh_ddr_axi_araddr ( ),
.cl_sh_ddr_axi_arlen ( ),
.cl_sh_ddr_axi_arsize ( ),
.cl_sh_ddr_axi_arvalid ( ),
.cl_sh_ddr_axi_arburst ( ),
.cl_sh_ddr_axi_aruser ( ),
.cl_sh_ddr_axi_arready ( ),
.cl_sh_ddr_axi_rid ( ),
.cl_sh_ddr_axi_rdata ( ),
.cl_sh_ddr_axi_rresp ( ),
.cl_sh_ddr_axi_rlast ( ),
.cl_sh_ddr_axi_rvalid ( ),
.cl_sh_ddr_axi_rready ( ),
.sh_ddr_stat_bus_addr ( ),
.sh_ddr_stat_bus_wdata ( ),
.sh_ddr_stat_bus_wr ( ),
.sh_ddr_stat_bus_rd ( ),
.sh_ddr_stat_bus_ack ( ),
.sh_ddr_stat_bus_rdata ( ),
.ddr_sh_stat_int ( ),
.sh_cl_ddr_is_ready ( )
);
always_comb begin
cl_sh_ddr_stat_ack = 'b0;
cl_sh_ddr_stat_rdata = 'b0;
cl_sh_ddr_stat_int = 'b0;
end
//=============================================================================
// USER-DEFIEND INTERRUPTS
//=============================================================================
always_comb begin
cl_sh_apppf_irq_req = 'b0;
end
//=============================================================================
// VIRTUAL JTAG
//=============================================================================
always_comb begin
tdo = 'b0;
end
//=============================================================================
// HBM MONITOR IO
//=============================================================================
always_comb begin
hbm_apb_paddr_1 = 'b0;
hbm_apb_pprot_1 = 'b0;
hbm_apb_psel_1 = 'b0;
hbm_apb_penable_1 = 'b0;
hbm_apb_pwrite_1 = 'b0;
hbm_apb_pwdata_1 = 'b0;
hbm_apb_pstrb_1 = 'b0;
hbm_apb_pready_1 = 'b0;
hbm_apb_prdata_1 = 'b0;
hbm_apb_pslverr_1 = 'b0;
hbm_apb_paddr_0 = 'b0;
hbm_apb_pprot_0 = 'b0;
hbm_apb_psel_0 = 'b0;
hbm_apb_penable_0 = 'b0;
hbm_apb_pwrite_0 = 'b0;
hbm_apb_pwdata_0 = 'b0;
hbm_apb_pstrb_0 = 'b0;
hbm_apb_pready_0 = 'b0;
hbm_apb_prdata_0 = 'b0;
hbm_apb_pslverr_0 = 'b0;
end
//=============================================================================
// C2C IO
//=============================================================================
always_comb begin
PCIE_EP_TXP = 'b0;
PCIE_EP_TXN = 'b0;
PCIE_RP_PERSTN = 'b0;
PCIE_RP_TXP = 'b0;
PCIE_RP_TXN = 'b0;
end
endmodule // CL_TEMPLATE