OpenCores
URL https://opencores.org/ocsvn/ttl_library/ttl_library/trunk

Subversion Repositories ttl_library

[/] [ttl_library/] [trunk/] [Regress.bat] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 9 david237
@echo off
2
REM Regression tests for TTL models
3
REM Usage: regress [-c] [test]
4
REM If "-c" is present, testbenches are compiled first.
5
REM If "test" is omitted, [compile &] run all tests.
6
REM
7
REM Note the forward slashes: correct for vsim
8
setlocal
9
if "%1" EQU "-c" (
10
  set ZZVCOM=1
11
  shift
12
  ) else set ZZVCOM=0
13
 
14
if "%1" NEQ "" (
15
  if %ZZVCOM% == 1 (
16
    vcom -2008 +acc -quiet Testbench/Testbench_%1.vhd
17
  )
18
  vsim -c work.Testbench_%1 < vsim.txt | find "Verify failed"
19
) else (
20
for %%G in (Testbench/Testbench_*.vhd) do (
21
  echo %%~nG
22
  if %ZZVCOM% == 1 (
23
    vcom -2008 +acc -quiet Testbench/%%G
24
  )
25
  vsim -c work.%%~nG < vsim.txt | find "Verify failed"
26
)
27
)
28
endlocal

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.