aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/sns01/testsuite.sh
blob: 4a4ff76cd7a3eca2509db9e68751760193d77452 (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
32
33
#! /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 --strip-trailing-cr $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_analyze sns02
clean

synth_tb add03

echo "Test successful"