build_float_vpi.sh

来自「本電子檔為 verilog cookbook,包含了通訊,影像,DSP等重要常用」· Shell 代码 · 共 25 行

SH
25
字号
# This constructs a DLL plug in for Modelsim from float_vpi.cpp
# It contains a few floating point helper functions.

# The Modelim PLI interface library - modify Modelsim path if necessary
if [ -f d:/Modeltech_6.1d/win32/mtipli.lib ]
then
  cp D:/Modeltech_6.1d/win32/mtipli.lib .
else
  echo "Please modify Modelsim binary path in shell script"
  exit
fi

# Compile C helper file
cl -c -ID:. float_vpi.cpp

# Link with MTI lib to form plug in DLL
link -dll -export:vlog_startup_routines float_vpi.obj mtipli.lib -out:float_vpi.dll 

if [ -f float_vpi.dll ] 
then
   echo "float_vpi.dll built successfully"
else
   echo "Error building DLL"
fi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?