Question regarding simulating the DPI in QuestaSim

Status
Not open for further replies.

rayan123

Newbie level 5
Joined
Nov 24, 2012
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,340
Hi fellas,

I am new to this domain of DPI
I am trying to use DPI function. I have some .v files, .c files, .h files and a .so file.
I compiled .v and .c files using the command vlog -sv -dpiheader <filename_dpi.h> <filename.v> <filename_tb.v> <filename1.c> <filename2.c>

I know that i have to use the .so file in vsim command as it is the shared library.
But i am not getting the how to use it.
Any help in this regard is appreciated.

Thanks
 

The .so file is created by vlog if you use it to compile your C files, and then loaded automatically by vsim.

BTW, you should not use the -sv switch. Instead, use *.sv for SystemVerilog files and keep *.v for Verilog-only files.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…