如何获取有关序列器当前正在运行的序列的报告? 这仅用于调试......我已经可以看到我遇到了问题。我想要的是更多的调试信息。有多个序列可以运行,我想知道排队的是哪个。我决定在get_next_item取消阻止之后从驱动程序获取信息(按名称排序),但我也不知道如何做到这一点。 提前谢谢。
答案 0 :(得分:0)
如果您有序列发生器的句柄,那么您可以使用uvm_sequencer_base类中提供的方法来获取当前序列。
uvm_sequencer m_seqr; // This is your sequencer pointer
if (m_seqr.is_grabbed()) begin
uvm_sequence cur_seq = m_seqr.current_grabber();
`uvm_info(get_name(), $psprintf("Current sequence executing is %s", cur_seq.get_name(), UVM_MEDIUM)
end