当前位置:网站首页>UVM in reporting classes_ report_ Get of server_ severity_ Count and get_ Server usage
UVM in reporting classes_ report_ Get of server_ severity_ Count and get_ Server usage
2022-06-27 01:25:00 【Alfred. HOO】
uvm_report_server.
Uvm_report_server Is a global server , It deals with uvm_report_handler All reports generated .
uvm_report_server Is an abstract class , It declares many of its methods as pure virtual methods .UVM Use uvm_default_report_server Class as its default report server implementation .
Method
get_severity_count — Returns the number of severity messages delivered
get_server — Get the global report server for reports .
get_severity_count
pure virtual function int get_severity_count(
uvm_severity severity
)
Returns the number of severity messages delivered .
get_serverstatic function uvm_report_server get_server()
Get the global report server for the report .
This method acts as a pass through uvm_coreservice_t::get_report_server Method to retrieve the convenience wrapper of the report server .
// Use uvm_coreservice_t:
uvm_coreservice_t cs;
uvm_report_server rs;
cs = uvm_coreservice_t::get();
rs = cs.get_report_server();
// Don't use uvm_coreservice_t:
uvm_report_server rs;
rs = uvm_report_server::get_server();
Example :
function void final_phase(uvm_phase phase);
uvm_report_server m_server = uvm_report_server::get_server();
super.final_phase(phase);
if(m_server.get_serverity_count(UVM_FATAL)||(m_server.get_serverity_count(UVM_ERROR))
$display("CASE FAILED");
else
$display("CASE PASS");
endfunction
perhaps
virtual function void check_phase(uvm_phase phase);
var uvm_report_server svr = get_report_server();
super.check_phase(phase);
if(svr.get_severity_count(UVM_ERROR) == 0 && svr.get_severity_count(UVM_FATAL) == 0) begin
`uvm_info(tID, `REPORT_PASS_STRING, UVm_NONE);
else
`uvm_info(tID, `REPORT_FATAL_STRING, UVM_NONE);
end
endfunction
边栏推荐
- 解决unable to create a folder to save the sketch: mkdir sketch
- About Random Numbers
- 接口隔离原则
- LeetCode 142. Circular linked list II
- Flutter series: flow in flutter
- [graduation season] role conversion
- Memcached foundation 7
- memcached基础4
- 超越锂电池——未来电池的概念
- Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
猜你喜欢

3线spi屏幕驱动方式

Buuctf PWN write UPS (6)

C#程序结构预览最基础入门

30《MySQL 教程》MySQL 存储引擎概述

Ml: a detailed introduction to the division of the top ten roles, backgrounds, responsibilities and outputs of the machine learning engineering team

Bs-gx-016 implementation of textbook management system based on SSM

在线文本数字识别列表求和工具

持续交付-Blue Ocean 应用
![Find the minimum value in the rotation sort array ii[classical Abstract dichotomy + how to break the game left, middle and right are equal]](/img/75/05d5765588dfde971167fbc72e2aa8.png)
Find the minimum value in the rotation sort array ii[classical Abstract dichotomy + how to break the game left, middle and right are equal]

3-wire SPI screen driving mode
随机推荐
ML:机器学习工程化之团队十大角色背景、职责、产出物划分之详细攻略
uvm中的config机制方法总结(一)
XSS notes (Part 2)
Esp32 experiment - self built web server distribution network 02
Gaussian and Summary Stats
通过Rust语言计算加速技术突破图片识别性能瓶颈
ESP32-添加多目录的自定义组件
Operating instructions and Q & A of cec-i China learning machine
Amazon ElastiCache 飞速搭建缓存服务集群,这才叫快
美团:踩雷好几年,才总结出的数据治理避坑攻略
Reporting Classes中uvm_report_server的get_severity_count和get_server用法
接口隔离原则
1.44寸TFT-LCD显示屏取模教程
Custom MVC (imported into jar package) + difference from three-tier architecture + reflection + interview questions
IIS 部署静态网站和 FTP 服务
解决STC8G1K08程序不能运行的问题和端口配置
【毕业季】角色转换
One click acceleration of Sony camera SD card file copy operation, file operation batch processing tutorial
George Washington University: Hanhan Zhou | PAC: auxiliary value factor decomposition with counterfactual prediction in Multi-Agent Reinforcement Learning
Summary of working at home during the epidemic | community essay solicitation