2011年6月9日 星期四

當我們需要從Driver回傳資料回去Sequence時

方法一
seq_item_port.item_done(rsp);

方法二
using the put_response() method.
seq_item_port.put_response(rsp);

方法三
or using the built-in analysis port in uvm_driver.
rsp_port.write(rsp);

NOTE—Before providing the response, the response’s sequence and transaction id must be set to correspond to the request transaction using rsp.set_id_info(req).
NOTE—put_response() is a blocking method, so the sequence must do a corresponding
get_response(rsp)-->在Sequence中使用

沒有留言: