Jump to content
Mathieu

Maximum number of SC_MODULE ?

Recommended Posts

Hi,

 

I have an error at runtime that says "in sc_main (argc = Cannot access memory at address 0x....)"

 

I use system 2.2.0 on a 64 bit linux machine.

The problem appears when I try to instanciate 1100 additional sc_modules in my design.

 

I was wondering : is there a maximum number of SC_MODULE ?

Or if someone has any idea about the cause of the problem it would be really great...

 

Thanks,

Mathieu

Share this post


Link to post
Share on other sites

I'm not aware of a maximum number. Normally this kind of problem is related to stack size. If that is the case, then instancing the modules using pointers might be a solution as the memory goes on the heap which can be much bigger.

 

An easy thing to try to test if it's a stack problem is to look at the ulimit settings on your shell in Linux and see if the stack is limited. If it is, try changing it to unlimited.

 

regards

Alan

Share this post


Link to post
Share on other sites

Great, thank you so much Alan !

 

This was exactly the cause of my problem.

I changed the stacksize and it's running fine.

 

Thanks for the pointer solution, I will think about it (hoping it's well supported by the synthesis tool).

I wasn't familiar at all with the stack/heap aspect. I searched for hours, I would never have found.

Thanks again for your help.

 

Regards,

Mathieu

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...