2011年5月10日 星期二

DPI再了解(十二)

VCS直接使用 DPI

方法一
vcs –sverilog top.sv c_test.c
vcs –sverilog top.sv c_test.cpp

方法二
gcc –shared –fPIC test.c –o test/libtest.so
vcs –sverilog model.v test/libtest.so

沒有留言: