Jump to content

Two top moudles in vcs? but sYsTeMcToP always run.


Recommended Posts

  • 2 weeks later...

Hi ethanli,

 

          Steps to use VCS, when you want systemc to be instantiated and used are:

 

1)   First compile the systemC files using syscan and on the top module of system C  create a verilog wrapper

      -- example say sc_top is the top system c file

            syscan <   all flags           >  sc_top.cpp:sc_top

       Please note here that sc_top.cpp is wrapped in verilog now with sc_top name, which can be instantiated.

 

2)  use sc_top instance to include in verilog top level, and use -sysc flag on vcs ellaboration to tell that VCS can can expect sysC module inside verilog.

 

 

Thanks,

Piyush

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