sequencer

sequencer产生transaction,而driver负责接收transaction。

class  my_driver   extends   uvm_driver #(my_transaction);

这样定义的好处是可以直接使用uvm_driver中的某些预先定义好的成员变量,例如uvm_driver中有成员变量req,它的类型是传递给uvm_driver的参数,即my_transaction。

task  my_driver::main_phase(uvm_phase phase);

     phase.raise_objection(this);

     phase.drop_objection(this);

endtask

m

猜你喜欢

转载自www.cnblogs.com/camellia3371----/p/12028224.html