OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.5/] [doc/] [INSTALL.txt] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 wfjm
# $Id: INSTALL.txt 317 2010-07-22 19:36:56Z mueller $
2
 
3
Guide to install and build w11a
4
 
5
  Table of content:
6
 
7
  1. Download
8
  2. Install and setup the build system
9
  3. Compile UNISIM/SIMPRIM libraries for ghdl
10
  4. The build system
11
  5. Building test benches
12
  6. Building systems
13
 
14
 
15
1. Download ---------------------------------------------------------------
16
 
17
  All instructions below assume that the project files reside in a
18
  working directory with the name represented as 
19
 
20
  To download latest tagged version (V0.5) of w11a
21
 
22
    cd 
23
    svn co http://opencores.org/ocsvn/w11/w11/tags/w11a_V0.5
24
 
25
  To download latest snapshot of trunk
26
 
27
    cd 
28
    svn co http://opencores.org/ocsvn/w11/w11/trunk
29
 
30
2. Install and setup the build system -------------------------------------
31
 
32
  The build system for test benches and systems requires
33
  - the definition of the environment variable RETROBASE
34
  - that the tools binary directory is in the path
35
 
36
  For bash and alike use
37
 
38
    export RETROBASE=
39
    export PATH=$PATH:$RETROBASE/tools/bin
40
 
41
  After that building functional model based test benches will work. If you
42
  want to also build post-xst or post-par test benches read next section.
43
 
44
3. Compile UNISIM/SIMPRIM libraries for ghdl ------------------------------
45
 
46
  The build system for test benches also supports test benches run against
47
  the gate level models derived after the xst, map or par step. In this
48
  case ghdl has to link against a compiled UNISIM or SIMPRIM library.
49
 
50
  To make handling of the parallel installion of several WebPack versions
51
  easy the compiled libraries are stored in sub-directories under $XILINX:
52
 
53
     $XILINX/ghdl/unisim
54
     $XILINX/ghdl/simprim
55
 
56
  Two helper scripts will create these libraries:
57
 
58
    
59
 
60
    cd $RETROBASE
61
    xilinx_ghdl_unisim
62
    xilinx_ghdl_simprim
63
 
64
  If you have several WebPack versions installed, repeat for each version.
65
 
66
 
67
4. The build system -------------------------------------------------------
68
 
69
  Simulation and synthesis tools usually need a list of the VHDL source
70
  files, often in proper compilation order (libraries before components).
71
  The different tools have different formats of these 'project files'.
72
 
73
  The build system employed in this project is based on
74
     "VHDL bill of material" or 'vbom' files
75
  which list for each vhdl source file the libraries and sources for
76
  the instantiated components, the later via their vbom, and last but
77
  not least the name of the vhdl source file. All file name are relative
78
  to the current directory. A recursive traversal through all vbom's gives
79
  for each vhld module all sources needed to compile it. The vbomconv script
80
  in tools/bin does this, and generates depending on options
81
   - make dependency files
82
   - ISE xst project files
83
   - ISE ISim project files
84
   - ghdl commands for analysis, inspection and make step
85
 
86
  The master make files contain pattern rules like
87
    %.ngc  : %.vbom           -- synthesize with xst
88
    %      : %.vbom           -- build functional model test bench
89
  which encapsulate all the vbomconf magic
90
 
91
  A full w11a is build from more than 80 source files, test benches from
92
  even more. Using the vbom's a large number of designs can be easily
93
  maintained.
94
 
95
5. Building test benches --------------------------------------------------
96
 
97
  To compile a test bench named  all is needed is
98
 
99
    make 
100
 
101
  The make file will use .vbom, create all make dependency files,
102
  and generate the needed ghdl commands.
103
 
104
  In many cases the test benches can also be compiled against the gate
105
  level models derived after the xst, map or par step. To compile them
106
 
107
    make ghdl_tmp_clean
108
    make _ssim                  # for post-xst
109
    make _fsim                  # for post-map
110
    make _tsim                  # for post-par
111
 
112
  The 'make ghdl_tmp_clean' is needed to flush the ghdl work area from
113
  the compilation remains of earlier functional model compiles.
114
 
115
6. Building systems -------------------------------------------------------
116
 
117
  To generate a bit file for a system named  all is needed is
118
 
119
    make .bit
120
 
121
  The make file will use .vbom, create all make dependency files, build
122
  the ucf file with cpp, and run the synthesis flow (xst, ngdbuild, par, trce).
123
  The log files will be named
124
 
125
      _xst.log        # xst log file
126
      _tra.log        # translate (ngdbuild) log file (renamed %.bld)
127
      _map.log        # map log file                  (renamed %_map.mrp)
128
      _par.log        # par log file                  (renamed %.par)
129
      _pad.log        # pad file                      (renamed %_pad.txt)
130
      _twr.log        # trce log file                 (renamed %.twr)
131
 
132
  To load the bitfile with WebPack impact into the target board use
133
 
134
    make .impact
135
 
136
  If only the xst or par output is wanted just use
137
 
138
    make .ngc
139
    make .ncd

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.