@echo off
set xv_path=C:\\Xilinx\\Vivado\\2017.1\\bin
echo "xvlog -m64 --relax -prj UART_TX_TB_vlog.prj"
call %xv_path%/xvlog  -m64 --relax -prj UART_TX_TB_vlog.prj -log xvlog.log
call type xvlog.log > compile.log
echo "xvhdl -m64 --relax -prj UART_TX_TB_vhdl.prj"
call %xv_path%/xvhdl  -m64 --relax -prj UART_TX_TB_vhdl.prj -log xvhdl.log
call type xvhdl.log >> compile.log
if "%errorlevel%"=="1" goto END
if "%errorlevel%"=="0" goto SUCCESS
:END
exit 1
:SUCCESS
exit 0
