1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
myhdl/scripts/benchmark/cvcrun.sh
2015-04-27 16:09:24 -04:00

36 lines
558 B
Bash

#!/bin/bash
echo > cvcstats.dat
python convert.py
tests="
timer
lfsr24
randgen
longdiv
findmax
"
for test in $tests
do
echo Test: $test >> cvcstats.dat
echo ===== >> cvcstats.dat
echo cvc compiled >> cvcstats.dat
echo ------------ >> cvcstats.dat
cvc -O +2state test_$test.v
/usr/bin/time -o cvcstats.dat -a -p ./cvcsim > ${test}_cvcexe.out
echo >> cvcstats.dat
echo cvc interpreted >> cvcstats.dat
echo --------------- >> cvcstats.dat
/usr/bin/time -o cvcstats.dat -a -p cvc +interp test_$test.v > ${test}_cvcinterp.out
echo >> cvcstats.dat
done