-
Notifications
You must be signed in to change notification settings - Fork 175
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
add event variables to vcd #431
Comments
I agree that functionality similar to what you propose can be useful. However, at the moment I find it more important to have feature parity between pysim and cxxsim, and cxxsim's model (where the VCD file is written in C++ code) does not easily admit this feature. Because of this I have no immediate plans to introduce extensions like this one. We can revisit this feature once cxxsim stabilizes and once someone proposes a good way to integrate it in both simulators. |
additional comments: |
@programmerjake Would it help if you were able to print debug messages, similar to Verilog's |
I think we could hack something so that |
I would think events would be pretty easy to add -- all you need is to create the additional vcd vars and then tell the c++ vcd writer to write an event to a specified var -- basically a message-less $display associated with a variable. it would use basically the same mechanism that $display might. I can try my hand at it if you like |
So, currently you can't do that. The C++ VCD writer is sampling the state of the simulation--the inverse of the way it's done in pysim. It's not really clear to me at the moment how to add support for either |
Here's my proposal: once |
Reopening since |
This would need to go through an RFC these days, and it also seems unlikely that the issue author still needs it. |
it would be quite useful to be able to output
event
variables to vcd since that can be used for debugging, allowing an indication of when a process does something. They have no effect on the simulation.I'm planning on using this functionality to indicate when all the signal values are read in test cases.
example nmigen API:
usage:
The text was updated successfully, but these errors were encountered: