1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
myhdl/scripts/benchmark/testrun.sh

59 lines
1.3 KiB
Bash
Raw Normal View History

2011-05-17 15:53:02 +02:00
#!/bin/bash
2011-05-20 09:14:06 +02:00
echo > teststats.dat
2011-05-18 10:36:04 +02:00
python convert.py
2011-05-17 15:53:02 +02:00
ghdl -a pck_myhdl_08dev.vhd
2011-05-18 10:36:04 +02:00
vlib work
vcom pck_myhdl_08dev.vhd
2011-05-17 15:53:02 +02:00
2011-05-18 10:36:04 +02:00
tests="
findmax
2011-05-17 15:53:02 +02:00
"
2011-05-18 10:36:04 +02:00
for test in $tests
2011-05-17 15:53:02 +02:00
do
2011-05-20 09:14:06 +02:00
echo Test: $test >> teststats.dat
echo ===== >> teststats.dat
2011-05-17 15:53:02 +02:00
2011-05-20 09:14:06 +02:00
echo python >> teststats.dat
echo ------ >> teststats.dat
#/usr/bin/time -o teststats.dat -a -p python test_$test.py > ${test}_python.out
echo >> teststats.dat
2011-05-17 15:53:02 +02:00
2011-05-20 09:14:06 +02:00
echo pypy >> teststats.dat
echo ---- >> teststats.dat
/usr/bin/time -o teststats.dat -a -p pypy test_$test.py > ${test}_pypy.out
echo >> teststats.dat
2011-05-17 15:53:02 +02:00
2011-05-20 09:14:06 +02:00
echo icarus >> teststats.dat
echo ------ >> teststats.dat
2011-05-17 15:53:02 +02:00
iverilog test_$test.v
2011-05-20 09:14:06 +02:00
/usr/bin/time -o teststats.dat -a -p vvp a.out test_$test > ${test}_icarus.out
echo >> teststats.dat
2011-05-17 15:53:02 +02:00
2011-05-20 09:14:06 +02:00
echo ghdl >> teststats.dat
echo ---- >> teststats.dat
2011-05-17 15:53:02 +02:00
ghdl -a test_$test.vhd
ghdl -e test_$test
#/usr/bin/time -o teststats.dat -a -p ghdl -r test_$test > ${test}_ghdl.out
2011-05-20 09:14:06 +02:00
echo >> teststats.dat
2011-05-17 15:53:02 +02:00
2011-05-20 09:14:06 +02:00
echo vlog >> teststats.dat
echo ---- >> teststats.dat
2011-05-17 15:53:02 +02:00
vlog test_$test.v
2011-05-20 09:14:06 +02:00
/usr/bin/time -o teststats.dat -a -p vsim -c -do run.do test_$test > ${test}_vlog.out
echo >> teststats.dat
2011-05-17 15:53:02 +02:00
2011-05-20 09:14:06 +02:00
echo vcom >> teststats.dat
echo ---- >> teststats.dat
2011-05-17 15:53:02 +02:00
vcom test_$test.vhd
2011-05-20 09:14:06 +02:00
/usr/bin/time -o teststats.dat -a -p vsim -c -do run.do test_$test > ${test}_vcom.out
echo >> teststats.dat
2011-05-17 15:53:02 +02:00
done
2011-05-18 10:36:04 +02:00