blob: 7c67c425cb38dad143cf798b1215efa60fc2774e (
plain)
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
|
#! /bin/sh
. ../../testenv.sh
GHDL_STD_FLAGS="-fsynopsys -fexplicit"
# Compare opers.
for s in u s; do
for f in adds subs unaries muls cmplt cmple cmpgt cmpge cmpeq cmpne shrs; do
analyze $s$f.vhdl
analyze tb_$f.vhdl
elab_simulate tb_$f > $s$f.ref
synth $s$f.vhdl -e > syn_$s$f.vhdl
analyze tb_$f.vhdl
elab_simulate tb_$f > $s$f.out
diff_nocr $s$f.out $s$f.ref
done
clean
done
echo "Test successful"
|