liu_uestc的个人空间 https://blog.eetop.cn/62687 [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

uvm_version task

已有 995 次阅读| 2011-9-21 10:23

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



Link URL: http://blog.sina.com.cn/s/blog_466496f30100xhxt.html

点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 0

    粉丝
  • 0

    好友
  • 0

    获赞
  • 1

    评论
  • 308

    访问数
关闭

站长推荐 上一条 /1 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-3 15:07 , Processed in 0.021954 second(s), 13 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部