UVM之uvm_phase

摘要:
UVM中的phase机制很有意思,它能让UVM启动之后,自动执行所有的流程。

UVM中的phase机制很有意思,它能让UVM启动之后,自动执行所有的流程。UVM 的user guide 中对uvm_phase的定义如下:

This base class defines everything about a phase: behavior, state, and context.

To define behavior, it is extended by UVM or the user to create singleton objects which capture the definition of what the phase does and how it does it. These are then cloned to produce multiple nodes which are hooked up in a graph structure to provide context: which phases follow which, and to hold the state of the phase throughout its lifetime. UVM provides default extensions of this class for the standard runtime phases. VIP Providers can likewise extend this class to define the phase functor for a particular component context as required.

UVM中的phase,按照其是否消耗仿真时间的特性,可以分成两大类,一类是function phase,通过函数来实现;另一类是task phase,消耗仿真时间,通过函数来实现。

注:在面向对象编程中类也可以做为方法的传递类型。

免责声明:文章转载自《UVM之uvm_phase》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇第十章 Call 和 Ret 指令linux命令(shell脚本、定时任务等)下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

UVM基础之----uvm_object

uvm_void The uvm_void class is the base class for all UVM classes. uvm_object: The uvm_object class is the base class for all UVM data and hierarchical classes. uvm_object是一个uvm...

UVM中的class--2

1)uvm_component从uvm_report_object继承而来,提供的功能包括: 1)Hierarchy,-----searching and traversing component hierachy 2)Phasing-----调用uvm_phase以及预先定义的很多phase 3)config-------调用config_db的m...

UVM基础之---------uvm factory机制register

factory机制的一大特点就是根据类的名字来创建类的实例。 factory 机制中根据类名来创建类的实例所用到的技术:一是参数化的类,二是静态变量和静态函数。这两者是factory机制实现的根本所在。 UVM 中有两大关键类,uvm_object 和 uvm_component。一个 uvm_object 在定义时一般要调用 uvm_object_u...

UVM基础之---------uvm report 机制分析

uvm 中的信息报告机制相对来说比较简单,功能上来说主要分为两部分: 第一通过ID对component的信息报告冗余级别进行控制,针对每个冗余级别进行不同的行为控制。这部分工作主要由uvm_report_hander来实现:      主要涉及到的方法有get_report_verbosity_level(severity, id)/get_report...

vlog常用参数解析

1. -f <filelist> : compile all files in filelist ------------------------------------------------------------------------ #+incdir+ D:/Documents/Work/UVM_PRJ/uvm-crc-test/sr...