|
conclusion:
1. 本task仅返回uvm的版本号
2. 版本号可以通过`UVM_VERSION_STRING定义
3. 定义了3个字符串,记录copyright
F:\zhenyu_liu\my_work\matierals\systemverilog\uvm-1.0p1\uvm-1.0p1\src\base\uvm_version.svh
`ifndef UVM_VERSION_SVH
`define UVM_VERSION_SVH
parameter string uvm_mgc_copyright = "(C) 2007-2011 Mentor
Graphics Corporation";
parameter string uvm_cdn_copyright = "(C) 2007-2011 Cadence Design
Systems, Inc.";
parameter string uvm_snps_copyright = "(C) 2006-2011 Synopsys,
Inc.";
parameter string uvm_revision = `UVM_VERSION_STRING;
function string uvm_revision_string();
return uvm_revision;
endfunction
`endif // UVM_VERSION_SVH
`ifndef UVM_VERSION_DEFINES_SVH
`define UVM_VERSION_DEFINES_SVH
// Version numbers to be used in creating version strings for
printing
// or programmatic tesing against version numbers
`define UVM_NAME UVM
`define UVM_MAJOR_REV 1
`define UVM_MINOR_REV 0
`define UVM_FIX_REV p1
F:\zhenyu_liu\my_work\matierals\systemverilog\uvm-1.0p1\uvm-1.0p1\src\macros\uvm_version_defines.svh
// Whole version identifiers that can be used in `ifdefs and
`ifndefs
// to do conditional compilation
`define UVM_VERSION_1_0
`define UVM_MAJOR_VERSION_1_0
`define UVM_MAJOR_REV_1
`define UVM_MINOR_REV_0
// When there is a FIX_REV, print as "M.m.f"
// When there is NO FIX_REV, print as "M.m".
// Fix rev kind of string:
`define UVM_VERSION_STRING
`"`UVM_NAME``-```UVM_MAJOR_REV``.```UVM_MINOR_REV```UVM_FIX_REV```"
// No fix rev kind of string:
//`define UVM_VERSION_STRING
`"`UVM_NAME``-```UVM_MAJOR_REV``.```UVM_MINOR_REV```"
`endif // UVM_VERSION_DEFINES_SVH