rohd icon indicating copy to clipboard operation
rohd copied to clipboard

WaveDumper outputs empty file when test() {expect()} fails

Open awmoore-intel opened this issue 9 months ago • 1 comments

Describe the bug

I am using the test() { expect () } construct and when the expect throws an exception the resulting wave.vcd is empty. Would be nice to have the waveform without me modifying the test during debug.

To Reproduce

No response

Expected behavior

No response

Actual behavior

No response

Additional: Dart SDK info

No response

Additional: pubspec.yaml


Additional: Context

No response

awmoore-intel avatar Feb 26 '25 21:02 awmoore-intel

Probably related: https://github.com/intel/rohd-vf/issues/61

I think this might be tricky to fix while still using expect infrastructure as-is because I think it basically just kills the test execution, which prevents some graceful shutdowns like ending the simulation and finishing dumping the waveform contents to a file. It would be good to come up with a solution for this that requires minimal change/effort for the user.

mkorbel1 avatar Feb 26 '25 21:02 mkorbel1