📄 op_tests.bat
字号:
@ECHO OFF
REM *******************************************************************
REM Copyright (c) 1999-2001 Evatronix SA
REM *******************************************************************
REM Please review the terms of the license agreement before using
REM this file. If you are not an authorized user, please destroy this
REM source code file and notify Evatronix SA immediately that you
REM inadvertently received an unauthorized copy.
REM *******************************************************************
REM -------------------------------------------------------------------
REM Project name : C8051
REM Project description : C8051 Microcontroller Unit
REM
REM File name : OP_TESTS.BAT
REM File contents : Sample batch for MTI ModelSim EE
REM Purpose : Tests series OP_TESTS validation
REM Design Engineer : M.B.
REM Quality Engineer : M.B.
REM Version : 3.01
REM Last modification : 2001-10-01
REM -------------------------------------------------------------------
REM -------------------------------------------------------------------
REM Simulator directory location
REM -------------------------------------------------------------------
SET vsim_dir=C:\MODELTECH_AE\WIN32ALOEM
rem SET vsim_dir=c:\modeltech\win32
REM -------------------------------------------------------------------
REM C8051 work directory location
REM -------------------------------------------------------------------
SET work_dir=..\..\..\
CD %work_dir%
REM -------------------------------------------------------------------
REM Deafault directories location
REM -------------------------------------------------------------------
SET scripts_dir=tools/mti/ee_scripts
SET reports_dir=tools/mti/ee_reports
SET tpath=tests/op_tests/
REM -------------------------------------------------------------------
REM The log file location
REM -------------------------------------------------------------------
SET logfile=%reports_dir%\op_tests.log
REM -------------------------------------------------------------------
REM Report writing
REM -------------------------------------------------------------------
%vsim_dir%\vmap > %logfile%
REM -------------------------------------------------------------------
REM Simulation run process
REM -------------------------------------------------------------------
SET count1=0
SET count2=0
REM -------------------------------------------------------------------
:LOOP1
REM -------------------------------------------------------------------
GOTO LOOP2
:CD_LOOP1
IF "%count1%" == "F" SET count1=R
IF "%count1%" == "E" SET count1=F
IF "%count1%" == "D" SET count1=E
IF "%count1%" == "C" SET count1=D
IF "%count1%" == "B" SET count1=C
IF "%count1%" == "A" SET count1=B
IF "%count1%" == "9" SET count1=A
IF "%count1%" == "8" SET count1=9
IF "%count1%" == "7" SET count1=8
IF "%count1%" == "6" SET count1=7
IF "%count1%" == "5" SET count1=6
IF "%count1%" == "4" SET count1=5
IF "%count1%" == "3" SET count1=4
IF "%count1%" == "2" SET count1=3
IF "%count1%" == "1" SET count1=2
IF "%count1%" == "0" SET count1=1
IF NOT "%count1%" == "R" GOTO LOOP1
GOTO END
REM -------------------------------------------------------------------
:LOOP2
REM -------------------------------------------------------------------
IF NOT "%count2%" == "R" ECHO RUN TEST OP_%count1%%count2%
IF "%count2%" == "R" ECHO RUN TEST OP_%count1%0
REM -------------------------------------------------------------------
REM Test run process
REM -------------------------------------------------------------------
SET tname=OP_%count1%%count2%
SET arg1=-t ns -lib C8051_LIB -GTESTNAME=%tname% -GTESTPATH=%tpath%
SET arg2=-do "do %scripts_dir%/op_tests.scr %tpath% %tname% %reports_dir%"
SET args=%arg1% %arg2%
%vsim_dir%\vsim.exe %args% typical_C8051_extram_extrom >> NUL
REM -------------------------------------------------------------------
REM Next test select
REM -------------------------------------------------------------------
IF "%count2%" == "F" SET count2=R
IF "%count2%" == "E" SET count2=F
IF "%count2%" == "D" SET count2=E
IF "%count2%" == "C" SET count2=D
IF "%count2%" == "B" SET count2=C
IF "%count2%" == "A" SET count2=B
IF "%count2%" == "9" SET count2=A
IF "%count2%" == "8" SET count2=9
IF "%count2%" == "7" SET count2=8
IF "%count2%" == "6" SET count2=7
IF "%count2%" == "5" SET count2=6
IF "%count2%" == "4" SET count2=5
IF "%count2%" == "3" SET count2=4
IF "%count2%" == "2" SET count2=3
IF "%count2%" == "1" SET count2=2
IF "%count2%" == "0" SET count2=1
IF NOT "%count2%" == "R" GOTO LOOP2
SET count2=0
GOTO CD_LOOP1
REM -------------------------------------------------------------------
:END
REM -------------------------------------------------------------------
ECHO.
ECHO End of simulation process.
ECHO.
PAUSE
ECHO ON
REM -------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -