verilog PLI 实例
摘要:
在testbench中可以通过PLI调用c/c++函数hello world示例:hello.c#include <stdio.h> void hello_call () { printf ("\nHello World\n");}hello.vmodule hello_pli (); initial begin $hello; #10 $finish;end endmodule如果使用vcs,则要添加tab文件以确定函数的关联hello.tab如下$hello call=hello_call acc+=rw:*编译运行命令为:vcs -R -P hell... 阅读全文
posted @ 2013-06-14 15:33 逆转骑士 阅读(684) 评论(0) 推荐(0) 编辑