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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.74/] [doc/] [man/] [man5/] [vbom.5] - Blame information for rev 29

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 wfjm
.\"  -*- nroff -*-
2 29 wfjm
.\"  $Id: vbom.5 646 2015-02-15 12:04:55Z mueller $
3 8 wfjm
.\"
4 29 wfjm
.\" Copyright 2010-2015 by Walter F.J. Mueller 
5 8 wfjm
.\"
6
.\" ------------------------------------------------------------------
7
.
8 29 wfjm
.TH VBOM 2015-02-15 "Retro Project" "Retro Project Manual"
9 8 wfjm
.\" ------------------------------------------------------------------
10
.SH NAME
11 23 wfjm
vbom \- vhdl manifest file format - 'vhdl bill of material'
12 8 wfjm
.
13
.\" ------------------------------------------------------------------
14
.SH DESCRIPTION
15 23 wfjm
\fBvbom\fP files describe the sources needed to build a \fIvhdl\fP
16
entity. The source files are either given directly in case of libraries
17
or via other \fBvbom\fP's in case of instantiated components.
18 22 wfjm
They are used by \fBvbomconv\fP(1) to build project descriptions
19
for synthesis and simulation tools.
20 8 wfjm
 
21 23 wfjm
\fBvbomconv\fP expects that the entries in the \fBvbom\fP's
22
are ordered, libraries first, than the components in the order they are
23
instantiated, finally the name of the associated source file.
24
 
25
The format has five types of lines:
26 8 wfjm
.
27
.\" ----------------------------------------------
28 23 wfjm
.IP \fBComments\fP 4
29
Each line starting with '\fB#\fP' is treated as comment and ignored.
30 8 wfjm
.
31
.\" ----------------------------------------------
32 23 wfjm
.IP "\fBFile names\fP"
33
Either source files or nested \fBvbom\fP's. The file names  must be given
34
as relative path name from the directory the \fBvbom\fP file is located in.
35
Absolute path names are not allowed, nor is expansion of environment variables.
36
 
37
Currently three file types are accepted:
38
.RS
39
.IP "\fB.vbom\fP" 6
40
refers to a nested \fBvbom\fP. Usually used for instantiated components.
41 8 wfjm
.
42 23 wfjm
.IP "\fB.vhd\fP"
43
refers to a source file. Usually used for libraries refered to in 'use'
44
clauses, and as last file, the source file of the entity which is
45
described by this \fBvbom\fP file.
46
.
47
.IP "\fB.c\fP"
48
refers to the C source which implements a \fIvhdl\fP function or procedure
49
via the \fIvhpi\fP mechanism. Supported only in conjunction with \fBghdl\fP.
50
.
51
.RE
52
.
53
.
54 8 wfjm
.\" ----------------------------------------------
55 23 wfjm
.IP "\fBConditional file names\fP"
56
File names can be preceeded by a condition prefix of the form
57
 
58
.EX
59
   [\fItag\fP]filename
60
   [\fItag\fP,\fItag\fP,...]filename
61
.EE
62
 
63
The main purpose of this mechanism is to handle libraries and components
64
which are only refered in
65
.EX
66
    -- synthesis translate_off
67
    -- synthesis translate_on
68
.EE
69
sections and are used only for simulation.
70
 
71
Currently supported \fItag\fP names are
72
.RS
73
.RS 3
74
.PD 0
75 29 wfjm
.IP "\fBghdl\fP" 6
76
included in conjunction with ghdl simulation
77 23 wfjm
.IP "\fBxst\fP" 6
78 29 wfjm
included in conjunction with ISE xst synthesis
79
.IP "\fBisim\fP" 6
80
included in conjunction with ISE ISim simulation
81
.IP "\fBvsyn\fP" 6
82
included in conjunction with Vivado synthesis
83
.IP "\fBvsim\fP" 6
84
included in conjunction with Vivado simulation
85
.IP "\fBsim\fP" 6
86
included in conjunction with simulation (ghdl,isim,vsim)
87 23 wfjm
.PD
88
.RE
89
.RE
90
.
91
.\" ----------------------------------------------
92
.IP "\fBLogical names\fP"
93 8 wfjm
A logical name can be defined with
94
.EX
95
     = 
96
.EE
97
The first definition of a logical name encountered in the traversal of the
98 23 wfjm
\fBvbom\fP's by \fBvbomconv\fP(1) is taken, all later definitions are ignored.
99 8 wfjm
 
100
A logical name can be used with
101
.EX
102
     : 
103
.EE
104 23 wfjm
The filename in the usage clause is the default used in case the
105
logical name wasn't defined before it is used.
106 8 wfjm
 
107 22 wfjm
Again, the filenames, either of type \fI.vhd\fP or \fI.vbom\fP ,
108 23 wfjm
must be given as relative path name from the directory the \fBvbom\fP
109 8 wfjm
file is located in.
110
 
111
.\" ----------------------------------------------
112 23 wfjm
.IP \fBDirectives\fP
113
Directives start with a '\fB@\fP', currently implemented are:
114
.RS
115
.IP "\fB@top\fP:\fIname\fP" 4
116
Specifies the top level design name. Mainly used when it is different
117
from the stem of the \fBvbom\fP file name.
118 8 wfjm
.
119 23 wfjm
.IP "\fB@lib\fP:\fIname\fP"
120
Specifies an additional system library. Allowed values for \fIname\fP are
121 29 wfjm
\fIunisim\fP, \fIunimacro\fP and \fIsimprim\fP.
122
Currently used to generate the appropriate -L options for \fBghdl\fP commands,
123
e.g. generated by the \fBvbomconv\fP action \fB\-\-ghdl_m\fP.
124 23 wfjm
.
125
.IP "\fB@ucf_cpp\fP:\fIfile\fP"
126
Specifies that a \fIfile\fP.ucf file is to be generated by \fBcpp\fP(1)
127
from a \fIfile\fP.ucf_cpp source file. This allows to modularize ISE ucf files.
128 29 wfjm
.
129
.IP "\fB@xdc\fP:\fIfile\fP"
130
Specifies that \fIfile\fP is a constraint file for Vivado synthesis and should
131
be included in the constraints fileset.
132 23 wfjm
.RE
133
.
134 8 wfjm
.\" ------------------------------------------------------------------
135
.SH EXAMPLES
136 23 wfjm
.SS Simple entity
137
A simple vhdl entity named \fIbp_2l4l\fP which is defined in the source
138
file \fIbp_2l4l.vhd\fP, which uses the library \fIslvtypes\fP and
139
instantiates \fIbp_2line\fP and \fIbp_4line\fP, might have a
140
\fIbp_2l4l.vbom\fP like
141
.PP
142
.EX
143
    # libs
144
    ../../vlib/slvtypes.vhd
145
    # components
146
    bp_2line.vbom
147
    bp_4line.vbom
148
    # design
149
    bp_2l4l.vhd
150
.EE
151
.PP
152
Note that the vhdl source file \fIbp_2l4l.vhd\fP is always given in the
153
\fBvbom\fP file which describes this source file.
154
The comments are put in by convention to help the human reader and
155
are not interpreted by \fBvbomconv\fP.
156 8 wfjm
.
157
.\" ------------------------------------------------------------------
158
.SH "SEE ALSO"
159 23 wfjm
.BR vbomconv (1),
160
.BR ghdl (1),
161
.BR cpp (1)
162 8 wfjm
.
163
.\" ------------------------------------------------------------------
164
.SH AUTHOR
165
Walter F.J. Mueller 

powered by: WebSVN 2.1.0

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