runtest.bat 656 Bytes

ECHO OFF

IF not EXIST Config GOTO mkdir_config
del /f /q Config\*.*
rmdir /q Config
:mkdir_config
md Config

IF EXIST Results GOTO skip_results_build
md Results
:skip_results_build

del /f /q Results\*.*

copy ..\software\bfm\co_simulation\tests\vusb\lib-VC60\SimSocket.dll .

SET VUSB_LANG=verilog

IF NOT "%1"=="" set VUSB_LANG=%1

IF "%VUSB_LANG%"=="vhdl" GOTO sim_vhdl
IF "%VUSB_LANG%"=="verilog" GOTO sim_verilog

ECHO "Usage: %0 [vhdl|verilog]"

GOTO end_sim

:sim_vhdl
make -f makefile sim 
vsim vusb_bvci_tb -do startup.do
GOTO end_sim

:sim_verilog
make -f makefile sim
vsim vusb_bvci_tb -pli SimSocket.dll -do startup.do
GOTO end_sim

:end_sim