我想为QuestaSim (ModelSim)编译Xilinx模拟原语。文档列出了一个TCL命令,但我想使用一个常见的shell命令,比如用于ISE的旧命令:
<ISEDirectory>\bin\nt64\compxlib.exe -family all - language all -library all -simulator questa ....据我所见,TCL命令应该输入到Vivado GUI中。
如何从用户定义的PowerShell或Bash脚本运行编译?
发布于 2016-04-14 09:25:53
为了完整的回答我自己的问题..。
然后,在GUI或命令行中,没有其他方法从Vivado Tcl shell运行编译命令。
从Bash:编译Vivado库
VSimBinDir=/opt/questasim/10.4d/bin
DestDir=xilinx-vivado
Simulator=questa
Language=vhdl
Library=all
Family=all
CommandFile=vivado.tcl
echo "compile_simlib -force -library $Library -family $Family -language $Language -simulator $Simulator -simulator_exec_path $VSimBinDir -directory $DestDir" > $CommandFile
if [ $? -ne 0 ]; then
echo 1>&2 -e "${COLORED_ERROR} Cannot create temporary tcl script.${ANSI_NOCOLOR}"
exit -1;
fi
echo "exit" >> $CommandFile
# compile common libraries
$Vivado_tcl -mode tcl -source $CommandFile
if [ $? -ne 0 ]; then
echo 1>&2 -e "${COLORED_ERROR} Error while compiling Xilinx Vivado libraries.${ANSI_NOCOLOR}"
exit -1;
fihttps://stackoverflow.com/questions/36185660
复制相似问题