⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build_float_vpi.sh

📁 本電子檔為 verilog cookbook,包含了通訊,影像,DSP等重要常用之verilog編碼,可作為工程師與初學者的參考手冊
💻 SH
字号:
# 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -