Home > Community > Forums > Functional Verification > Command Line argument for Simulate systemverilog DPI using ncverilog?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Command Line argument for Simulate systemverilog DPI using ncverilog? 

Last post Sun, Apr 7 2013 10:30 PM by Selvavinayak. 2 replies.
Started by Selvavinayak 30 Mar 2013 05:33 AM. Topic has 2 replies and 1727 views
Page 1 of 1 (3 items)
Sort Posts:
  • Sat, Mar 30 2013 5:33 AM

    • Selvavinayak
    • Not Ranked
    • Joined on Thu, May 10 2012
    • chennai, Tamil Nadu
    • Posts 11
    • Points 145
    Command Line argument for Simulate systemverilog DPI using ncverilog? Reply

     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

     

    • Post Points: 20
  • Wed, Apr 3 2013 8:45 AM

    • tpylant
    • Top 50 Contributor
    • Joined on Fri, Jul 11 2008
    • Austin, TX
    • Posts 135
    • Points 2,030
    Re: Command Line argument for Simulate systemverilog DPI using ncverilog? Reply
    Are you getting an error with your command line? 

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

    Tim
    • Post Points: 20
  • Sun, Apr 7 2013 10:30 PM

    • Selvavinayak
    • Not Ranked
    • Joined on Thu, May 10 2012
    • chennai, Tamil Nadu
    • Posts 11
    • Points 145
    Re: Command Line argument for Simulate systemverilog DPI using ncverilog? Reply

    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 

     

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by Selvavinayak at 30 Mar 2013 05:33 AM. Topic has 2 replies.