From: Alan M. F. <al...@al...> - 2009-11-11 18:20:22
|
Stephen Williams wrote: > It's challenging, but what you do is gdb trace the ivl core program > and break when it loads the target. At that point, gdb should load > the symbols for the loaded module, and the rest should be obvious. v0_8-branch has some features to assist with this. gmake DEBUGFLAGS=-DDEBUG turns on those features. The Icarus Verilog Preprocessor will run and dump its standard output to a file. The command line arguments for ivl will appear on screen. GDB will start automatically, load ivl and stop at the (gdb) prompt. At this point, you will typically set a breakpoint, then run ivl with the arguments that previously appeared. For example: jesus% iverilog-0.8 -v -tfnf -I$DV_ROOT/design/sys/iop/include -cFlist.iop_top -g2 -sOpenSPARCT1 $DV_ROOT/lib/u1/u1.behV $DV_ROOT/design/sys/iop/common/rtl/swrvr_clib.v Icarus Verilog version 0.8.7 Copyright 1998-2009 Stephen Williams ... Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA -v -C/tmp/ivrlh2fbb -C/usr/local/lib/ivl-0.8/fnf.conf -- - translate: /usr/local/lib/ivl-0.8/ivlpp -v -L -D__ICARUS__=1 -f/tmp/ivrlg2fbb -I/space/OpenSPARC/OpenSPARCT1.1.6/design/sys/iop/include >/tmp/ivlpp_stdout Icarus Verilog Preprocessor version 0.8.7 Copyright (c) 1999 Stephen Williams (st...@ic...) ... Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA gdb /usr/local/lib/ivl-0.8/ivl GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. ... This GDB was configured as "sparc-sun-solaris2.10"... (gdb) run -v -C/tmp/ivrlh2fbb -C/usr/local/lib/ivl-0.8/fnf.conf -- - </tmp/ivlpp_stdout Starting program: /usr/local/lib/ivl-0.8/ivl -v -C/tmp/ivrlh2fbb -C/usr/local/lib/ivl-0.8/fnf.conf -- - </tmp/ivlpp_stdout warning: Temporarily disabling breakpoints for unloaded shared library "/usr/lib/ld.so.1" warning: Lowest section in /lib/libdl.so.1 is .hash at 000000b4 /usr/local/lib/ivl-0.8/system.sft: Processing System Function Table file. Using language generation: IEEE1364-2001 ... -- *Alan Feldstein* Architectural Verification Engineer, Cosmic Horizon <http://www.alanfeldstein.com/> al...@al... <mailto:al...@al...> *http://www.linkedin.com/in/feldstein* work: +1 585 415 6682 See who we know in common <http://www.linkedin.com/e/wwk/1301367/> Want a signature like this? <http://www.linkedin.com/e/sig/1301367/> |