runtest.bat
656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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