Skip to content

Commit 7c3fd68

Browse files
committed
Switch to openFPGALoader for cmod a7.
1 parent 6e4147f commit 7c3fd68

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

amaranth_boards/cmod_a7.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,11 @@ class _CmodA7Platform(XilinxPlatform):
7575
]
7676

7777
def toolchain_program(self, products, name):
78-
openocd = os.environ.get("OPENOCD", "openocd")
7978
with products.extract("{}.bit".format(name)) as bitstream_filename:
80-
subprocess.check_call([openocd,
81-
# Use for debug output
82-
#"-d",
83-
"-c",
84-
"source [find board/digilent_cmod_a7.cfg]; init; pld load 0 {}; exit"
85-
.format(bitstream_filename)
79+
subprocess.check_call(["openFPGALoader",
80+
"-c", "digilent",
81+
"--fpga-part", "xc7a35",
82+
"{}".format(bitstream_filename)
8683
])
8784

8885

0 commit comments

Comments
 (0)