Skip to content

Commit d52dd57

Browse files
committed
Fix ise-prog template
1 parent d27ad20 commit d52dd57

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

pyfpga/templates/ise-prog.jinja

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
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

99
cleancablelock
1010

11-
{# ------------------------------------------------------------------------- #}
11+
{% if not spi and not bpi %}
1212

13-
{% if fpga %}
1413
setMode -bs
1514
setCable -port auto
1615
Identify -inferir
1716
assignFile -p {{ position }} -file {{ bitstream }}
1817
Program -p {{ position }}
19-
{% endif %}
2018

21-
{# ------------------------------------------------------------------------- #}
19+
{% elif spi %}
2220

23-
{% if spi %}
2421
setMode -pff
2522
addConfigDevice -name {{ name }} -path .
2623
setSubmode -pffspi
@@ -35,11 +32,9 @@ Identify
3532
attachflash -position {{ position }} -spi {{ name }}
3633
assignfiletoattachedflash -position {{ position }} -file ./{{ name }}.mcs
3734
Program -p {{ position }} -dataWidth {{ width }} -spionly -e -v -loadfpga
38-
{% endif %}
3935

40-
{# ------------------------------------------------------------------------- #}
36+
{% else %}
4137

42-
{% if bpi %}
4338
setMode -pff
4439
addConfigDevice -name {{ name }} -path .
4540
setSubmode -pffbpi
@@ -55,8 +50,7 @@ Identify
5550
attachflash -position {{ position }} -bpi {{ name }}
5651
assignfiletoattachedflash -position {{ position }} -file ./{{ name }}.mcs
5752
Program -p {{ position }} -dataWidth {{ width }} -rs1 NONE -rs0 NONE -bpionly -e -v -loadfpga
58-
{% endif %}
5953

60-
{# ------------------------------------------------------------------------- #}
54+
{% endif %}
6155

6256
quit

0 commit comments

Comments
 (0)