【uvm】has_functional_coverage/functional coverage monitor

本文介绍了UVM配置对象的概念,特别是如何通过'has_functional_coverage'变量来控制代理的功能覆盖。当存在功能覆盖监控器时,它可能是作为Agent子组件实现的,但这取决于测试平台架构。配置对象还对定义Agent的其他特性和其在特定测试用例生成中的行为配置起着重要作用。
摘要由CSDN通过智能技术生成

UVM Configuration Object Concept

To find out the functional coverage related to the Agent’s functionality, there may be a functional coverage monitor implemented as a sub-component of Agent or may not. It depends on the Testbench Architecture. The good part is – this behavior is controlled using a bit type variable named “has_functional_coverage” (meaningful name) inside a Configuration class/object that is being used for that Agent (We’ll see the application in the written UVM Configuration class code). Configuration object also plays a significant role in defining other features of the Agent & how an Agent behaves or configured with respect to certain testcase/scenario generation.

// AHB Master Configuration Class  

class ahb_master_config extends uvm_object;

   `uvm_object_utils(ahb_master_config)

 /// Virtual Interface Declaration \\\\\\\\

   virtual ahb_if ahb_vi;

/// Constructor 

 function new (string name = "ahb_master_config");

   super.new(name);

 endfunction: new

 /// Different Variables Declaration 

 /// Agent Active or Passive ///

   uvm_active_passive_enum active = UVM_ACTIVE

 /// Agent Include Functional Coverage Monitor ///

   bit has_functional_coverage = 0;

 /// Agent Include Scoreboard ///

   bit has_scoreboard = 0;

 /// Address Decode For the Select Lines ///

   logic[31:0
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值