-
Notifications
You must be signed in to change notification settings - Fork 73
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
[Uncertain]Incorrect behavior of non-blocking assignment in simulation result #79
Comments
Thank you for filing this! It's surprising to see this behavior reported, since I thought unit tests covered this quite well. I'll take a closer look, try to reproduce, and keep this ticket updated on findings. |
@mkorbel1 I was trying to write the rohd version of MovingSum3 example in chisel as self-learning, and I found this bug. |
I believe this is a real critical bug, thank you for finding and reporting it! Under certain situations, such as the one you wrote, signals can pass straight through rather than be properly sampled on edges. I used your example code to add a new test that confirms a fix and will protect this functionality. Let me know if the changes in #80 resolve your issue! I plan on merging it in later today. |
@mkorbel1 Thank you. It resolved my issue. |
Describe the bug
The waveform generated by the ROHD simulator doesn't have same behavior like other simulators such as modelsim.
I need some helps to clarify this bug.
To Reproduce
Full dart code file
delay_signal.txt
Please change the file extension to dart.
Core part:
Steps to reproduce the behavior:
Expected behavior
The input value should be appeared in the out value after few clock cycles.
Generated systemverilog:
modelsim/others result: <- Correct result


ROHD result:
Actual behavior
The out value directly equal to the input val at the first positive edge.
Additional details
Please paste the output of
dart --version
Please paste the contents of your pubspec.yaml file and identify the version of ROHD you're using
The text was updated successfully, but these errors were encountered: