hi,
I am using OVM for verification of SoC. I want to make system call through systemverilog.
I intend to call matlab through system call like,
system(“MATLAB…”); .
Can someone suggest me how should I do that??
I thought using Direct Programming Interface (DPI) , I can make system call in C. But I could not compile systemverilog and C code together.
Can someone give an example of DPI with steps to compile both ie. systemverilog and C code together so that they are linked together.
I even donot know if I can make system call using C through DPI.
3. Can someone confirm that?
On DPI examples - check out your tool install dir, there are usually several examples. If you still have issues, post code here, someone may be able to help.
Can someone give an example of DPI with steps to compile both ie. systemverilog and C code together so that they are linked together.
If you are using Questasim use the following commands.
vlog dut.sv (compile your Systemverilog file)
gcc -shared -Bsymbolic -o imports.so imports.c (Compiles C code)
vsim -sv_lib imports top -do <do_file> (Invoke the simulation)
For detailed description go through the help in questasim and refer “questasim_afv_user.pdf” document and Section Appendix D.
Can someone give an example of DPI with steps to compile both ie. systemverilog and C code together so that they are linked together.