• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..30-May-2007-

INSTALL.READMEH A D30-May-200786 62

READMEH A D30-May-20073.3 KiB8157

cver.cH A D30-May-2007184.9 KiB5,6574,426

cvmacros.hH A D30-May-200710.1 KiB331129

dig_main.cH A D30-May-2007280 177

gpl_wrhelp.hH A D30-May-200723.8 KiB353348

makefile.amd64H A D30-May-20074.1 KiB15481

makefile.cygwinH A D30-May-20074.1 KiB15481

makefile.freebsdH A D30-May-20073.8 KiB14880

makefile.lnxH A D30-May-20074.1 KiB15481

makefile.osxH A D30-May-20073.8 KiB14881

makefile.sparc-gccH A D30-May-20073.8 KiB14681

systsks.hH A D30-May-20076.1 KiB248170

v.hH A D03-May-2022153.1 KiB3,6812,984

v_acc.cH A D30-May-2007243.6 KiB8,7126,210

v_cnv.cH A D30-May-2007171.5 KiB6,2614,441

v_dbg.cH A D30-May-2007114.3 KiB3,5862,700

v_dbg2.cH A D03-May-2022114.1 KiB3,9592,893

v_del.cH A D30-May-200783.4 KiB2,8642,067

v_ex.cH A D30-May-2007248.6 KiB8,6086,122

v_ex2.cH A D03-May-2022203.9 KiB6,9714,631

v_ex3.cH A D30-May-2007202.2 KiB6,7283,962

v_ex4.cH A D30-May-2007169.4 KiB5,6583,663

v_fx.cH A D03-May-2022233.6 KiB7,8345,217

v_fx2.cH A D30-May-2007259.4 KiB8,8706,234

v_fx3.cH A D30-May-2007198.8 KiB6,7764,850

v_ms.cH A D03-May-2022198.3 KiB7,2725,171

v_prp.cH A D30-May-2007142.3 KiB4,8353,284

v_prp2.cH A D30-May-2007217.5 KiB7,2664,779

v_sdf.cH A D30-May-2007212.2 KiB7,3635,385

v_sim.cH A D30-May-2007222.9 KiB7,1484,374

v_src.cH A D30-May-2007172.1 KiB6,2174,562

v_src2.cH A D30-May-2007136.2 KiB4,9743,466

v_src3.cH A D03-May-2022184.1 KiB6,6244,936

v_tf.cH A D30-May-2007146.1 KiB5,4123,676

v_trch.cH A D30-May-2007144 KiB4,7503,015

v_vpi.cH A D30-May-2007182 KiB6,1274,336

v_vpi2.cH A D30-May-2007194.7 KiB6,8835,042

v_vpi3.cH A D30-May-2007220.8 KiB7,4435,315

veriuser.cH A D17-May-2007252 136

vpiuser.cH A D30-May-2007425 196

INSTALL.README

1
2
3                            INSTALLING CVER
4
5See instructions in the README file.
6

README

1
2       INSTRUCTIONS FOR MAKING CVER BINARY AND PLI OBJECT
3
4
5  The following instructions assume you are compiling with gcc on either
6a X86 Linux, Sparc Solaris, or Mac OSX, Cygwin (here gcc must be named cc).
7If not, see instructions below.
8
9  For X86 Linux, type:
10
11     make -f makefile.lnx all
12
13  For Solaris running Sparc type:
14
15     make -f makefile.sparc-gcc all
16
17  For Apple OSX type:
18
19     make -f makefile.osx all
20
21  For Cygwin:
22
23     make -f makefile.cygwin all
24
25  These commands will build binary cver in ../bin director.  If you type
26"../bin/cver", Cver will print its start up message and then terminate with
27an error saying no Verilog input files specified.  Next step is to run
28install tests in tests_and examples directory.  See README file in top level
29directory and in tests_and_examples directory for instructions.
30
31   To make just Cver type "make -f makefile.[OS]  cver".  Type
32"make -f makefile.[OS] clean" to remove files so you can remake everything.
33
34A. MAKING CVER ON OTHER SYSTEM
35
36   The makefile.lnx make file should work on any non X86 system running
37Linux.  If you are using a different compiler, just edit the various
38compiler , library and LD make variables and options around line 20 of the
39makefile.lnx file.  If you are not linking with GNU ld, you will need to look
40up your linker's partial link options and edit the cverobj dependency line
41linking action.
42
43   For other systems, you will probably need to deal with differences in
44include files and libraries.  There are only five areas that usually
45require changes:
46
47   1) Cver uses dlopen/dlsym dynamic linking to load user PLI dynamic
48      libraries using either the +load_pli1= or +load_vpi= options.
49      The programming interface to dynamic linking loading varies
50      between system.  Therefore to port to another system, you will
51      probably need to add ifdefs that include your system's dlopen and
52      dlsym calls.  Your system will probably follow either the unix
53      (sparc/linux) conventions or the Apple OSX (??) conventions.
54      All dynmaic linking code is at the top of v_vpi.c file
55      mostly in the __process_pli_dynamic_libs routine.
56
57   2) Some of the wide math code depends on byte order of your system. See
58      the definitions of ENDIAN in the v.h file.  It appears that different
59      systems define different ENDIAN constants in different include files.
60      Currently, ifdefs are set up for Linux, Apple OSX and Sparc Solaris.
61
62   3) Signals are needed for Cver debugger.  Do a grep for SIGINT and
63      signal calls to find possible problem areas.
64
65   4) The debugger allows escaping to shell script using fork.  Look
66      at the __escape_to_shell routines in v_dbg.c.  One quick fix for
67      this is to just make __escape_to_shell a dummy empty routine since
68      user can always start a shell script in another window.
69
70   5) Cver has been ported to many systems so it should not be too hard
71      to port to other systems although you may need to add a number of
72      ifdefs for your system.
73
74B. MAKING CVER FOR DEBUGGING
75
76   To make a debugging version of either Cver, you need to edit the make
77   file or make copy of the make file and edit that.  Change your makefile
78   around line 35 to comment out the CFLAGS line that compiles without
79   optimization and uncomment the line thatturns on -g.  Then type "gdb cver"
80   and use gdb run command with normal Cver command line options.
81