ethanli Posted October 29, 2013 Report Share Posted October 29, 2013 Hi, I have one SystemC module which is instatiated in my top verilog file. vcs always creates a sYsTeMcToP module for me and simv will just run sc_main() and ignore my own verilog top module. How can I remove sc_main() module and use my own verilog top module instead? Thanks, Quote Link to comment Share on other sites More sharing options...
psukhija Posted November 11, 2013 Report Share Posted November 11, 2013 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 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.