• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. SystemVerilog DPI in NCSim?

Stats

  • Locked Locked
  • Replies 13
  • Subscribers 64
  • Views 25018
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SystemVerilog DPI in NCSim?

archive
archive over 18 years ago

Hi all, Because it will take some time waiting download IUS583, I tried to use SystemVerilog DPI (mostly imported functions). I heard that Synopsys can simply include C file in file list with SystemVerilog file and run simulation. But Cadence NC seems need C code compile and link to a lib. I have read the NCsim document and find a switch "-sv_lib". But I cannot find a simple example. Is there any step by step tutorial about how to compile, link and run SystemVerilog DPI C file in NCsim? Best regards, Davy


Originally posted in cdnusers.org by davyzhu
  • Cancel
  • archive
    archive over 17 years ago

    Hi vikask,

    Some suggestions listed below:
    1. Please restart another thread to describe your problem.
    2. If the command and environment file can be open to public, please paste it in the post.

    Regards,
    Davy


    Originally posted in cdnusers.org by davyzhu
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    Since this thread has been re-opened, I'd like to mention that Cadence has created a utility called 'irun' (i for Incisive) that is superceding ncsc_run, ncverilog, etc. This utility will allow you to pass in any combination of files that will get compiled correctly based on file name extension, i.e. .vhd, .v, .sv, .c, .cpp. You can also give it command line options either from the 3-step process or the +args from ncverilog.

    So, irun will answer the original question in this thread about being able to pass your DPI code and SV code with one command and have it take care of all the housekeeping.

    Tim


    Originally posted in cdnusers.org by tpylant
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    I have to plan a verification environment where I can use some existing C++ ref Model code.I want to use System C libraries for that purpose. Only confusion I have is that, How can I drive and monitor HDl signals from System C? I saw some posting in cdnusers mentioning SC_MODULE signals being connected to Verilog signals, however, i don't know where to get more on this. A pointer for documentation will be helpful. Also, does this SystemC connectivity comes in NC verilog license? Is this free i.e. comes with NC verilog or need to buy a separate license for doing this. Also, earlier we had testbuilder which worked well with C++ in my earlier company but now I dont see testbuilder anymore. Please help me out in this. Thanks,
    vikas


    Originally posted in cdnusers.org by vikask
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
<

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information