当前位置:网站首页>[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 .

边栏推荐
- Performance problems caused by redis cache invalidation and competitive loading
- wheel ui
- Study on heritability and field experiment design
- Teach you how to realize pynq-z2 bar code recognition
- C système de gestion de la charge de travail des enseignants en langues
- All you want to know about large screen visualization is here
- Some details of Huawei OSPF
- 当发布/订阅模式遇上.NET
- Cloud security daily 220216: root privilege escalation vulnerability found on IBM SaaS integration platform needs to be upgraded as soon as possible
- Unity shadow shadow pancaking
猜你喜欢

Missing d3d10 How to repair DLL files? Where can I download d3d10.dll

LeetCode 124. Binary tree maximum path sum - binary tree series question 8

JS event binding and common events

Unity shadow shadow pancaking

Simulated process scheduling

How much room does Migu video have for development without relying on sports events?
![[JS reverse hundreds of examples] I love to solve 2022 Spring Festival problems and receive red envelopes](/img/cb/0be2b2cf3b2cfa903190b7795d3cd7.jpg)
[JS reverse hundreds of examples] I love to solve 2022 Spring Festival problems and receive red envelopes

Sword finger offer 22 The penultimate node in the linked list

Why should string be designed to be immutable?

Use pyinstaller to package py files into exe. Precautions and error typeerror:_ get_ sysconfigdata_ name() missing 1...‘ check_ Solutions to exists'
随机推荐
Qt5 signal and slot mechanism (basic introduction to signal and slot)
Electronic smart package tutorial
[JS reverse hundreds of examples] I love to solve 2022 Spring Festival problems and receive red envelopes
C language teacher workload management system
Extract field year / quarter effect based on date
Shardingsphere sharding proxy actual combat scenario
Uploading multiple attachments from canvas apps to SharePoint
Community sharing jumpserver in the eyes of senior open source users: a fortress machine for "Crazy" iteration
EMQ helps Qingdao Yanbo build a smart water platform
428-二叉树(501.二叉搜索树中的众数、701.二叉搜索树中的插入操作、450.删除二叉搜索树中的节点、669. 修剪二叉搜索树)
Software testing - the concept of testing, the detailed introduction of unit testing, and how to design test cases
Software testing Basics - software testing history, process, classification, benefits, limitations
Wanzhou gold industry: a common technical term in gold t+d transaction?
Unity shadow shadow pancaking
Synchronization mechanism of dual namenodes
[leetcode] 2. Add two numbers (user-defined listnode), medium
Application practice of day13 for loop distinguish the application of traversing break continue
Leetcode daily practice (sum of two numbers)
LeetCode 124. Binary tree maximum path sum - binary tree series question 8
d3dx9_ How to repair 40.dll? Win10 system d3dx9_ What if 40.dll is lost?