[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: iverilog & systemC



Dan,
Yes , I have also recompile iverilog.
Michel

Dan McMahill wrote:

have you also recompiled iverilog after the gcc upgrade? I'm not sure
if you can use a 3.2.3 compiled shared object with a 2.95.3 compiled
program.

-Dan

On Wed, Jan 07, 2004 at 10:04:35AM +0000, michel.agoyan wrote:

Hi,
First, happy new year !

Few months ago, I have written a simple bus model using systemC and I also have done the connection to iverilog using the VPI interface.

Recently I have upgraded gcc (2.95.3 -> 3.2.3) . The model as a standalone application works well but when I try to use it with iverilog it crashes with a segmentation error !

I use iverilog-vpi to compile the shared library (apb.vpi) :

iverilog-vpi --name=apb -lsystemc -lm vpi_user.c scib_tvm_vpi.c apb.o

scib_tvm-vpi.c is the wrapper between the systemC model and vpi

apb.o is the systemC model of the bus built using the command :
g++ -O3 -fPIC -c -Wall -Wno-deprecated -I. -I/usr/local/systemc-2.0.1/include -L. -L/usr/local/systemc-2.0.1/lib-linux -o apb.o sc_main.cc 2>&1 | c++filt

The objects that form the model of the bus are global.

Any Idea that can help me ?

Regards

----------------------------------------------------------------------------
Michel Agoyan
Silicon Design & Architecture

GEMPLUS La Vigie
Avenue du Jujubier
ZI Ath?lia IV
13705 LA CIOTAT C?dex - France

Tel : +33 4 42 36 69 03
Fax : +33 4 42 36 55 46
Email : michel.agoyan@gemplus.com
----------------------------------------------------------------------------