2020-07-26 23:17:18 +08:00
|
|
|
@echo off
|
|
|
|
REM ****************************************************************************
|
|
|
|
REM Vivado (TM) v2018.3 (64-bit)
|
|
|
|
REM adapt by ljgibbs / lf_gibbs@163.com for design:sm3_core
|
|
|
|
REM
|
|
|
|
REM Filename : run_sim.bat
|
|
|
|
REM Simulator : Mentor Graphics ModelSim Simulator
|
|
|
|
REM Description : Script for compiling the simulation design source files
|
|
|
|
REM
|
|
|
|
REM Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.
|
|
|
|
REM
|
|
|
|
REM usage: run_sim.bat
|
|
|
|
REM
|
|
|
|
REM ****************************************************************************
|
2020-07-29 16:42:14 +08:00
|
|
|
set bin_path=%LM_LICENSE_FILE%
|
|
|
|
|
|
|
|
call :get_root_path %bin_path%
|
|
|
|
|
|
|
|
:get_root_path
|
|
|
|
rem modelsim root path
|
|
|
|
set bin_path=%~dp1
|
|
|
|
|
|
|
|
set bin_path=%bin_path%/win64
|
|
|
|
REM set bin_path=C:\modeltech64_10.5\win64
|
2020-07-28 22:51:53 +08:00
|
|
|
REM call %bin_path%/vsim -do "do ../script/{run_sm3_expnd_tb.do}" -l run_sim.log
|
2020-07-29 16:42:14 +08:00
|
|
|
REM call %bin_path%/vsim -do "do ../script/run_sm3_cmprss_tb.do" -l run_sim.log
|
|
|
|
call %bin_path%/vsim -do "do ../script/run_sm3_core_top_tb_wth_cmodel.do" -l run_sim.log
|
2020-07-26 23:17:18 +08:00
|
|
|
|
|
|
|
if "%errorlevel%"=="1" goto END
|
|
|
|
if "%errorlevel%"=="0" goto SUCCESS
|
|
|
|
:END
|
|
|
|
exit 1
|
|
|
|
:SUCCESS
|
|
|
|
exit 0
|