Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1069

Getting error while running dpi-c functions with SV code

$
0
0

Hi all,

I am first time using dpi-c functions in my sv code.When I am trying to call dpi-c functions within sv code using irun command(irun -sv test_c.c test.sv).I have tried ncverilog,ncelab,ncsim also but I m getting same like this error,

make: *** [INCA_libs/irun.lnx86.15.10.nc/ncsc_run/ncsc_obj/test_c_0.o] Error 1
In file included from /usr/include/features.h:385,
                 from /usr/include/stdio.h:28,
                 from $TESTDIR/test_c.c:1:

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

ncsc_run: *E,TBBLDF: Failed to generate object ./INCA_libs/irun.lnx86.15.10.nc/ncsc_run/ncsc_obj/test_c_0.o

irun: *E,CCERR: Error during cc compilation (status 1), exiting.

Please can anyone  help me to know why this error is coming and what wrong I m doing. And can anyone tell me what are the commands and step by step process to run this two files. 

Below is my C and SV code :

//sv code

1>

module main;
import "DPI-C" function void hello();

initial
begin
print();
end

endmodule

2>

//c code

#include <stdio.h>

void hello() {
printf("hello from c");
}

thanks,

JAY


Viewing all articles
Browse latest Browse all 1069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>