yosys/tests/realmath/run-test.sh

20 lines
332 B
Bash
Raw Normal View History

2014-06-14 19:56:22 +02:00
#!/bin/bash
set -e
rm -rf temp
mkdir -p temp
echo "generating tests.."
python generate.py
cd temp
echo "running tests.."
for ((i = 0; i < 100; i++)); do
echo -n "[$i]"
idx=$( printf "%05d" $i )
../../../yosys -q uut_${idx}.ys
iverilog -o uut_${idx}_tb uut_${idx}_tb.v uut_${idx}.v uut_${idx}_syn.v
2014-06-15 08:48:41 +02:00
./uut_${idx}_tb
2014-06-14 19:56:22 +02:00
done
echo