博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
uvm_scoreboard——得分
阅读量:6072 次
发布时间:2019-06-20

本文共 1923 字,大约阅读时间需要 6 分钟。

  scoreboard 是验证平台很重要的一部分,因为,验证就是给激励,然后,检查结果。而scoreboard 就是肩负这检查结果的重任。测试用例能不能过,全由scoreboard说了算。

  A scoreboard is a verification component that contains checkers and verifies the functionality of a design. It usually receives transactions carrying inputs and outputs of the DUT from a UVM agent via , which then runs the input packets through some kind of a reference model that would mimic the behavior of DUT to produce expected data. The final task is to compare expected results with the actual output data from DUT. The reference model is also called a predictor.

To define a scoreboard:

  • Create a custom class inherited from uvm_scoreboard
  • Add the TLM export necessary to communicate with different monitors
  • Define the action to be taken when the export is called
//------------------------------------------------------------------------------//// CLASS: uvm_scoreboard//// The uvm_scoreboard virtual class should be used as the base class for // user-defined scoreboards.//// Deriving from uvm_scoreboard will allow you to distinguish scoreboards from// other component types inheriting directly from uvm_component. Such // scoreboards will automatically inherit and benefit from features that may be// added to uvm_scoreboard in the future.//------------------------------------------------------------------------------virtual class uvm_scoreboard extends uvm_component;  // Function: new  //  // Creates and initializes an instance of this class using the normal  // constructor arguments for 
: ~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_scoreboard"; virtual function string get_type_name (); return type_name; endfunctionendclass

 

参考文献:

1 Scoreboard. .

转载于:https://www.cnblogs.com/dpc525/p/7992837.html

你可能感兴趣的文章
XenDesktop7.12发布应用程序
查看>>
oracle11g安装
查看>>
LoadRunner如何开展性能测试
查看>>
4.python-and-or-not
查看>>
java.sql.SQLException: Unknown type '246 in column 0 of 1 in binary-encoded result set的解决办法...
查看>>
Redis 性能问题排查:slowlog 和排队延时
查看>>
我的友情链接
查看>>
【Linux】目录文件权限的查看和修改【转】
查看>>
Struts2 的学习笔记(三) Struts2 数据传输
查看>>
JPDA 架构研究20 - JDI的事件请求和处理模块
查看>>
Intellij IDEA界面设置
查看>>
移动端点击复制当前url(兼容iOS,安卓)
查看>>
springboot+2个mongoTemplate
查看>>
你的命运不是一头骡子
查看>>
阿里技术总监郭东白:创新之歌该如何唱
查看>>
启动hdfs报java.io.IOException: Premature EOF from inputStream错误
查看>>
Spring的Java配置方式简单示例
查看>>
Mozilla称Edge拥抱Chromium会伤害互联网的健康发展
查看>>
shell脚本,变量、data用法
查看>>
MySQL启动报“[Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 15000)”...
查看>>