• 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. Command Line argument for Simulate systemverilog DPI using...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 65
  • Views 15549
  • 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

Command Line argument for Simulate systemverilog DPI using ncverilog?

Selvavinayak
Selvavinayak over 12 years ago

 Hi all,

   i am getting stuck on simulating systemverilog code in cadence... DPI related systemverilog code is running under some other tool I need to run that code in cadence.  

   I compile systemverilog[*.sv] and *.CPP file using following command.

system verilog :

     ncverilog +define+$testcase+$mode +sv -f compile_list.f +ncdpiheader+dpi.h +elaborate +ncelabargs+-messages

     =>dpi.h is created...

 CPP:

     g++ -g -march=x86-64 -Wall -O2 -fPIC -I../cpp -include../dpi.h -I/`ncroot`/tools/inca/include -c $(sources_cpp) -DCADENCE

     g++ -march=x86-64 -shared *.o -o $(TARGET)

 $(TARGET) => shared library file *.so

Simulation:

    in simulation i need to include that above shared library *.so

    what is the command line  argument for simulate

     => ncsim +sv_lib=../*.so +access+r+w +ncsimargs+"-sv_root ./" .?....

note: I refered ncsim and ncverilog user guide which is in toolchain but i am not getting a solution...

Kindly help to direct me in right way for get a solution.....

Thanks,

selvavinayakam.na

 

  • Cancel
  • tpylant
    tpylant over 12 years ago
    Are you getting an error with your command line? 

    You can try "+sv_root=.. +sv_lib=*.so".

    Tim
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Selvavinayak
    Selvavinayak over 12 years ago

    Hi Tim 

    Thanks for your response,

        now i am able to run my code in cadence ncsim simulator using single step command [irun]...

     Thanks,

    selvavinayakam.na 

     

    • 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