当前位置:网站首页>[UVM foundation] UVM_ Is in agent_ Active variable definition
[UVM foundation] UVM_ Is in agent_ Active variable definition
2022-06-27 17:48:00 【ReCclay】
The sample code :
function void my_agent::build_phase(uvm_phase phase);
super.build_phase(phase);
if (is_active == UVM_ACTIVE) begin
drv = my_driver::type_id::create("drv", this);
end
mon = my_monitor::type_id::create("mon", this);
endfunction
Perhaps the most puzzling thing here is build_phase in Why according to is_active The value of this variable determines whether to create driver Example . is_active yes uvm_agent A member variable of , from UVM Its prototype can be found in the source code of :
source : UVM Source code
uvm_active_passive_enum is_active = UVM_ACTIVE;
and uvm_active_passive_enum Is an enum type variable , The definition for :
source : UVM Source code
typedef enum bit {
UVM_PASSIVE=0, UVM_ACTIVE=1 } uvm_active_passive_enum;
This enumeration variable has only two values : UVM_PASSIVE and UVM_ACTIVE. stay uvm_agent in , is_active The default value of is UVM_ACTIVE, In this mode , You need to instantiate driver Of . So what is UVM_PASSIVE How about the model ? In this chapter DUT For example , There is no need to drive any signal on the output port , Just monitor the signal . under these circumstances , On the port, you only need monitor Of , therefore driver You don't have to instantiate .

边栏推荐
- Autodesk NavisWorks 2022 software installation package download and installation tutorial
- How to write a resume?
- Shardingsphere & Atlas & MYCAT comparison
- P4251 [scoi2015] small convex play matrix (still a little confused)
- JS event binding and common events
- Uploading multiple attachments from canvas apps to SharePoint
- 【多线程】线程通信调度、等待集 wait() 、notify()
- leetcode 19. Delete the penultimate node of the linked list
- C language set operation
- 写在eclipse里面,与数据库连接查询之后的问题
猜你喜欢

Advanced learning of MySQL -- Application -- Optimization of other SQL statements

Software testing Basics - software testing history, process, classification, benefits, limitations

Mihayou sued Minmetals trust, which was exposed to product thunderstorms

Common optimization techniques for Web Performance
![[multithreading] thread communication scheduling, waiting set wait(), notify()](/img/4b/b9312fafd1ef1bf438f7aec7665276.png)
[multithreading] thread communication scheduling, waiting set wait(), notify()

DOM object in JS

Uploading multiple attachments from canvas apps to SharePoint

d3dx9_ How to repair 40.dll? Win10 system d3dx9_ What if 40.dll is lost?

Detailed explanation of various GPIO input and output modes (push-pull, open drain, quasi bidirectional port)

Leetcode 5. Longest Palindromic Substring
随机推荐
Why should string be designed to be immutable?
Handwritten promise series - all
d3dx9_ How to repair 25.dll? d3dx9_ 25.dll where to download
Shardingsphere sharding proxy actual combat scenario
Adaoracle supports multi chain distributed Oracle with wide area node quotation
C language set operation
Use lamda expression and stream flow to traverse map and list
Cloud security daily 220216: root privilege escalation vulnerability found on IBM SaaS integration platform needs to be upgraded as soon as possible
What do fast fashion brands care more about?
Common optimization techniques for Web Performance
EMQ helps Qingdao Yanbo build a smart water platform
Introduction to photoswape
2/14 preliminary calculation geometry
Mihayou sued Minmetals trust, which was exposed to product thunderstorms
Part 30 supplement (30) ECMAScript object
P. Simple application of a.r.a method in Siyuan (friendly testing)
Advanced learning of MySQL -- Application -- Optimization of other SQL statements
Under the influence of external factors, how to manage internal resources and reduce costs is the key
WOx WPM installing the Youdao plug-in
ROS "topic" programming implementation