runtest.sh
905 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
40
41
42
43
44
45
46
47
48
49
#!/bin/sh
if [ ! -d Config ] ; then
mkdir -p Config
else
rm -rf Config
mkdir -p Config
fi
if [ ! -d Results ] ; then
mkdir -p Results
else
rm -f Results/*
fi
VUSB_LANG=verilog
if [ "$1" = "vhdl" ] ; then
VUSB_LANG=verilog
elif [ "$1" = "verilog" ] ; then
VUSB_LANG=verilog
elif [ "$1" != "" ] ; then
echo "Usage: $0 [vhdl|verilog]"
exit 1
fi
case `uname -s`.`uname -r` in
SunOS.5.*)
cp ../software/bfm/co_simulation/tests/vusb/lib-gccsparcOS5/*.dll .
;;
Linux.2.*)
cp ../software/bfm/co_simulation/tests/vusb/lib-linux/*.dll .
;;
CYGWIN*)
cp ../software/bfm/co_simulation/tests/vusb/lib-VC60/*.dll .
;;
*)
echo "Environment Not Supported: Contact VAutomation, Inc."
;;
esac
if [ "$VUSB_LANG" = "vhdl" ] ; then
make -f makefile sim
vsim vusb_bvci_tb -do startup.do
else
make -f makefile sim
vsim vusb_bvci_tb -pli SimSocket.dll -do startup.do
fi