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