我自己的……求指教,不同环境不同操作,仅供参考……具体需求仔细想想应该就清楚了
while(1)
act_port.get(get_actual);
if(expect_queue.size() >0) begin
tmp_tran = expect_queue.pop_front();
compare_packet; //function
end
else begin
`uvm_error("scb", "Received from DUT, while expect queue is empty")
`uvm_error("scb", "The unexpected packet is")
if(this.get_report_verbosity_level()==500) begin
get_actual.print();
end
end
end