forked from davidthings/tinyfpga_bx_usbserial
-
Notifications
You must be signed in to change notification settings - Fork 4
/
usbserial.core
75 lines (66 loc) · 1.71 KB
/
usbserial.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
CAPI=2:
name : ::tinydfu
filesets:
rtl:
files:
- usb/edge_detect.v
- usb/usb_fs_in_arb.v
- usb/usb_fs_in_pe.v
- usb/usb_fs_out_arb.v
- usb/usb_fs_out_pe.v
- usb/usb_fs_pe.v
- usb/usb_fs_rx.v
- usb/usb_fs_tx_mux.v
- usb/usb_fs_tx.v
- usb/usb_reset_det.v
- usb/usb_dfu_ctrl_ep.v
- usb/usb_spiflash_bridge.v
- usb/usb_dfu_core.v
file_type : verilogSource
generic: {files: [usb/usb_dfu.v : {file_type : verilogSource}]}
ecp5 : {files: [usb/usb_dfu_ecp5.v: {file_type : verilogSource}]}
ice40: {files: [usb/usb_dfu_i40.v : {file_type : verilogSource}]}
tinyfpga_bx:
files:
- tinydfu_tbx.v : {file_type : verilogSource}
- pins.pcf: {file_type : PCF}
depend: [fusesoc:utils:generators]
targets:
default:
filesets: [rtl]
lint:
default_tool : verilator
description: Lint check core with Verilator
filesets: [rtl, generic]
tools:
verilator:
mode : lint-only
toplevel: usb_dfu
synth:
default_tool: icestorm
description: Run synthesis for resource/timing analysis
filesets:
- rtl
- "tool_icestorm? (ice40)"
- "!tool_icestorm? (generic)"
tools:
icestorm: {pnr : none}
vivado: {pnr : none}
toplevel: usb_dfu
tinyfpga_bx:
default_tool: icestorm
description: Build for TinyFPGA BX
filesets: [rtl, ice40, tinyfpga_bx]
generate: [tinyfpga_bx_pll]
tools:
icestorm:
pnr: next
nextpnr_options: [--freq, 48, --lp8k, --opt-timing, --package, cm81]
toplevel: tinydfu_tbx
generate:
tinyfpga_bx_pll:
generator: icepll
parameters:
freq_in : 16
freq_out : 48
module: true