Skip to content

Commit 6e4147f

Browse files
committed
cmod_s7: Replace openocd with openfpgaloader.
1 parent be50ccb commit 6e4147f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

amaranth_boards/cmod_s7.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,11 @@ class CmodS7_Platform(XilinxPlatform):
7373
]
7474

7575
def toolchain_program(self, products, name):
76-
openocd = os.environ.get("OPENOCD", "openocd")
7776
with products.extract("{}.bit".format(name)) as bitstream_filename:
78-
subprocess.check_call([openocd,
79-
# Use for debug output
80-
#"-d",
81-
"-c",
82-
"source [find board/digilent_cmod_s7.cfg]; init; pld load 0 {}; exit"
83-
.format(bitstream_filename)
77+
subprocess.check_call(["openFPGALoader",
78+
"-c", "digilent",
79+
"--fpga-part", "xc7s25",
80+
"{}".format(bitstream_filename)
8481
])
8582

8683

0 commit comments

Comments
 (0)