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

边栏推荐
- d3dx9_ 39.dll how to repair -d3dx9_ 39.dll missing file download
- Annual comprehensive analysis of China's audio market in 2022
- Data center table reports realize customized statistics, overtime leave summary record sharing
- Offline disk group
- Common optimization techniques for Web Performance
- 黑马程序员-软件测试基础班-02-30-45工具代开浏览器运行代码,音、视频、测试点,音视频标签,布局标签。超链接语法进阶,绝对路径,相对路径
- Wanzhou gold industry: a common technical term in gold t+d transaction?
- About redis master-slave replication
- Ping An technology's practice of migrating from Oracle to ubisql
- Ten common methods of arrays tools
猜你喜欢

Why should string be designed to be immutable?

428-二叉树(501.二叉搜索树中的众数、701.二叉搜索树中的插入操作、450.删除二叉搜索树中的节点、669. 修剪二叉搜索树)

(5) SPI application design and simulation verification 1 - logic sorting

Cesium realizes satellite orbit detour

医院预约挂号系统-系统结构

Event listening mechanism

Software testing learning - dark horse programmer, software testing learning outline

leetcode 82. Delete duplicate Element II in the sorting linked list

模拟进程调度

The power of code refactoring: how to measure the success of refactoring
随机推荐
[multithreading] thread communication scheduling, waiting set wait(), notify()
Detailed explanation of various GPIO input and output modes (push-pull, open drain, quasi bidirectional port)
Software testing learning - dark horse programmer, software testing learning outline
Why should string be designed to be immutable?
Qt5 signal and slot mechanism (basic introduction to signal and slot)
Simulated process scheduling
leetcode 19. Delete the penultimate node of the linked list
Electronic smart package tutorial
Use lamda expression and stream flow to traverse map and list
Leetcode 704. Binary search
About binary
C語言教師工作量管理系統
About redis master-slave replication
Halcon: discrete digital OCR recognition
Anfulai embedded weekly report (issue 252): February 7, 2022 to February 13, 2022
Offline disk group
Special function calculator
JS event binding and common events
d3dx9_ How to repair 38.dll? d3dx9_ 38. How to download a missing DLL?
软件测试-测试的概念,单元测试的详细介绍,如何设计测试用例