UVM_ERROR代表出现严重错误,需要立即暂停仿真并进行处理。而UVM_FATAL则表示仿真已经无法继续进行,需要立即终止。这四个信息严重性等级可以通过`uvm_info`语句重载,并可以使用`$sformatf()`系统函数打印带参数的字符串。不同的等级可以在仿真过程中设置不同的冗余度级别,当达到一定数量时,仿真会结束。
26 void'(uvm_config_db#(int)::get(this.m_parent, "i_agt.drv", "pre_num", drv_pre_num)); 27 `uvm_info("my_model", $sformatf("after get, the pre_num is %0d", drv_pre_num), UVM_LOW) 28 endfunction Verified: `uvm_info(get_full_name(), $sformatf("Value of payload[%...
_reset), UVM_LOW)//in for loopfor(inti =0; i < l_queue.size(); i++)beginfor(intj =0; j < l_queue[i].item.size(); j++)begin//Some other statements`uvm_info("iterate", $sformatf("Idx[i=%0d,j=%0d] Item=%s has value=0x%0h"), i, j, l_queue[...
UVM_INFO UVM_INFO ⽂件:src/ch3/section3.5/3.5.6/get/my_model.sv 21 function void my_model::build_phase(uvm_phase phase);22 super.build_phase(phase);23 port = new("port", this);24 ap = new("ap", this);25 `uvm_info("my_model", $sformatf("before get, the ...