File tree Expand file tree Collapse file tree 7 files changed +50
-13
lines changed Expand file tree Collapse file tree 7 files changed +50
-13
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ #
4
+ # Copyright (C) 2024-2025 PyFPGA Project
5
+ #
6
+ # SPDX-License-Identifier: GPL-3.0-or-later
7
+ #
8
+
3
9
set -e
4
10
5
11
declare -A TOOLS
@@ -44,9 +50,9 @@ for TOOL in "${!TOOLS[@]}"; do
44
50
fi
45
51
echo " > $TOOL - $BOARD - $SOURCE "
46
52
if [[ " $NOTOOL " == true ]]; then
47
- python3 $TOOL .py --board $BOARD --source $SOURCE --notool
53
+ python3 $TOOL .py --board $BOARD --source $SOURCE --action all -- notool
48
54
else
49
- python3 $TOOL .py --board $BOARD --source $SOURCE
55
+ python3 $TOOL .py --board $BOARD --source $SOURCE --action all
50
56
fi
51
57
done
52
58
done
Original file line number Diff line number Diff line change 1
1
{#
2
- # Copyright (C) 2024 PyFPGA Project
2
+ # Copyright (C) 2024-2025 PyFPGA Project
3
3
#
4
4
# SPDX-License-Identifier: GPL-3.0-or-later
5
5
#
6
6
#}
7
7
8
8
if [ "$DIAMOND_XCF" == "" ]; then
9
- DIAMOND_XCF=impl1/impl1.xcf
9
+ DIAMOND_XCF=impl1/impl1.xcf
10
10
fi
11
11
12
12
if [ -f "$DIAMOND_XCF" ]; then
13
- pgrcmd -infile $DIAMOND_XCF
13
+ pgrcmd -infile $DIAMOND_XCF
14
14
else
15
- echo "ERROR: Automatic programming with Diamond is not yet supported."
16
- echo " Please create the `realpath $DIAMOND_XCF` file manually and rerun the prog command."
17
- echo " Hint: You can change the location of the XCF file by setting the DIAMOND_XCF environment variable."
18
- exit 1
15
+ echo "Automatic programming with Diamond is not yet supported."
16
+ echo "Please create the `realpath $DIAMOND_XCF` file manually and rerun the prog command."
17
+ echo "Hint: You can change the location of the XCF file by setting the DIAMOND_XCF environment variable."
19
18
fi
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
#
9
9
RESULT=$(jtagconfig)
10
10
echo "$RESULT"
11
11
12
- # cable = re.match(r"1\) (.*) \[", result).groups()[0]
13
12
CABLE=$(echo "$RESULT" | awk -F '1\\) | \\[' '/1\)/ {print $2}')
14
13
15
14
quartus_pgm -c $CABLE --mode jtag -o "p;{{ bitstream }}@{{ position }}"
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
3
#
4
- # Copyright (C) 2024 PyFPGA Project
4
+ # Copyright (C) 2024-2025 PyFPGA Project
5
5
#
6
6
# SPDX-License-Identifier: GPL-3.0-or-later
7
7
#
8
8
9
9
import argparse
10
+ import re
10
11
import subprocess
11
12
12
13
@@ -34,4 +35,12 @@ subprocess.run(
34
35
universal_newlines = True
35
36
)
36
37
38
+ pattern = r'prj_project\s+new\s+-name\s+(\S+)\s'
39
+ with open (args .source , 'r' , encoding = 'utf-8' ) as file :
40
+ match = re .search (pattern , file .read ())
41
+ if match :
42
+ project = match .group (1 )
43
+ with open (f'{ project } .bit' , 'w' , encoding = 'utf-8' ) as file :
44
+ pass
45
+
37
46
print (f'INFO:the { tool .upper ()} mock has been executed' )
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python3
2
+
3
+ #
4
+ # Copyright (C) 2025 PyFPGA Project
5
+ #
6
+ # SPDX-License-Identifier: GPL-3.0-or-later
7
+ #
8
+
9
+ with open ('openflow.bit' , 'w' , encoding = 'utf-8' ) as file :
10
+ pass
11
+ with open ('openflow.svf' , 'w' , encoding = 'utf-8' ) as file :
12
+ pass
13
+
14
+ print ('INFO:the DOCKER mock has been executed' )
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python3
2
+
3
+ #
4
+ # Copyright (C) 2025 PyFPGA Project
5
+ #
6
+ # SPDX-License-Identifier: GPL-3.0-or-later
7
+ #
8
+
9
+ print ('1) USB-Blaster [USB-0]' )
10
+ print (' 02D120DD EP4CE22' )
Original file line number Diff line number Diff line change 2
2
3
3
MDIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd)
4
4
5
- export PATH=$PATH : $MDIR
5
+ export PATH=$MDIR : $PATH
You can’t perform that action at this time.
0 commit comments