UVM event pool manages a pool of events that can be accessed using a string name. Each of the two agents in this example gets the same event from the pool (different parts of the testbench just have to agree on the name they will use). The `uvm_event_pool` class acts as an ...
以uvm_event#(uvm_object)作为参数,继承自uvm_object_string_pool,该类的继承关系如下图所示: uvm_object_string_pool#(T)包含的常用方法有:get()、delete()等。 get()根据输入字符串返回一个T类型的对象,delete()删除指定字符串的对象。 uvm_event_pool机制可以方便uvm_event在环境搭建过程中的使用, 可以很...
Calling uvm_event_pool::get_global(“event_name”) method returns an event handle. get_global Returns the specified item instance from the global item pool. Refer to the uvm_pool for more details. uvm event pool example The below example consists of two components comp_a and comp_b. event...
1.uvm_event的使用 在uvm中只需要将 uvm_event放到 uvm_event_pool中即可,这在进行移植验证环境时,是非常便利的事情,并且我们在使用时,也不需要关心event的路径,只需要从event_pool中get到这个event就可以了。比如说,我们在tc里的main_phase中发完包之后,一般都会设置drain_time来等待dut将数据吐完,我们就可以...
(1)通过uvm_event_pool::get_global_pool()函数获取全局的单实例类uvm_event_pool类型对象的句柄; (2)两个initial块中调用get_global_pool返回同一个uvm_event_pool类型对象的句柄; (3)通过uvm_event_pool.get(“ev”)可以得到一个名字为”ev”的uvm_event对象的句柄;如果名字为"ev"的uvm_event对象不存在...
在UVM中,通过将uvm_event添加到uvm_event_pool,使得在移植验证环境时更加便捷。使用uvm_event_pool时,无需关注事件路径,直接从池中获取事件即可。例如,假若在测试案例(tc)的main_phase阶段完成数据发送后,通常会设置drain_time等待DUT完成数据输出。此时,在scoreboard中设置一个uvm_event等待数据接收...
uvm_event_pool的定义为: typedef uvm_object_string_pool #(uvm_event) uvm_event_pool; uvm_event_pool可以通过get来获取event变量,如果该变量没有被create,则会先create。 get函数原型: virtual function T get(string key); if(!pool.exists(key)) pool[key] = new(key); ...
1、uvm_event 2、uvm_event_pool 总结 前言 1、uvm_event uvm_event类有两种不同的操作模式:边沿敏感和电平敏感。 边沿敏感模式包括:trigger(),wait_trigger(),wait_ptrigger()和wait_ptrigger_data() 方法。不要使用reset(),is_on(),is_off(),wait_on()和wait_off()方法。
51CTO博客已为您找到关于uvm_event_pool的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及uvm_event_pool问答内容。更多uvm_event_pool相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和进步。
Simple example 本篇对一个示例,分别使用两种方式来描述: 一个简单的FSM如下,分为4种状态;对于状态的跳转条件,本篇通过uvm_event类型的事件触发,验证环境中的实际情况可以是事件,某一个signal状态,或者if的判断等;不同状态下的Action,仅使用一句display代表,验证环境中的实际情况可以调用某一个task,对signal的驱动,...