The SV Reference manual only gives the list of commands using the irun process but the 3 step process isn't clear.
The steps given in the manual are as follows:
1) ncvlog -sv design_files
ncvlog -sv top.v
2) ncelab ...
It is not clear how the C files are complied and how does the ncvlog know about the compiled C executable?
I greatly appreciate any help regarding this.
If you can, I'd really recommend using the "irun" flow. For this simple example, you need only enter the command line:
irun testit.sv mydpi.c
If you must use the 3-step process, you need to compile your DPI application into a shared library. The default one that ncsim looks for is called "libdpi.so". (If you want to give it a different name, you'll need to use the -sv_lib option to ncsim.)
gcc -shared -I$ldvhome/tools/inca/include -o libdpi.so mydpi.cncvlog -sv testit.svncelab testitncsim testit