Re: [myhdl-list] Re: error message of vpi_control, need help
Brought to you by:
jandecaluwe
From: Chun L. Z. <chu...@ho...> - 2005-01-11 13:52:52
|
Jan, Thank you very much for your kindly help. I resolved the problem finally by upgrading my simulator from Cadence ldv4.1 to ldv5.1. The problem is gone. Rgds -Arnold ----- Original Message ----- From: "Jan Decaluwe" <ja...@ja...> To: <myh...@li...> Sent: Tuesday, December 21, 2004 7:28 PM Subject: [myhdl-list] Re: error message of vpi_control, need help > Chun Lin Zhang wrote: > > > Any other sugguestions? > > Apparently something goes wrong with dynamic linking. > Below I will do some more guesses, but if it doesn't help, > please tar up all files you use in the process and add > an exact description of the operating system you are > using - all to minimize the guess work. > > Are you sure that you use the correct compile/linking > procedure for shared libraries with ncsim? > > One thing I could think of is that you need to use > the flag -export-dynamic with the linker when working > with dynamic libraries. > > The only example you have in the distribution is Icarus, > and Icarus and this may not help you much as Icarus > hides the details of the compile/link process for you. > Therefore, I have attached the makefile for linux that has > been used succesfully to cosimulate with the open > source Verilog simulator cver. That has more > raw details and may help you with compile flags. > > Jan > > -- > Jan Decaluwe - Resources bvba - http://jandecaluwe.com > Losbergenlaan 16, B-3010 Leuven, Belgium > Python is fun, and now you can design hardware with it: > http://jandecaluwe.com/Tools/MyHDL/Overview.html > ---------------------------------------------------------------------------- ---- > # could add to CFLAGS to turn on warnings if you are using gcc > WARNS=-Wall > > # change this path to point to the pli include files directory for cver > INCS=-I$(HOME)/gplcver-1.10f.src/pli_incs > # maybe want -O<something> and/or -g > CFLAGS= -fPIC -Wall -g $(INCS) > LFLAGS= -G -shared -export-dynamic > > # change to your compiler > CC=gcc > > all: myhdl_vpi.so > > myhdl_vpi.o: myhdl_vpi.c > $(CC) $(CFLAGS) -c myhdl_vpi.c > > # make rules for dynamic libaries > myhdl_vpi.so: myhdl_vpi.o > $(LD) $(LFLAGS) myhdl_vpi.o -o myhdl_vpi.so > > |