forked from olofk/serv
-
Notifications
You must be signed in to change notification settings - Fork 1
/
servant.core
459 lines (399 loc) · 11.6 KB
/
servant.core
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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
CAPI=2:
name : ::servant:1.0.2
filesets:
service:
files: [servant/ice40_pll.v, servant/service.v]
file_type : verilogSource
depend : ["fusesoc:utils:generators"]
mem_files:
files:
- sw/blinky.hex : {copyto : blinky.hex}
- sw/zephyr_hello.hex : {copyto : zephyr_hello.hex}
file_type : user
servant_tb:
files:
- bench/servant_sim.v
- bench/uart_decoder.v
- bench/servant_tb.v
file_type : verilogSource
depend : [vlog_tb_utils]
verilator_tb:
files:
- bench/servant_sim.v
- bench/servant_tb.cpp : {file_type : cppSource}
file_type : verilogSource
soc:
files:
- servant/servant_clock_gen.v
- servant/servant_timer.v
- servant/servant_gpio.v
- servant/servant_arbiter.v
- servant/servant_mux.v
- "tool_quartus? (servant/servant_ram_quartus.sv)" : {file_type : systemVerilogSource}
- "!tool_quartus? (servant/servant_ram.v)"
- servant/servant.v
file_type : verilogSource
depend : [serv]
cyc1000:
files:
- data/cyc1000.sdc : {file_type : SDC}
- data/cyc1000.tcl : {file_type : tclSource}
- servant/servclone10_clock_gen.v : {file_type : verilogSource}
- servant/servclone10.v : {file_type : verilogSource}
sockit:
files:
- data/sockit.sdc : {file_type : SDC}
- data/sockit.tcl : {file_type : tclSource}
- servant/servive_clock_gen.v : {file_type : verilogSource}
- servant/servive.v : {file_type : verilogSource}
deca:
files:
- data/deca.sdc : {file_type : SDC}
- data/deca.tcl : {file_type : tclSource}
- servant/servive_clock_gen.v : {file_type : verilogSource}
- servant/servive.v : {file_type : verilogSource}
de0_nano:
files:
- data/de0_nano.sdc : {file_type : SDC}
- data/de0_nano.tcl : {file_type : tclSource}
- servant/servive_clock_gen.v : {file_type : verilogSource}
- servant/servive.v : {file_type : verilogSource}
tinyfpga_bx: {files: [data/tinyfpga_bx.pcf : {file_type : PCF}]}
icebreaker : {files: [data/icebreaker.pcf : {file_type : PCF}]}
icesugar : {files: [data/icesugar.pcf : {file_type : PCF}]}
alhambra : {files: [data/alhambra.pcf : {file_type : PCF}]}
icestick : {files: [data/icestick.pcf : {file_type : PCF}]}
lx9_microboard:
files:
- servant/servant_lx9_clock_gen.v : {file_type : verilogSource}
- servant/servant_lx9.v : {file_type : verilogSource}
- data/lx9_microboard.ucf : {file_type : UCF}
nexys_a7:
files:
- servant/servix_clock_gen.v : {file_type : verilogSource}
- servant/servix.v : {file_type : verilogSource}
- data/nexys_a7.xdc : {file_type : xdc}
cmod_a7_35t:
files:
- servant/servix_clock_gen.v : {file_type : verilogSource}
- servant/servix.v : {file_type : verilogSource}
- data/cmod_a7_35t.xdc : {file_type : xdc}
arty_a7_35t:
files:
- servant/servix_clock_gen.v : {file_type : verilogSource}
- servant/servix.v : {file_type : verilogSource}
- data/arty_a7_35t.xdc : {file_type : xdc}
ac701:
files:
- servant/servix.v : {file_type : verilogSource}
- servant/servant_ac701.v : {file_type : verilogSource}
- data/ac701.xdc : {file_type : xdc}
orangecrab:
files:
- data/orangecrab_r02.lpf : {file_type : LPF}
- servant/servant_orangecrab.v : {file_type : verilogSource}
pipistrello:
files:
- servant/servis_clock_gen.v : {file_type : verilogSource}
- servant/servis.v : {file_type : verilogSource}
- data/pipistrello.ucf : {file_type : UCF}
ulx3s:
files:
- data/ulx3s.lpf : {file_type : LPF}
- servant/ecppll.v : {file_type : verilogSource}
- servant/servant_ecp5_clock_gen.v : {file_type : verilogSource}
- servant/servant_ecp5.v : {file_type : verilogSource}
upduino2:
files:
- servant/servant_upduino2.v : {file_type : verilogSource}
- data/upduino2.pcf : {file_type : PCF}
zcu106:
files:
- servant/servus_clock_gen.v : {file_type : verilogSource}
- servant/servus.v : {file_type : verilogSource}
- data/zcu106.xdc : {file_type : xdc}
targets:
default:
filesets : [soc]
cyc1000:
default_tool: quartus
description: cyc1000 FPGA board
filesets : [mem_files, soc, cyc1000]
parameters : [memfile, memsize=32768]
tools:
quartus:
family : Cyclone 10 LP
device : 10CL025YU256C8G
toplevel : servclone10
sockit:
default_tool : quartus
description: SoCKit development kit by Arrow / Terasic
filesets : [mem_files, soc, sockit]
parameters : [memfile, memsize]
tools:
quartus:
family : CycloneV
device : 5CSXFC6D6F31C6
toplevel: servive
deca:
default_tool : quartus
description: DECA development kit by Arrow / Terasic
filesets : [mem_files, soc, deca]
parameters : [memfile, memsize]
tools:
quartus:
family : MAX 10
device : 10M50DAF484C6GES
toplevel: servive
de0_nano:
default_tool : quartus
filesets : [mem_files, soc, de0_nano]
parameters : [memfile, memsize]
tools:
quartus:
family : Cyclone IV E
device : EP4CE22F17C6
toplevel: servive
icebreaker:
default_tool : icestorm
filesets : [mem_files, soc, service, icebreaker]
generate: [icebreaker_pll]
parameters : [memfile, memsize, PLL=ICE40_PAD]
tools:
icestorm:
nextpnr_options: [--up5k, --freq, 16]
pnr: next
toplevel : service
icesugar:
default_tool : icestorm
description : iCE40UP5K Development Board by MuseLab
filesets : [mem_files, soc, service, icesugar]
generate: [icesugar_pll]
parameters : [memfile, memsize, PLL=ICE40_PAD]
tools:
icestorm:
nextpnr_options: [--up5k, --package, sg48, --freq, 32]
pnr: next
toplevel : service
lx9_microboard:
default_tool: ise
description : LX9 Microboard
filesets : [mem_files, soc, lx9_microboard]
parameters : [memfile, memsize]
tools:
ise:
family : Spartan6
device : xc6slx9
package : csg324
speed : -2
toplevel : servant_lx9
tinyfpga_bx:
default_tool : icestorm
filesets : [mem_files, soc, service, tinyfpga_bx]
generate: [tinyfpga_bx_pll]
parameters : [memfile, memsize, PLL=ICE40_CORE]
tools:
icestorm:
nextpnr_options : [--lp8k, --package, cm81, --freq, 32]
pnr: next
toplevel : service
alhambra:
default_tool : icestorm
description: Open-hardware iCE40HX4K FPGA board
filesets : [mem_files, soc, service, alhambra]
generate: [alhambra_pll]
parameters : [memfile, memsize, PLL=ICE40_CORE]
tools:
icestorm:
nextpnr_options : [--hx8k, --package, "tq144:4k", --freq, 32]
pnr: next
toplevel : service
lint:
default_tool : verilator
filesets : [soc]
tools:
verilator:
mode : lint-only
toplevel : servant
nexys_a7:
default_tool: vivado
filesets : [mem_files, soc, nexys_a7]
parameters : [memfile, memsize, frequency=32]
tools:
vivado: {part : xc7a100tcsg324-1}
toplevel : servix
cmod_a7_35t:
default_tool: vivado
filesets : [mem_files, soc, cmod_a7_35t]
parameters : [memfile=blinky.hex, memsize, frequency=12]
tools:
vivado: {part : xc7a35tcpg236-1}
toplevel : servix
arty_a7_35t:
default_tool: vivado
filesets : [mem_files, soc, arty_a7_35t]
parameters : [memfile, memsize, frequency=16]
tools:
vivado: {part : xc7a35ticsg324-1L}
toplevel : servix
ac701:
default_tool: vivado
filesets : [mem_files, soc, ac701]
parameters : [memfile, memsize, frequency=32]
tools:
vivado: {part : xc7a200t-fbg676-2}
toplevel : servant_ac701
orangecrab_r0.2:
default_tool: trellis
description : OrangeCrab R0.2
filesets : [mem_files, soc, orangecrab]
parameters : [memfile, memsize]
tools:
trellis:
nextpnr_options : [--package, CSFBGA285, --25k]
toplevel: servant_orangecrab
pipistrello:
default_tool: ise
description : Saanlima pipistrello
filesets : [mem_files, soc, pipistrello]
parameters : [memfile, memsize]
tools:
ise:
family : Spartan6
device : xc6slx45
package : csg324
speed : -3
toplevel : servis
sim:
default_tool: icarus
filesets : [soc, servant_tb]
parameters :
- RISCV_FORMAL
- SERV_CLEAR_RAM=true
- firmware
- memsize
toplevel : servant_tb
ulx3s_85:
default_tool: diamond
description : ULX3S 85k version
filesets : [mem_files, soc, ulx3s]
parameters : [memfile, memsize]
tools:
diamond:
part : LFE5U-85F-6BG381C
trellis:
nextpnr_options : [--package, CABGA381, --85k]
toplevel: servant_ecp5
upduino2:
default_tool : icestorm
filesets : [mem_files, soc, upduino2]
parameters : [memfile, memsize]
tools:
icestorm:
nextpnr_options: [--package, sg48, --up5k, --freq, 24]
pnr: next
toplevel : servant_upduino2
verilator_tb:
default_tool: verilator
filesets : [soc, verilator_tb]
parameters :
- RISCV_FORMAL
- firmware
- memsize
- signature
- timeout
- uart_baudrate
- vcd
- vcd_start
tools:
verilator:
verilator_options : [--trace]
toplevel : servant_sim
zcu106:
default_tool: vivado
description : Zynq UltraScale+ MPSoC ZCU106 Evaluation Kit
filesets : [mem_files, soc, zcu106]
parameters : [memfile, memsize]
tools:
vivado: {part : xczu7ev-ffvc1156-2-e}
toplevel : servus
icestick:
default_tool : icestorm
filesets : [mem_files, soc, service, icestick]
generate: [icestick_pll]
parameters : [memfile=blinky.hex, memsize=7168, PLL=ICE40_CORE]
tools:
icestorm:
nextpnr_options : [--hx1k, --package, tq144, --freq, 32]
pnr: next
toplevel : service
parameters:
PLL:
datatype : str
description : PLL type to use for main clock generation
paramtype : vlogparam
RISCV_FORMAL:
datatype : bool
paramtype : vlogdefine
SERV_CLEAR_RAM:
datatype : bool
paramtype : vlogdefine
firmware:
datatype : file
description : Preload RAM with a hex file at runtime (overrides memfile)
paramtype : plusarg
frequency:
datatype : int
description : PLL output frequency
paramtype : vlogparam
memfile:
datatype : file
description : Preload RAM with a hex file at compile-time
paramtype : vlogparam
memsize:
datatype : int
default : 8192
description : Memory size in bytes for RAM (default 8kiB)
paramtype : vlogparam
signature:
datatype : file
paramtype : plusarg
uart_baudrate:
datatype : int
description : Treat q output as an UART with the specified baudrate (0 or omitted parameter disables UART decoding)
paramtype : plusarg
timeout:
datatype : int
paramtype : plusarg
vcd:
datatype : bool
paramtype : plusarg
vcd_start:
datatype : int
description : Delay start of VCD dumping until the specified time
paramtype : plusarg
generate:
icebreaker_pll:
generator: icepll
parameters:
freq_out : 16
icesugar_pll:
generator: icepll
parameters:
freq_in : 12
freq_out : 32
tinyfpga_bx_pll:
generator: icepll
parameters:
freq_in : 16
freq_out : 32
alhambra_pll:
generator: icepll
parameters:
freq_in : 12
freq_out : 32
icestick_pll:
generator: icepll
parameters:
freq_in : 12
freq_out : 32