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

Subversion Repositories uart2bus_testbench

[/] [uart2bus_testbench/] [trunk/] [tb/] [uvm_src/] [macros/] [uvm_version_defines.svh] - Blame information for rev 16

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 HanySalah
//----------------------------------------------------------------------
2
//   Copyright 2007-2010 Mentor Graphics Corporation
3
//   Copyright 2007-2010 Cadence Design Systems, Inc.
4
//   Copyright 2010-2011 Synopsys, Inc.
5
//   Copyright 2014      NVIDIA Corporation
6
//   All Rights Reserved Worldwide
7
//
8
//   Licensed under the Apache License, Version 2.0 (the
9
//   "License"); you may not use this file except in
10
//   compliance with the License.  You may obtain a copy of
11
//   the License at
12
//
13
//       http://www.apache.org/licenses/LICENSE-2.0
14
//
15
//   Unless required by applicable law or agreed to in
16
//   writing, software distributed under the License is
17
//   distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
18
//   CONDITIONS OF ANY KIND, either express or implied.  See
19
//   the License for the specific language governing
20
//   permissions and limitations under the License.
21
//----------------------------------------------------------------------
22
 
23
`ifndef UVM_VERSION_DEFINES_SVH
24
`define UVM_VERSION_DEFINES_SVH
25
 
26
// Title: UVM Version Defines
27
 
28
// Group: UVM Revision Values
29
// These macros provide the current values for the ~MAJOR~, ~MINOR~,
30
// and optionally the ~FIX~ revision.
31
//
32
// Example with UVM version 1.2:
33
//  UVM_MAJOR_REV - '1'
34
//  UVM_MINOR_REV - '2'
35
//  UVM_FIX_REV - 'undefined'
36
//
37
// Example with UVM version 1.1a:
38
//  UVM_MAJOR_REV - '1'
39
//  UVM_MINOR_REV - '1'
40
//  UVM_FIX_REV - 'a'
41
//
42
 
43
// Macro: UVM_MAJOR_REV
44
// Defines the MAJOR revision number.
45
//
46
// For UVM version 1.2, the MAJOR revision number is '1'
47
//
48
// | `define UVM_MAJOR_REV 1
49
`define UVM_MAJOR_REV 1
50
 
51
// Macro: UVM_MINOR_REV
52
// Defines the MINOR revision number.
53
//
54
// For UVM version 1.2, the MINOR revision number is '2'
55
//
56
// | `define UVM_MINOR_REV 2
57
`define UVM_MINOR_REV 2
58
 
59
// Macro: UVM_FIX_REV
60
// (Optionally) Defines the FIX revision letter.
61
//
62
// For the first "X.Y" release of the UVM, there is no
63
// FIX revision letter.  In these cases, the UVM_FIX_REV
64
// is left undefined.
65
//
66
// For any subsequent "X.Y" fix releases, the UVM_FIX_REV
67
// value is set to the appropriate fix release letter.
68
//
69
// Example:
70
// 1.1 - First release, UVM_FIX_REV is undefined
71
// 1.1a - Fix release, UVM_FIX_REV is 'a'
72
 
73
// Include this in the comment when the FIX rev is present:
74
// | `define UVM_FIX_REV a
75
 
76
//`define UVM_FIX_REV a
77
 
78
// Macro: UVM_NAME
79
// The name used by the library when displaying the name of
80
// the library.
81
//
82
// | `define UVM_NAME UVM
83
`define UVM_NAME UVM
84
 
85
// Macro: UVM_VERSION_STRING
86
// Provides a string-ized version of the UVM Library version number.
87
//
88
// When there is a FIX_REV, the string is "-." (such as "UVM-1.1d").
89
// When there is NO FIX_REV, the string is "-." (such as "UVM-1.2").
90
 
91
`ifdef UVM_FIX_REV
92
 `define UVM_VERSION_STRING `"`UVM_NAME``-```UVM_MAJOR_REV``.```UVM_MINOR_REV`UVM_FIX_REV`"
93
`else
94
 `define UVM_VERSION_STRING `"`UVM_NAME``-```UVM_MAJOR_REV``.```UVM_MINOR_REV```"
95
`endif
96
 
97
// Group: Conditional Compilation
98
// These macros provide the ability to conditionally compile based on the
99
// revision of the library which is being used.
100
//
101
// These macros are required for conditional compilation, as SystemVerilog does
102
// not support conditionals with `ifdefs.
103
//
104
// For example:
105
// |  // Illegal:
106
// | `if (UVM_MAJOR_REV == 1)
107
// |
108
// | // Legal:
109
// | `ifdef UVM_MAJOR_REV_1
110
//
111
 
112
 
113
// Macro: UVM_MAJOR_REV_1
114
// Indicates that the MAJOR version of this release is '1'.
115
//
116
// | `define UVM_MAJOR_REV_1
117
//
118
`define UVM_MAJOR_REV_1
119
 
120
// Macro: UVM_MINOR_REV_2
121
// Indicates that the MINOR version of this release is '2'.
122
//
123
// | `define UVM_MINOR_REV_2
124
//
125
`define UVM_MINOR_REV_2
126
 
127
// Macro: UVM_VERSION_1_2
128
// Indicates that the version of this release is '1.2'.
129
//
130
// | `define UVM_VERSION_1_2
131
`define UVM_VERSION_1_2
132
 
133
// Undocumented, same thing as UVM_VERSION_1_2
134
`define UVM_MAJOR_VERSION_1_2
135
 
136
// Group: UVM Version Ladder
137
 
138
// Macro: UVM_POST_VERSION_1_1
139
// Indicates that this version of the UVM came after the
140
// 1.1 versions, including the various 1.1 fix revisions.
141
//
142
// The first UVM version wherein this macro is defined is
143
// 1.2, and the macro will continue to be defined
144
// for all future revisions of the UVM library.
145
//
146
// | `define UVM_POST_VERSION_1_1
147
`define UVM_POST_VERSION_1_1
148
 
149
`endif // UVM_VERSION_DEFINES_SVH

powered by: WebSVN 2.1.0

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