Skip to content

Commit

Permalink
soc.jtag: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anuejn committed Mar 9, 2024
1 parent b80cb1a commit 517113c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion naps/soc/platform/jtag/jtag_soc_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def pack_bitstream_fatbitstream(self, name: str, build_products: BuildProducts):
else:
yield File("bitstream_jtag.svf", build_products.get(f"{name}.svf"))
yield from self._wrapped_platform.generate_openocd_conf()
yield "openocd -f openocd.cfg -c 'svf -tap dut.tap -quiet -progress bitstream_jtag.svf; shutdown'"
yield 'openocd -f openocd.cfg -c "svf -tap dut.tap -quiet -progress bitstream_jtag.svf; shutdown"'

def pydriver_memory_accessor(self, _memorymap):
return (Path(__file__).parent / "memory_accessor_openocd.py").read_text()
2 changes: 1 addition & 1 deletion naps/soc/program_fatbitstream_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

def program_fatbitstream_local(fatbitstream, run=False):
os.chdir(Path(fatbitstream).parent)
os.system(f"{fatbitstream} {'--run' if run else ''}")
os.system(f"./{Path(fatbitstream).name} {'--run' if run else ''}")

0 comments on commit 517113c

Please # to comment.