日常记录(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