Skip to content

Commit

Permalink
Add FST output for GHDL
Browse files Browse the repository at this point in the history
  • Loading branch information
oscargus authored and LarsAsplund committed Nov 2, 2023
1 parent b11da1a commit c140474
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vunit/sim_if/ghdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def add_arguments(parser):
group = parser.add_argument_group("ghdl", description="GHDL specific flags")
group.add_argument(
"--gtkwave-fmt",
choices=["vcd", "ghw"],
choices=["vcd", "fst", "ghw"],
default=None,
help="Save .vcd or .ghw to open in gtkwave",
help="Save .vcd, .fst, or .ghw to open in gtkwave",
)
group.add_argument("--gtkwave-args", default="", help="Arguments to pass to gtkwave")

Expand Down Expand Up @@ -297,6 +297,8 @@ def _get_command(self, config, output_path, elaborate_only, ghdl_e, wave_file):
sim += [f"--wave={wave_file!s}"]
elif self._gtkwave_fmt == "vcd":
sim += [f"--vcd={wave_file!s}"]
elif self._gtkwave_fmt == "fst":
sim += [f"--fst={wave_file!s}"]

if not ghdl_e:
cmd += sim
Expand Down

0 comments on commit c140474

Please sign in to comment.