[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-user: iverilog & systemC
- To: geda-user@seul.org
- Subject: gEDA-user: iverilog & systemC
- From: "michel.agoyan" <Michel.AGOYAN@gemplus.com>
- Date: Wed, 07 Jan 2004 10:04:35 +0000
- Delivered-to: archiver@seul.org
- Delivered-to: geda-user-outgoing@seul.org
- Delivered-to: geda-user@seul.org
- Delivery-date: Wed, 07 Jan 2004 04:06:18 -0500
- Reply-to: geda-user@seul.org
- Sender: owner-geda-user@seul.org
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313
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
----------------------------------------------------------------------------