日常記錄(51)uvm的sprint


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM