📄 build_float_vpi.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 + -