Systemverilog DPI 中的实际参数和形式参数有什么区别?
在 SystemVerilog 设计中,我使用带有 C 程序函数的 DPI-C。在对这两个文件运行模拟时,出现错误: “DPI 开放阵列不支持实际类型”。 我想知道在 DPI 的 SystemVerilog 方面哪个参数称为实际参数,哪个参数称为形式参数。
In SystemVerilog design I am using DPI-C with c program functions. While running simulation on both files, I am getting error:
"Actual type is not supported for DPI open array".
I want to know which argument is called actual and which is called formal in SystemVerilog side of DPI.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从软件编程术语来看,任何例程的正式参数都是在定义例程时声明的参数。 实际参数是调用例程时传递给例程的表达式。例如,
address
和data
是正式参数。addr/2
和buffer
是传递给master_write()
的实际参数。另一个术语:“不支持”通常意味着您编写的内容是由 LRM 定义的,但您使用的工具尚未实现它。
From software programming terminology, the formal arguments to any routine are the ones declared when defining the routine. The actual arguments are the expressions you pass to the routine when calling it. For example
address
anddata
are the formal arguments.addr/2
andbuffer
are the actual arguments passed tomaster_write()
.Another piece of terminology: "not supported" usually means what you wrote is defined by the LRM, but the tool you are using has not implemented it yet.