-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kconfig
252 lines (212 loc) · 5.17 KB
/
Kconfig
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
menu "General"
config WORKING_DIR
string "Working directory"
default "working_dir"
help
Write the working directory name
choice GENERAL_TYPE
prompt "General project type"
default GENERAL_TYPE_BOARD
config GENERAL_TYPE_BOARD
bool "Project with board"
config GENERAL_TYPE_BOARDLESS
bool "Project without a board"
endchoice
config MAPFILE
string "Pin mapping file"
depends on GENERAL_TYPE_BOARD
default ""
help
Write the pin mapping file name
config BOARD_NUM
int "Board number"
depends on GENERAL_TYPE_BOARD
default 0
help
If you have more than one board, write the board number here. It will be used program the specific board
endmenu
menu "BondMachine configuration"
depends on GENERAL_TYPE_BOARD
choice SELECT_PROJECT_TYPE
prompt "Project type"
default PROJECT_TYPE_BONDGO
config PROJECT_TYPE_BONDGO
bool "Bondgo source file"
config PROJECT_TYPE_NEURALBOND
bool "Neuralbond nn file"
config PROJECT_TYPE_MELBOND
bool "Melbond program file"
config PROJECT_TYPE_BASM
bool "Basm file"
endchoice
config SOURCE_GO
string "source file"
depends on PROJECT_TYPE_BONDGO
default "test.go"
help
Write the source file name
config SOURCE_NEURALBOND
string "nn file"
depends on PROJECT_TYPE_NEURALBOND
default "test.json"
help
Write the neural network file name
config SOURCE_MELBOND
string "melbond file"
depends on PROJECT_TYPE_MELBOND
default "test.mel"
help
Write the melbond file name
config SOURCE_BASM
string "Select the basm file"
depends on PROJECT_TYPE_BASM
default "test.basm"
help
Write the basm file name
config BASM_DEBUG
bool "Show basm debug informations"
depends on PROJECT_TYPE_BASM
default n
help
Activate basm debug
endmenu
menu "Project configuration"
depends on GENERAL_TYPE_BOARDLESS
choice BOARDLESS_PROJECT
prompt "Project type"
default PROJECT_TYPE_MULTI
config PROJECT_TYPE_MULTI
bool "Multiple projects handler"
endchoice
config MULTI_TARGET
depends on PROJECT_TYPE_MULTI
string "Projects target"
config MULTI_TYPE
depends on PROJECT_TYPE_MULTI
string "Projects type"
default "templsim"
config MULTI_TEMPLATEDIR
depends on PROJECT_TYPE_MULTI
string "Projects template dir"
default "template"
config MULTI_TEMPLATEDESC
depends on PROJECT_TYPE_MULTI
string "Projects template description JSON file"
default "template.json"
endmenu
menu "Board and toolchain"
depends on GENERAL_TYPE_BOARD
choice SELECT_TOOLCHAIN
prompt "Toolchain"
default TOOLCHAIN_XILINX
config TOOLCHAIN_XILINX
bool "AMD/Xilinx with Vivado"
config TOOLCHAIN_ALTERA
bool "Intel/Altera with Quartus"
config TOOLCHAIN_LATTICE
bool "Lattice with icestorm"
endchoice
choice SELECT_XILINX_BOARD
depends on TOOLCHAIN_XILINX
prompt "Xilinx board"
config XILINX_BOARD_ZEDBOARD
bool "Zedboard"
config XILINX_BOARD_BASYS3
bool "Basys3"
config XILINX_BOARD_ZC702
bool "ZC702"
config XILINX_BOARD_KC705
bool "KC705"
config XILINX_BOARD_EBAZ4205
bool "Ebaz4205"
endchoice
choice SELECT_ALTERA_BOARD
depends on TOOLCHAIN_ALTERA
prompt "Altera board"
config ALTERA_BOARD_DE0NANO
bool "DE0 Nano"
config ALTERA_BOARD_MAX1000
bool "MAX1000"
endchoice
choice SELECT_LATTICE_BOARD
depends on TOOLCHAIN_LATTICE
prompt "Lattice board"
config LATTICE_BOARD_ICE40LP1K
bool "ice40lp1k"
config LATTICE_BOARD_ICEFUN
bool "icefun"
config LATTICE_BOARD_ICEBREAKER
bool "icebreaker"
config LATTICE_BOARD_ICESUGARNANO
bool "icesugarnano"
endchoice
endmenu
menu "External modules"
depends on GENERAL_TYPE_BOARD
config UART_SUPPORT
bool "Activate UART support"
default n
help
Activate UART support
config UART_MAPFILE
string "UART PIN mapping file"
depends on UART_SUPPORT
default ""
help
UART PIM mapping file
config BOARD_SLOW
bool "Slow board"
default n
help
Slow board
config BOARD_SLOW_FACTOR
int "Slow board factor"
depends on BOARD_SLOW
default 23
help
Slow board factor
endmenu
menu "Testing and debugging"
depends on GENERAL_TYPE_BOARD
config REGRESSION_TEST
bool "Regression tests"
default n
help
Activate regression test
config REGRESSION_TEST_HDL
bool "Regression test on HDL"
depends on REGRESSION_TEST
default n
help
Activate regression test HDL
config HDL_REGRESSION
string "HDL regression file"
depends on REGRESSION_TEST_HDL
default "bondmachine.sv"
help
Write the HDL regression file name
config REGRESSION_TEST_BM
bool "Regression test on BM"
depends on REGRESSION_TEST
default n
help
Activate regression test BM
config BM_REGRESSION
string "BM regression file"
depends on REGRESSION_TEST_BM
default "bondmachine.json"
help
Write the BM regression file name
config REGRESSION_TEST_SIM
bool "Regression test on simulation"
depends on REGRESSION_TEST
default n
help
Activate regression test SIM
config SIM_REGRESSION
string "SIM regression file"
depends on REGRESSION_TEST_SIM
default "bondmachine.sim"
help
Write the SIM regression file name
endmenu