当前位置:网站首页>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
边栏推荐
- memcached基础4
- Reporting Classes中uvm_report_server的get_severity_count和get_server用法
- Kept to implement redis autofailover (redisha) 13
- Bootstrapblazor + FreeSQL actual combat chart usage (2)
- Tsinghua & Zhiyuan | cogview2: faster and better text image generation model
- Review the old and know the new -- constant renewal at normal temperature
- How to measure the thickness of glass substrate by spectral confocal
- UVM中config_db机制的使用方法
- Structure the fifth operation of the actual camp module
- 玩转OLED,U8g2动画,增长数字和随机三角形等
猜你喜欢

Flutter series: flow in flutter

解决unable to create a folder to save the sketch: mkdir sketch

解决u8glib只显示一行文字或者不显示的问题

TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘

3 - wire SPI Screen Drive

Analysis of ideal L9 product power: the price is 459800 yuan, the four cylinder engine is adopted, and the endurance is 1315km

Esp32 add multi directory custom component

Operating instructions and Q & A of cec-i China learning machine
![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]

JSON parsing, esp32 easy access to time, temperature and weather
随机推荐
Hid device descriptor and keyboard key value corresponding coding table in USB protocol
Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
ESP32-添加多目录的自定义组件
超越锂电池——未来电池的概念
Structure the fifth operation of the actual camp module
XSS攻击笔记(上)
3 - wire SPI Screen Drive
UVM中config_db机制的使用方法
用代码生成流程图,Markdown的使用方法
Is it safe to open a securities account online? Is it reliable to speculate in stocks by mobile phone
BS-GX-016基于SSM实现教材管理系统
George Washington University: Hanhan Zhou | PAC: auxiliary value factor decomposition with counterfactual prediction in Multi-Agent Reinforcement Learning
Kept to implement redis autofailover (redisha) 17
memcached基础6
Daily question brushing record (V)
JVM 的指针压缩
Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
你的case真的pass了吗?
Interface isolation principle
网上开通证券账户安全吗 手机炒股靠谱吗