set_report_severity_id_action_hier(UVM_WARNING,"rd_driver",UVM_DISPLAY|UVM_COUNT); 除此之外,uvm也支持在命令行中设置计数目标,设置方式为: <simcommand>+uvm_set_action=<comp>,<id>,<severity>,<action>// 具体例子如:<simcommand>+uvm_set_action="uvm_test_top.fifo_env.rd_agt.drv,rd_driver...
set_report_id_action:把目标component所有信息加入到计数中。 set_report_id_action:递归将目标component及其所有子component加入到计数中。 env.i_agt.drv.set_report_id_action("my_drv",UVM_DISPLAY|UVM_COUNT); UVM支持对严重性和ID进行联合起来设置。 env.i_agt.drv.set_report_severity_id_action(UVM_WA...
5)get_action,拿到message对应的action; 6)get_filename,get_line,拿到对应的文件以及行号; 相应的函数来进行message属性的修改; 1)set_client,调用的report_object; 2)set_severity,message的severity; 3)set_verbosity,message verbosity信息; 4)set_id,message id值; 5)set_action,message对应的action; 在catc...
3.set_report_severity_action_hier:实现递归 4.如果要移除:env.i_agt.drv.set_report_severity_action(UVM_ERROR, UVM_DISPLAY)。默认就是error嘛! 5.还可以针对id:env.i_agt.drv.set_report_id_action("my_drv", UVM_DISPLAY| UVM_COUNT);无论是info,warning,error,fatal。 6.也可以递归:env.i_agt...
uvm_action action); function void set_report_severity_id_action (uvm_severity severity, string id, uvm_action action); //对给定的id, severity 或者(id, severity)对设置ACTIONS,在2中介绍,都是调用handler中对应的函数来实现 17. function void set_report_severity_override(uvm_severity cur_severity,...
UVM_FILE log_fh = $fopen("cpu.log");// 打印cpu.log的文件,并把句柄传给log_fhthis.set_report_id_action("cpu", (UVM_DISPLAY | UVM_LOG));// 将”cpu”的id加上UVM_LOG功能this.set_report_id_file("cpu", log_fh);// 将“cpu”的id管理到log_fh文件句柄`uvm_info("cpu","The messag...
set_report_id_verbosity(“id_name”,xxx):将某个特定的组件,id名为id_name的uvm_info打印等级设定为目标等级。 使用方法:component.set_report_id_verbosity(“ID_1”, UVM_HIGH),component支持使用路径,比如在base_test中将driver内部id为driver_id0的uvm_info设定为UVM_NONE,在base_test的connect_phase中调...
set_report_severity_id_action(UVM_WARNING, "my_driver", UVM_DISPLAY | UVM_COUNT); ... 命令行中设置技术目标: <sim command> +uvm_set_action=<comp>,<id>,<severity>,<action> 3.4.5 UVM的断点功能 当程序执行到断点处时,停止仿真,进入交互模式,从而进行调试。 "base...
uvm_action action); function void set_report_severity_id_action (uvm_severity severity, string id, uvm_action action); //对给定的id, severity 或者(id, severity)对设置ACTIONS,在2中介绍,都是调用handler中对应的函数来实现 17. function void set_report_severity_override(uvm_severity cur_severity,...
uvm_report_enabled Returns 1 if the configured verbosity for this severity/id is greater than verbosity and the action associated with the given severity and id is not UVM_NO_ACTION, else returns 0. set_report_max_quit_count Sets the maximum quit count in the report handler to max_count....