1
sprint与print
req和seq_item_port同等级别,都是uvm_driver下内部的变量。前者指代了对应的packet(transaction),然后packet下定义了uvm_field宏注册机制,就可用一些uvm_obj的函数。
函数中的sprint和print的区别如下(1.1参考手册19页)
The sprint method works just like the print method, except the output is returned in a string rather than displayed.
https://bbs.eetop.cn/forum.php?mod=viewthread&tid=623160&page=1#pid9236305