Jump to content

Creating an array of sc_modules that is synthesizable


Recommended Posts


I am trying to create an array of sc_modules in systemc, but I need the code to be synthesizable. 
If the code wasn't for synthesis a pointer array or an sc_vector would be okay for creating the modules. But how would you create a set number of modules if it is for synthesis?
Thanks in advance!

Link to comment
Share on other sites

16 hours ago, David Black said:

This is highly dependent on your synthesis vendor's support. Please ask the vendor.

Worst case you could probably use something like m4 to do the job.


Thanks for the answer! I am using vivado hls and as far as I know the only way to initialize modules is this way:
Mymodule m;
SC_CTOR(Mymodule2): m("m"){

I don't see a way of initialising an array with this limitation. 
Also may I ask what is m4? Thanks!

Link to comment
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.

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...