~ubuntu-branches/ubuntu/precise/verilator/precise

« back to all changes in this revision

Viewing changes to README

  • Committer: Bazaar Package Importer
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2010-11-07 10:32:20 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20101107103220-lm8xa69w6kbxt3z5
Tags: 3.805-1
* New upstream release.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
    *   If you will be using SystemC (vs straight C++ output), download
65
65
        SystemC 2.0.1 from <http://www.systemc.org>. Follow their
66
 
        installation instructions. As described in the System-Perl README,
67
 
        you will need to set SYSTEMC and/or SYSTEMC_KIT to point to this
68
 
        download. Also, set SYSTEMC_ARCH to the architecture name you used
69
 
        with SystemC, generally 'linux' or 'cygwin'.
 
66
        installation instructions. You will need to set the SYSTEMC
 
67
        environment variable to point to this download. Also, setenv
 
68
        SYSTEMC_ARCH to the architecture name you used with SystemC,
 
69
        generally 'linux' or 'cygwin'.
70
70
 
71
 
    *   If you will be using SystemPerl or coverage, download and install
72
 
        Verilog-Perl, <http://www.veripool.org/verilog-perl>.
 
71
        Verilator assumes you did a make in the SystemC kit directory and
 
72
        SYSTEMC points to that directory. There must be appropriate files in
 
73
        "$SYSTEMC/include" and "$SYSTEMC/lib-linux" for SystemC compilation
 
74
        to work.
73
75
 
74
76
    *   If you will be using SystemPerl or coverage, download and install
75
77
        System-Perl, <http://www.veripool.org/systemperl>. Note you'll need
84
86
 
85
87
        Our personal favorite is to always run Verilator from the kit
86
88
        directory. This allows the easiest experimentation and upgrading.
87
 
        It's also how most EDA tools operate; you just point to the tarball.
 
89
        It's also how most EDA tools operate; to run any of them you point
 
90
        to the tarball.
88
91
 
89
92
            export VERILATOR_ROOT=`pwd`   # if your shell is bash
90
93
            setenv VERILATOR_ROOT `pwd`   # if your shell is csh
104
107
            unsetenv VERILATOR_ROOT   # if your shell is csh
105
108
            ./configure --prefix /opt/verilator-VERSION
106
109
 
107
 
        Finally, if you are configuring Verilator to be part of a RPM or
108
 
        other distribution package system, you may want to tune the various
109
 
        install directories and use the --enable-defenv configure flag. This
110
 
        will take the current value of VERILATOR_ROOT, SYSTEMC,
111
 
        SYSTEMC_ARCH, SYSTEMPERL, and SYSTEMPERL_INCLUDE and build them as
112
 
        defaults into the executable.
 
110
        Note Verilator builds the current value of VERILATOR_ROOT, SYSTEMC,
 
111
        SYSTEMC_ARCH, SYSTEMPERL, and SYSTEMPERL_INCLUDE as defaults into
 
112
        the executable, so try to have them correct before configuring.
113
113
 
114
114
    *   Type "make" to compile Verilator.
115
115
 
123
123
        verilated.h to change the typedef to work, probably to @samp{typedef
124
124
        unsigned long uint32_t;}.
125
125
 
126
 
    *   If you used the VERILATOR_ROOT sheme you're done. Programs should
 
126
    *   If you used the VERILATOR_ROOT scheme you're done. Programs should
127
127
        set the environment variable VERILATOR_ROOT to point to this
128
128
        distribution, then execute $VERILATOR_ROOT/bin/verilator, which will
129
129
        find the path to all needed files.
130
130
 
131
 
        If you used the prefix scheme, now do a "make install".
132
 
 
133
 
        Verilator assumes you did a make in the SystemC kit directory. If
134
 
        not, you will need to populate "$SYSTEMC/include" and
135
 
        "$SYSTEMC/lib-linux" appropriately.
 
131
        If you used the prefix scheme, now do a "make install". To run
 
132
        verilator, have the verilator binary directory in your PATH (this
 
133
        should already be true if using the default configure), and make
 
134
        sure VERILATOR_ROOT is not set.
136
135
 
137
136
USAGE DOCUMENTATION
138
137