[uvm]在子对象中调用父对象函数

本文探讨了在UVM验证环境中,如何在子对象scoreboard中调用父对象的check_jelly_bean_taste函数进行功能覆盖率收集。通过举例说明,解释了为何在某些情况下,创建独立的scoreboard并采用两层结构能提高可扩展性,解决了subscriber无法支持多个analysis port的问题。
摘要由CSDN通过智能技术生成

在这里插入图片描述
Scoreboard
在功能覆盖用户中,jelly_bean_transaction在write函数中被采样。与功能覆盖率收集器类似,关注write功能是关键。记分板subscriber使用write函数调用父组件(jelly_bean_scoreboard)中的check_jelly_bean_taste函数。此check_jelly_bean_taste函数将DUT响应与预期响应进行比较。

typedef class jelly_bean_scoreboard;
 
class jelly_bean_sb_subscriber extends uvm_subscriber#(jelly_bean_transaction);
   `uvm_component_utils(jelly_bean_sb_subscriber)
 
   function new(string name, uvm_component parent);
      super.new(name, parent);
   endfunction: new
 
   function void write(jelly_bean_transaction t);
      jelly_bean_scoreboard jb_sb;
 
      $cast( jb_sb, m_parent );
      jb_sb.check_jelly_bean_taste(t
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值