Re: [myhdl-list] Developing PLI module for cosimulation with VCS
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2012-05-11 20:15:35
|
On 5/11/12 2:44 PM, James Lee wrote: > No luck with 0.8 either, I tried cver, icarus, and modelsim. > > Maybe I'm not compiling it for VCS correctly? All I'm doing is changing > cver/myhdl_vpi.c to include "vcs_vpi_user.h" instead of "cv_vpi_user.h", > and changing the include path in the Linux makefile to point to the VCS > include directory. After that, I just compile the module into a .so and > link that into VCS by using the -load myhdl_vpi.so:myhdl_register +vpi > options, if anyone if familiar with VCS. > That sounds about right, if it is compiling and you don't' see any errors in VCS when you import the foreign interface, it "should" work. Sorry I don't have any suggestions for debugging the interfaces also. You do have to be careful for 64bit vs. 32bit but you will (should) get an error when importing if they don't match. I don't know enough (off the top of my head) about VCS or have access to VCS to be much use. Regards, Chris |