|
楼主 |
发表于 2009-9-27 16:04:52
|
显示全部楼层
/opt/cadence/IUS56/doc/dpiEngrNtbk
里面的simple_ad
很简单的程序
但是我按照他的要求进行操作:
To run this example using NC-Verilog:
1) Compile the design using the following command:
ncvlog -messages -sv top.v
2) Elaborate the design using the following command:
ncelab -messages -access +RWC worklib.top
3) In the current directory, create a shared object library called libdpi.so (for Solaris, Linux,
or AIX), or libdpi.sl (for HP-UX).
For example, using a gcc compiler:
gcc -fPIC -shared -o libdpi.so adder.c -I$CDS_INST_DIR/tools/inca/include
For example, using a cc compiler:
cc -KPIC -G -o libdpi.so -I$CDS_INST_DIR/tools/inca/include adder.c
where $CDS_INST_DIR points to the installation.
4) Simulate the design using the following command:
ncsim -messages worklib.top
但是到了最后就会出现:说找不到libdpi.so,但是这个文件已经生成了呀???奇怪!!! |
|