Skip to content

Commit

Permalink
ghdl_interface: with ghdl_e, save runtime args to JSON file
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Dec 2, 2019
1 parent 2f5aed6 commit 6bd12e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vunit/sim_if/ghdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import logging
import subprocess
import shlex
from json import dump
from sys import stdout # To avoid output catched in non-verbose mode
from ..exceptions import CompileError
from ..ostools import Process
Expand Down Expand Up @@ -260,6 +261,13 @@ def _get_command(self, config, output_path, elaborate_only, ghdl_e, wave_file):
cmd += sim
if elaborate_only:
cmd += ["--no-run"]
else:
try:
os.makedirs(output_path, mode=0o777)
except OSError:
pass
with open(join(output_path, "args.json"), "w") as fname:
dump([bin_path] + sim, fname)

return cmd

Expand Down

0 comments on commit 6bd12e3

Please sign in to comment.