blob: 9d4a21fba351441820baa6f56c4d88c68a31a540 (
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
26
27
28
29
30
31
|
#! /bin/sh
. ../../testenv.sh
GHDL_STD_FLAGS=-fsynopsys
# Compare opers.
for f in adds subs unaries muls cmplt cmple cmpgt cmpge cmpeq cmpne shrs exts; do
analyze $f.vhdl
analyze tb_$f.vhdl
elab_simulate tb_$f > $f.ref
synth $f.vhdl -e > syn_$f.vhdl
analyze tb_$f.vhdl
elab_simulate tb_$f > $f.out
diff_nocr $f.out $f.ref
done
for t in sns01; do
synth $t.vhdl -e $t > syn_$t.vhdl
# No analysis because of conflict between numeric_std.unsigned and
# std_logic_arith.unsigned
# analyze syn_$t.vhdl
clean
done
synth_tb reduce
synth_tb add03
echo "Test successful"
|