Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with NVC and the --gui flag #926

Closed
0dinD opened this issue Apr 13, 2023 · 1 comment · Fixed by #930
Closed

Error with NVC and the --gui flag #926

0dinD opened this issue Apr 13, 2023 · 1 comment · Fixed by #930

Comments

@0dinD
Copy link
Contributor

0dinD commented Apr 13, 2023

I just tried the NVC simulator support, which worked well for me (apart from this one issue). NVC seems quite a bit faster than GHDL, so that's awesome!

But there's one error I had to fix when running with the --gui flag:

Traceback (most recent call last):
  File "/home/odin/git/vunit/vunit/test/runner.py", line 244, in _run_test_suite
    results = test_suite.run(output_path=output_path, read_output=read_output)
  File "/home/odin/git/vunit/vunit/test/list.py", line 105, in run
    test_ok = self._test_case.run(*args, **kwargs)
  File "/home/odin/git/vunit/vunit/test/suites.py", line 72, in run
    results = self._run.run(*args, **kwargs)
  File "/home/odin/git/vunit/vunit/test/suites.py", line 178, in run
    sim_ok = self._simulate(output_path)
  File "/home/odin/git/vunit/vunit/test/suites.py", line 237, in _simulate
    return self._simulator_if.simulate(
  File "/home/odin/git/vunit/vunit/sim_if/nvc.py", line 293, in simulate
    stdout.write(f'{" ".join(cmd)}\n')
TypeError: sequence item 1: expected str instance, PosixPath found

The solution I applied was to use [str(wave_file)] instead of [wave_file] here:

cmd = ["gtkwave"] + shlex.split(self._gtkwave_args) + [wave_file]

@umarcor
Copy link
Member

umarcor commented Apr 19, 2023

That's correct. @0dinD do you want to propose a PR?

For reference, in GHDL the Path is converted to str in

data_file_name = str(Path(script_path) / f"wave.{self._gtkwave_fmt!s}")
.

@eine eine modified the milestones: v4.7.0, v4.8.0 Apr 19, 2023
0dinD added a commit to 0dinD/vunit that referenced this issue Apr 23, 2023
eine pushed a commit to 0dinD/vunit that referenced this issue Apr 23, 2023
eine pushed a commit to 0dinD/vunit that referenced this issue Apr 23, 2023
@eine eine closed this as completed in #930 Apr 23, 2023
@eine eine modified the milestones: v4.8.0, v4.7.0 Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants