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

Questa does not generate vsim.wlf when waves=True #236

Closed
Roenski opened this issue Jun 13, 2023 · 6 comments
Closed

Questa does not generate vsim.wlf when waves=True #236

Roenski opened this issue Jun 13, 2023 · 6 comments

Comments

@Roenski
Copy link

Roenski commented Jun 13, 2023

Hi,

I'm trying to generate a waveform dump without opening the GUI by setting waves=True. For icarus and verilator this has worked fine, but questa does not seem to generate anything.

The problem seems to be with self.do_script defined in simulator.py. If waves=True, it is set as log -recursive /*;. However, at least on my configuration, this script does not generate a vsim.wlf (or any other) file. However, if I set it as log -recursive *;, the file is generated. I.e. removing the forward slash seems to fix it.

I guess there is a slight chance that this is setup-specific? Maybe someone can test it on their machine?

@themperek
Copy link
Owner

log -recursive *; works on my Modelsim.

Do you have some recent versions of Questa?

I propose to change it to log -recursive *; Can you make PR?

One could also change this in cocotb https://github.com/cocotb/cocotb/blob/65090a583040e4d19b4e433f6efeabd579a71f9a/cocotb/share/makefiles/simulators/Makefile.questa#L144C9-L144C26
Since cocotb has Questa in CI if one writes a test to check for this file it would check.

@themperek themperek added the bug Something isn't working label Jun 23, 2023
@Roenski
Copy link
Author

Roenski commented Jun 27, 2023

I have Questa 2017.01, so quite an old one. That's why I wanted to check if it's only my problem.

I can make a PR. Is there a way I can make the test in cocotb and run it, since the CI with Questa is private?

@themperek
Copy link
Owner

If you make a PR to cocotb it will run Questa. You cannot see it but maintainers do.
But how to check that signals are in wlf file?

@Roenski
Copy link
Author

Roenski commented Jun 27, 2023

One test would be that the file gets generated at all.

Second would be to check that signals exist in the file. If the test module is known, it is probably enough to search for one of the signals lowest in the hierarchy. For that there is probably a vsim command, just need to browse through the command reference :)

@themperek
Copy link
Owner

@Roenski

Just found that log -recursive *; is not the same as log -recursive /*;. If I have multiple top design I see only the first one in waveforms in the case of log -recursive *;.

@themperek themperek removed the bug Something isn't working label Jun 30, 2023
@Roenski
Copy link
Author

Roenski commented Aug 15, 2023

Hi, sorry for a bit late reply. I haven't done much to test this further. But, since you found that my suggestion breaks something, then, naturally, it shouldn't be used. Maybe it is just better to leave it as it is. It's not a big task to write custom code for generating the waveform, anyway :)

I close the issue, if it is ok

@Roenski Roenski closed this as completed Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants