monitor 用来捕获(监视)和检查总线的信号是否满足预期的要求。所有的user_monitor 继承自uvm_monitor,uvm_monitor继承自uvm_component,从源代码来看里面没有做什么工作,那为什么又费力去做这么一件事,这么做的原因是让不同的模块做不同事,从名字就可以区分开该模块的功能,提供代码的可阅读性。
A monitor should have the following functions :
  • Collect bus information through a virtual interface
  • Collected data can be used for protocol checking and coverage
  • Collected data is exported via an analysis port

//-----------------------------------------------------------------------------
// CLASS: uvm_monitor
//
// This class should be used as the base class for user-defined monitors.
//
// Deriving from uvm_monitor allows you to distinguish monitors from generic
// component types inheriting from uvm_component. Such monitors will
// automatically inherit features that may be added to uvm_monitor in the future.
//
//----------------------------------------------------------------------------- virtual class uvm_monitor extends uvm_component; // Function: new
//
// Creates and initializes an instance of this class using the normal
// constructor arguments for <uvm_component>: ~name~ is the name of the
// instance, and ~parent~ is the handle to the hierarchical parent, if any. function new (string name, uvm_component parent);
super.new(name, parent);
endfunction const static string type_name = "uvm_monitor"; virtual function string get_type_name ();
return type_name;
endfunction endclass

参考文献:

1 uvm_monitor. http://www.chipverify.com/uvm/monitor

最新文章

  1. valueOf和toString的区别
  2. SEO站长必备的十大常用搜索引擎高级指令
  3. cookie 内容的获取
  4. UITableView局部刷新
  5. 【HTML XHTML CSS基础教程(第6版)】笔记之CSS笔记(7~25章)
  6. iOS控件——UIView与UIImageView播放动画的实现方法
  7. 在MyEclipse环境下添加MySql数据库
  8. Java NIO实战之聊天室
  9. HTML5 3D翻书效果(双面效应)
  10. c 语言的基本语法
  11. Number和toString中的坑
  12. 为容器化的 Go 程序搭建 CI
  13. restore not found的错误(问题2)
  14. layui-xtree 设置单选框,只能选一个
  15. PHP 批量操作删除,支持单个删除
  16. uva140-暴力枚举
  17. cdoj802-Just a Line
  18. sql排它锁
  19. PHP实现openSug.js参数调试
  20. python实战===百度文字识别sdk

热门文章

  1. APACHE2 服务器配置 (一)
  2. 4.java变量
  3. 你忘记的java运算符
  4. HTML5.与JQUERY与AJAX常见面试题
  5. int和Integer及拆箱与装箱
  6. vector 大小
  7. mock api
  8. [WIP]用已有db进行rails开发
  9. JQuery onload、ready 加载顺序
  10. CodeForces 41A+43A【课上无聊刷水题系列】