Skip to content

Commit

Permalink
XX
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
  • Loading branch information
mballance committed Sep 6, 2024
1 parent 0fc06f2 commit fe59c0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pytest_fv/tool/hdl/sim/sim_vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,12 @@ async def build(self):

async def run(self, args : HdlSim.RunArgs):
cmd = [ os.path.join(self.builddir, "simv") ] # '-batch' ]

if not os.path.isdir(args.rundir):
os.makedirs(args.rundir)
cmd.extend(['-ucli', '-i', 'run.tcl'])

with open("run.tcl", "w") as fp:
with open(os.path.join(args.rundir, "run.tcl"), "w") as fp:
# if args.debug:
# fp.write("if {[catch {vcd file sim.vcd} errmsg]} {\n")
# fp.write(" puts \"Failed to open VCD file: $errmsg\"\n")
Expand Down

0 comments on commit fe59c0f

Please sign in to comment.