-
Notifications
You must be signed in to change notification settings - Fork 191
/
parse_board_name.tcl
52 lines (50 loc) · 1.48 KB
/
parse_board_name.tcl
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
# // Author: Xianjun Jiao
# // SPDX-FileCopyrightText: 2022 UGent
# // SPDX-License-Identifier: AGPL-3.0-or-later
# fpga_size_flag: 0 small; 1 big
if {$BOARD_NAME=="zed_fmcs2"} {
set ultra_scale_flag 0
set part_string xc7z020clg484-1
set fpga_size_flag 0
} elseif {$BOARD_NAME=="zcu102_fmcs2"} {
set ultra_scale_flag 1
set part_string xczu9eg-ffvb1156-2-e
set fpga_size_flag 1
} elseif {$BOARD_NAME=="zc706_fmcs2"} {
set ultra_scale_flag 0
set part_string xc7z045ffg900-2
set fpga_size_flag 1
} elseif {$BOARD_NAME=="zc702_fmcs2"} {
set ultra_scale_flag 0
set part_string xc7z020clg484-1
set fpga_size_flag 0
} elseif {$BOARD_NAME=="antsdr"} {
set ultra_scale_flag 0
set part_string xc7z020clg400-1
set fpga_size_flag 0
} elseif {$BOARD_NAME=="antsdr_e200"} {
set ultra_scale_flag 0
set part_string xc7z020clg400-1
set fpga_size_flag 0
} elseif {$BOARD_NAME=="sdrpi"} {
set ultra_scale_flag 0
set part_string xc7z020clg400-1
set fpga_size_flag 0
} elseif {$BOARD_NAME=="adrv9361z7035"} {
set ultra_scale_flag 0
set part_string xc7z035ifbg676-2L
set fpga_size_flag 1
} elseif {$BOARD_NAME=="adrv9364z7020"} {
set ultra_scale_flag 0
set part_string xc7z020clg400-1
set fpga_size_flag 0
} elseif {$BOARD_NAME=="neptunesdr"} {
set ultra_scale_flag 0
set part_string xc7z020clg400-1
set fpga_size_flag 0
} else {
set ultra_scale_flag []
set part_string []
set fpga_size_flag []
puts "$BOARD_NAME is not valid!"
}