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
simple sample doesn't poduce trace when using systemc 2.3 #1445
Comments
Original Redmine Comment This may be same problem as Issue #1307, since I build SystemC 2.3.3 with CMAKE. |
Original Redmine Comment Sounds same as #�. I use 2.3.3 for all testing and do not see this problem, if you can figure it out please post. |
Original Redmine Comment Comparing configure vs. CMAKE (details see attached file):
|
Original Redmine Comment OS & compiler used in report:
URL to reference data/project somehow was lost as I see now. Sorry for that - here it is (feel free to use!) : https://github.com/mzau/systemcsample One can find the files mentioned in the last comments there. |
Original Redmine Comment Looks like you've made some good progress debugging, can you please continue and get it to a patch to fix the issue? |
Original Redmine Comment Martin Zaun wrote:
same behavior reproduced with verilator 4.014 (stable branch from git.veripool.org) |
Original Redmine Comment Note this is waiting for a patch from someone, as CMAKE isn't the standard flow. |
Original Redmine Comment Simple workaround With make edit_cache I set
(which is set to ON by default) Than the trace will be generated. Basically in
SC_SIMCONTEXT_TRACING needs to be set to 1 to call trace_cycle, but is set to 0, if the default cmake configuration is used, thus not calling trace_cycle. |
Original Redmine Comment Thanks for debugging. Not sure who gave the code to set SC_SIMCONTEXT_TRACING, recommend you feed that back upstream to who it came from. As the SystemC building is outside of Verilator, don't think Verilator itself has anything here to fix (correct me if I missed something). |
Original Redmine Comment Wilson Snyder wrote:
SC_SIMCONTEXT_TRACING_ is controlled by SC_ENABLE_SIMULATION_PHASE_CALLBACKS_TRACING which on his part is set in the in CMakeLists.txt on behalf of ENABLE_PHASE_CALLBACKS_TRACING. Should be solved on the SystemC side on my opinion. I agree, that no fix is needed on Verilator. Thanks for this great tool! |
Author Name: Martin Zaun
Original Redmine Issue: 1445 from https://www.veripool.org
If you want to run them, don't forget to ajust the environment variables according your systemc installation.
properly producing a trace. You may view it with
but (don't forget to delete obj_dir)
also is running seamlessly, but thre produced trace.vcd doesn't contain trace data!
The text was updated successfully, but these errors were encountered: