aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Bourdeauducq <sb@m-labs.hk>2019-07-03 17:44:20 +0800
committerSebastien Bourdeauducq <sb@m-labs.hk>2019-07-03 17:44:20 +0800
commit7dfe0be7a5b2e75dbe0cee4fc03ce9d681449930 (patch)
treea1ef674e56ed25a1b7c5e5f5a7ef4028fa390044
parent0bcb6099ce4a996931643113a512468efc59bf19 (diff)
kc705: fix openocd command
-rw-r--r--nmigen_boards/kc705.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nmigen_boards/kc705.py b/nmigen_boards/kc705.py
index 2f3385e..df3a492 100644
--- a/nmigen_boards/kc705.py
+++ b/nmigen_boards/kc705.py
@@ -37,7 +37,7 @@ class KC705Platform(Xilinx7SeriesPlatform):
openocd = os.environ.get("OPENOCD", "openocd")
with products.extract("{}.bit".format(name)) as bitstream_filename:
subprocess.run([openocd, "-c",
- "source [find board/kc705.cfg]; init; pld load 0 bitstream_filename; exit".format(bitstream_filename)], check=True)
+ "source [find board/kc705.cfg]; init; pld load 0 {}; exit".format(bitstream_filename)], check=True)
if __name__ == "__main__":