https://mp.weixin.qq.com/s/8aynSiTA16wpQiiETcfHfQ 存档
我们都知道,driver要和sequencer相连,然后通过seq_item_port接口的get_next_item方法和sequence之间进行交互。
但是,你有没有去查过get_next_item这个方法究竟是哪个类提供的呢?
让我们打开网页
https://verificationacademy.com/verification-methodology-reference/uvm/docs_1.2/html/
我们来看看seq_item_port这个类的继承关系,他在driver源码中的原型是uvm_seq_item_pull_port #(REQ, RSP) seq_item_port;
我们查看uvm_seq_item_pull_port的继承关系
他继承自uvm_port_base#(uvm_sqr_if_base#(REQ,RSP))
而uvm_port_base的继承关系是