|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 30-May-2007 | - |
| INSTALL.README | H A D | 30-May-2007 | 86 | 6 | 2 |
| README | H A D | 30-May-2007 | 3.3 KiB | 81 | 57 |
| cver.c | H A D | 30-May-2007 | 184.9 KiB | 5,657 | 4,426 |
| cvmacros.h | H A D | 30-May-2007 | 10.1 KiB | 331 | 129 |
| dig_main.c | H A D | 30-May-2007 | 280 | 17 | 7 |
| gpl_wrhelp.h | H A D | 30-May-2007 | 23.8 KiB | 353 | 348 |
| makefile.amd64 | H A D | 30-May-2007 | 4.1 KiB | 154 | 81 |
| makefile.cygwin | H A D | 30-May-2007 | 4.1 KiB | 154 | 81 |
| makefile.freebsd | H A D | 30-May-2007 | 3.8 KiB | 148 | 80 |
| makefile.lnx | H A D | 30-May-2007 | 4.1 KiB | 154 | 81 |
| makefile.osx | H A D | 30-May-2007 | 3.8 KiB | 148 | 81 |
| makefile.sparc-gcc | H A D | 30-May-2007 | 3.8 KiB | 146 | 81 |
| systsks.h | H A D | 30-May-2007 | 6.1 KiB | 248 | 170 |
| v.h | H A D | 03-May-2022 | 153.1 KiB | 3,681 | 2,984 |
| v_acc.c | H A D | 30-May-2007 | 243.6 KiB | 8,712 | 6,210 |
| v_cnv.c | H A D | 30-May-2007 | 171.5 KiB | 6,261 | 4,441 |
| v_dbg.c | H A D | 30-May-2007 | 114.3 KiB | 3,586 | 2,700 |
| v_dbg2.c | H A D | 03-May-2022 | 114.1 KiB | 3,959 | 2,893 |
| v_del.c | H A D | 30-May-2007 | 83.4 KiB | 2,864 | 2,067 |
| v_ex.c | H A D | 30-May-2007 | 248.6 KiB | 8,608 | 6,122 |
| v_ex2.c | H A D | 03-May-2022 | 203.9 KiB | 6,971 | 4,631 |
| v_ex3.c | H A D | 30-May-2007 | 202.2 KiB | 6,728 | 3,962 |
| v_ex4.c | H A D | 30-May-2007 | 169.4 KiB | 5,658 | 3,663 |
| v_fx.c | H A D | 03-May-2022 | 233.6 KiB | 7,834 | 5,217 |
| v_fx2.c | H A D | 30-May-2007 | 259.4 KiB | 8,870 | 6,234 |
| v_fx3.c | H A D | 30-May-2007 | 198.8 KiB | 6,776 | 4,850 |
| v_ms.c | H A D | 03-May-2022 | 198.3 KiB | 7,272 | 5,171 |
| v_prp.c | H A D | 30-May-2007 | 142.3 KiB | 4,835 | 3,284 |
| v_prp2.c | H A D | 30-May-2007 | 217.5 KiB | 7,266 | 4,779 |
| v_sdf.c | H A D | 30-May-2007 | 212.2 KiB | 7,363 | 5,385 |
| v_sim.c | H A D | 30-May-2007 | 222.9 KiB | 7,148 | 4,374 |
| v_src.c | H A D | 30-May-2007 | 172.1 KiB | 6,217 | 4,562 |
| v_src2.c | H A D | 30-May-2007 | 136.2 KiB | 4,974 | 3,466 |
| v_src3.c | H A D | 03-May-2022 | 184.1 KiB | 6,624 | 4,936 |
| v_tf.c | H A D | 30-May-2007 | 146.1 KiB | 5,412 | 3,676 |
| v_trch.c | H A D | 30-May-2007 | 144 KiB | 4,750 | 3,015 |
| v_vpi.c | H A D | 30-May-2007 | 182 KiB | 6,127 | 4,336 |
| v_vpi2.c | H A D | 30-May-2007 | 194.7 KiB | 6,883 | 5,042 |
| v_vpi3.c | H A D | 30-May-2007 | 220.8 KiB | 7,443 | 5,315 |
| veriuser.c | H A D | 17-May-2007 | 252 | 13 | 6 |
| vpiuser.c | H A D | 30-May-2007 | 425 | 19 | 6 |
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