mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
14 lines
322 B
Python
14 lines
322 B
Python
import subprocess
|
|
|
|
def load(bitstream):
|
|
cmds = """cable milkymist
|
|
detect
|
|
pld load {bitstream}
|
|
quit
|
|
""".format(bitstream=bitstream)
|
|
process = subprocess.Popen("jtag", stdin=subprocess.PIPE)
|
|
process.stdin.write(cmds.encode("ASCII"))
|
|
process.communicate()
|
|
|
|
def flash(bitstream):
|
|
subprocess.call(["m1nor-ng", bitstream])
|