fattah.mohammad Posted December 9, 2012 Report Share Posted December 9, 2012 Hello everybody! I am working on a SystemC code while I am quite an amatour. When I increase size of my system under simulation beyond a specific size (like more than 100 elements) the microsoft visual studio encounters access violation run-time error in sc_cor_pkg_fiber::yield function at first cycles of simulation I have absolutely no idea about the problem. Billions of thanks in advance! Quote Link to comment Share on other sites More sharing options...
apfitch Posted December 9, 2012 Report Share Posted December 9, 2012 Are you declaring large data structures (e.g. arrays) inside SC_THREADs? That can cause you to run out of stack space in the SC_THREADs. If you are, then re-write the arrays to be dynamically allocated using pointers. regards Alan fattah.mohammad 1 Quote Link to comment Share on other sites More sharing options...
fattah.mohammad Posted December 10, 2012 Author Report Share Posted December 10, 2012 Thanks Alan, I think it is the number of threads, not the arras I use inside them. Do you know how to increase the stack size in Visual Studio. I did according to: http://msdn.microsof...s(v=vs.71).aspx but it doesn't seem to work. thanks Quote Link to comment Share on other sites More sharing options...
apfitch Posted December 10, 2012 Report Share Posted December 10, 2012 You should be able to increase the Visual Studio stack with /Zm (from memory). You can increase the SC_THREAD stack size with the set_stack_size() method of SystemC - but if that works, I would still suspect you are declaring large stack allocated arrays in the SC_THREADs. Alan fattah.mohammad 1 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.