rezgar Posted February 4 Report Share Posted February 4 Dear all, I have an architecture developed in the open source SystemC 2.34 available in https://forums.accellera.org/ using visual studio. I have written the test bench for the architecture. when I enlarge the test data without cahnging code including processes, threads and dimensions of architecture, I reach access violation error in "sc_process.h" in below line" (m_semantics_host_p->*m_semantics_method_p)(); Please let me know if you have any idea for this problem. Thanks. Quote Link to comment Share on other sites More sharing options...
Eyck Posted February 4 Report Share Posted February 4 Looks like you pass a temporary to the SystemC kernel so that the sc_module and the method does not exist anymore when the kernel wants to invoke it. Quote Link to comment Share on other sites More sharing options...
rezgar Posted February 4 Author Report Share Posted February 4 Thanks @Eyck. I don't think so. The code is the same as I work with smaller test data in the testbench. If it is the problem, why it works for smaller data. Quote Link to comment Share on other sites More sharing options...
karthickg Posted February 4 Report Share Posted February 4 2 hours ago, rezgar said: Thanks @Eyck. I don't think so. The code is the same as I work with smaller test data in the testbench. If it is the problem, why it works for smaller data. 🙂 No one can answer that. It may work for multitude of reasons. A successful execution doesn't mean absence of bugs - however a failure does imply presence of a bug. You have specified the line in SystemC header that is crashing - but not given more details on your own code. Perhaps you feel the bug is in that place. This is possible, but very improbable. Most likely, as Ecyk said, the issue is with your code. Unless you can share that, it is not possible to anyone to help. Quote Link to comment Share on other sites More sharing options...
rezgar Posted February 5 Author Report Share Posted February 5 Dear karthickg, The problem was the constraints on the stack volume of threads in SystemC. So the problem was solved by below command in the constructor of the module. set_stack_size(2097152); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.