File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 1
1
{#
2
2
#
3
- # Copyright (C) 2015-2024 PyFPGA Project
3
+ # Copyright (C) 2015-2025 PyFPGA Project
4
4
#
5
5
# SPDX-License-Identifier: GPL-3.0-or-later
6
6
#
7
7
#}
8
8
9
9
cleancablelock
10
10
11
- {# ------------------------------------------------------------------------- # }
11
+ {% if not spi and not bpi % }
12
12
13
- {% if fpga %}
14
13
setMode -bs
15
14
setCable -port auto
16
15
Identify -inferir
17
16
assignFile -p {{ position }} -file {{ bitstream }}
18
17
Program -p {{ position }}
19
- {% endif %}
20
18
21
- {# ------------------------------------------------------------------------- # }
19
+ {% elif spi % }
22
20
23
- {% if spi %}
24
21
setMode -pff
25
22
addConfigDevice -name {{ name }} -path .
26
23
setSubmode -pffspi
@@ -35,11 +32,9 @@ Identify
35
32
attachflash -position {{ position }} -spi {{ name }}
36
33
assignfiletoattachedflash -position {{ position }} -file ./{{ name }}.mcs
37
34
Program -p {{ position }} -dataWidth {{ width }} -spionly -e -v -loadfpga
38
- {% endif %}
39
35
40
- {# ------------------------------------------------------------------------- # }
36
+ {% else % }
41
37
42
- {% if bpi %}
43
38
setMode -pff
44
39
addConfigDevice -name {{ name }} -path .
45
40
setSubmode -pffbpi
@@ -55,8 +50,7 @@ Identify
55
50
attachflash -position {{ position }} -bpi {{ name }}
56
51
assignfiletoattachedflash -position {{ position }} -file ./{{ name }}.mcs
57
52
Program -p {{ position }} -dataWidth {{ width }} -rs1 NONE -rs0 NONE -bpionly -e -v -loadfpga
58
- {% endif %}
59
53
60
- {# ------------------------------------------------------------------------- # }
54
+ {% endif % }
61
55
62
56
quit
You can’t perform that action at this time.
0 commit comments