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 11{#
22#
3- # Copyright (C) 2015-2024 PyFPGA Project
3+ # Copyright (C) 2015-2025 PyFPGA Project
44#
55# SPDX-License-Identifier: GPL-3.0-or-later
66#
77#}
88
99cleancablelock
1010
11- {# ------------------------------------------------------------------------- # }
11+ {% if not spi and not bpi % }
1212
13- {% if fpga %}
1413setMode -bs
1514setCable -port auto
1615Identify -inferir
1716assignFile -p {{ position }} -file {{ bitstream }}
1817Program -p {{ position }}
19- {% endif %}
2018
21- {# ------------------------------------------------------------------------- # }
19+ {% elif spi % }
2220
23- {% if spi %}
2421setMode -pff
2522addConfigDevice -name {{ name }} -path .
2623setSubmode -pffspi
@@ -35,11 +32,9 @@ Identify
3532attachflash -position {{ position }} -spi {{ name }}
3633assignfiletoattachedflash -position {{ position }} -file ./{{ name }}.mcs
3734Program -p {{ position }} -dataWidth {{ width }} -spionly -e -v -loadfpga
38- {% endif %}
3935
40- {# ------------------------------------------------------------------------- # }
36+ {% else % }
4137
42- {% if bpi %}
4338setMode -pff
4439addConfigDevice -name {{ name }} -path .
4540setSubmode -pffbpi
@@ -55,8 +50,7 @@ Identify
5550attachflash -position {{ position }} -bpi {{ name }}
5651assignfiletoattachedflash -position {{ position }} -file ./{{ name }}.mcs
5752Program -p {{ position }} -dataWidth {{ width }} -rs1 NONE -rs0 NONE -bpionly -e -v -loadfpga
58- {% endif %}
5953
60- {# ------------------------------------------------------------------------- # }
54+ {% endif % }
6155
6256quit
You can’t perform that action at this time.
0 commit comments