1.
start_item(tr);
//sequencer.wait_for_grant(prior);
//parent_seq.mid_do(item);
finish_item(tr);
//parent_seq.mid_do(item);
//sequencer.send_requst(item);
//sequencer.wait_for_item_done();
//parent_seq.post_do(item);
2.
`uvm_create(tr)
`uvm_send(tr)
3.
`uvm_do(tr)
其中只有第3是包含实例化和随机化的,2是包含实例化的,1既不包含实例化,也不包含随机化。
对1来说,需要在finish_item之前随机化完成。
对于2来说,需要在create和send之间随机化完成。
对于2来说,有一些需要更多参数的宏定义,例如
`uvm_rand_send(SEQ_OR_ITEM)
`uvm_rand_send_pri(SEQ_OR_ITEM,PRIORITY)
`uvm_rand_send_with(SEQ_OR_ITEM,CONS)
`uvm_rand_send_pri_with(SEQ_OR_ITEM,PRIORITY,CONS)