Repository navigation
Expand file tree
/
Copy pathsettings.xml
More file actions
326 lines (295 loc) · 15.2 KB
/
Copy pathsettings.xml
File metadata and controls
326 lines (295 loc) · 15.2 KB
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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
<?xml version="1.0"?>
<lsccip:settings xmlns:lsccip="http://www.latticesemi.com/XMLSchema/Radiant/ip"
xmlns:xi="http://www.w3.org/2001/XInclude">
<!--Main Configuration-->
<lsccip:setting id = "DUT_INST_NAME"
type = "verilog_macro"
conn_mod = "lscc_emmc_controller"
value_type = "path"
value_expr = "get_dut_name()"
editable = "bool(0)"
hidden = "bool(1)"
group1 = "General"
/>
<!--User Interface-->
<lsccip:setting id = "gui_csr_interface"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "string"
title = "CSR Interface (Target)"
description = "This is the main user interface to configure and control the IP registers."
options = "['APB']"
default = "APB"
editable = "False"
hidden = "False"
group2 = "General"
group1 = "User Interface"
/>
<lsccip:setting id = "gui_apb_map_size"
type = "input"
conn_mod = "lscc_octal_spi_controller"
value_type = "int"
value_expr = "1024"
editable = "False"
hidden = "True"
group2 = "General"
group1 = "User Interface"
/>
<lsccip:setting id = "gui_en_fulladdr_decode"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "bool"
title = "Enable Full CSR Address Decoding"
description = "If enabled, the register address will be decoded using the full 32b address.
If disabled, only the lower 10b of the address will be decoded.
Disabling the full decode means that the bus controller will ensure the correct routing of requests to individual targets."
default = "False"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "User Interface"
/>
<lsccip:setting id = "gui_regblock_baddr"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "string"
title = "Register Map: APB Base Address (32b Hex)"
default = "00000000"
editable = "gui_en_fulladdr_decode"
hidden = "False"
drc = "addr_range_drc(gui_regblock_baddr,8,1)"
group2 = "General"
group1 = "User Interface"
/>
<lsccip:setting id = "gui_dat_interface"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "string"
title = "Data Interface (Controller)"
description = "This interface is used by the IP to move the data from eMMC device to system memory and/or the opposite direction."
options = "['AXI4','AHBL']"
default = "AXI4"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "User Interface"
/>
<lsccip:setting id = "gui_axi_id_width"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "int"
value_range = "(1,12)"
title = "AXI4 Bus ID Width"
default = "1"
editable = "(gui_dat_interface[0:4] == 'AXI4')"
hidden = "(gui_dat_interface[0:4] != 'AXI4')"
group2 = "General"
group1 = "User Interface"
/>
<lsccip:setting id = "gui_fifo_depth"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "int"
options = "gen_fifo_depth(gui_max_blk_size)"
title = "FIFO depth"
value_expr = "int(gen_fifo_depth(gui_max_blk_size)[0])"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "User Interface"
/>
<lsccip:setting id = "gui_fifo_impl"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "int"
options = "get_mem_opts(DEVICE_FAMILY)"
title = "FIFO Implementation"
default = "2"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "User Interface"
/>
<!-- eMMC Capabilities -->
<lsccip:setting id = "gui_en_ddr"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "bool"
title = "Enable Double Transfer Rate"
value_expr = "False"
editable = "False"
hidden = "False"
group2 = "General"
group1 = "Capabilities"
/>
<lsccip:setting id = "gui_max_num_lane"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "int"
options = "get_max_numlane_opts()"
title = "Max number of data lanes"
value_expr = "get_max_numlane_opts()[-1][1]"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "Capabilities"
/>
<lsccip:setting id = "gui_min_blk_size"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "int"
options = "gen_list_block_size()"
title = "Minimum block size supported (Bytes)"
value_expr = "512"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "Capabilities"
/>
<lsccip:setting id = "gui_max_blk_size"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "int"
options = "gen_list_block_size(9)"
title = "Maximum block size supported (Bytes)"
value_expr = "1024"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "Capabilities"
/>
<lsccip:setting id = "gui_def_blk_size"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "int"
value_range = "(gui_min_blk_size, gui_max_blk_size)"
title = "Default block size (Bytes)"
value_expr = "512 if(gui_min_blk_size < 512) else gui_min_blk_size"
editable = "False"
hidden = "False"
group2 = "General"
group1 = "Capabilities"
/>
<lsccip:setting id = "gui_max_num_blk"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "int"
options = "[(2**num_blk)-1 for num_blk in range(2,17)]"
title = "Maximum number of blocks in single transfer"
description = "This value affects the width of the programmable register setting."
value_expr = "31"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "Capabilities"
/>
<!--eMMC Max Speed: 26, 52, 104, 200, 400 -->
<lsccip:setting id = "gui_emmc_max_speed"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "int"
value_range = "(1,52)"
title = "eMMC Maximum speed (MBps)"
description = "This value affects the range of system clock frequency."
value_expr = "52"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "Capabilities"
/>
<!--Clock Configuration-->
<lsccip:setting id = "gui_sysclk_freq"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "float"
value_range = "get_sysclk_range(gui_emmc_max_speed)"
title = "System Clock Frequency (MHz)"
default = "100.0"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "Clock Configuration"
/>
<lsccip:setting id = "gui_coreclk_freq"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "float"
title = "Internal Clock Frequency (MHz)"
value_expr = "gui_sysclk_freq"
editable = "False"
hidden = "False"
group2 = "General"
group1 = "Clock Configuration"
/>
<lsccip:setting id = "gui_min_emmc_freq"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "float"
title = "Minimum eMMC Clock Frequency (KHz)"
description = "This value affects the width of the internal clock divider."
value_range = "(10, 400)"
default = "400"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "Clock Configuration"
/>
<lsccip:setting id = "gui_emmc_clk_pulsewidth"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "int"
value_range = "get_clkdiv_range(gui_coreclk_freq,gui_en_ddr,gui_min_emmc_freq,gui_emmc_max_speed)"
title = "Default eMMC Clock Pulse width"
value_expr = "calc_default_clkdiv(gui_coreclk_freq,gui_min_emmc_freq)"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "Clock Configuration"
/>
<lsccip:setting id = "gui_def_emmc_freq"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "float"
title = "Default eMMC Clock Frequency (MHz)"
value_expr = "gui_coreclk_freq/(2*gui_emmc_clk_pulsewidth) if(gui_emmc_clk_pulsewidth != 0) else gui_coreclk_freq"
editable = "False"
hidden = "False"
group2 = "General"
group1 = "Clock Configuration"
/>
<lsccip:setting id = "gui_emmc_clk_period"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "float"
title = "Default eMMC Clock Period (ns)"
value_expr = "1000/gui_def_emmc_freq"
editable = "False"
hidden = "False"
group2 = "General"
group1 = "Clock Configuration"
/>
<!--IO Primitive-->
<lsccip:setting id = "gui_en_io_prim"
type = "input"
conn_mod = "lscc_emmc_controller"
value_type = "bool"
title = "Include IO Primitive"
default = "True"
editable = "True"
hidden = "False"
group2 = "General"
group1 = "IO Primitive"
/>
<!--For Simulation-->
<lsccip:setting id = "TB_MEM_INTF"
type = "verilog_macro"
conn_mod = "lscc_emmc_controller"
value_type = "string"
value_expr = "'axi' if(DATA_INTERFACE == 'AXI4') else 'ahbl'"
editable = "bool(0)"
hidden = "bool(1)"
group1 = "General"
/>
<!-- RTL Parameters -->
<xi:include href="rtl_params.xml" parse="xml" xpointer="xmlns(lsccip=http://www.latticesemi.com/XMLSchema/Radiant/ip)xpointer(//lsccip:setting)" />
</lsccip:settings>