aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue672/testsuite.sh
blob: 59d28b17a33aba6cf3d272b129bfa487af07f9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

. ../../testenv.sh

analyze SQR.vhd SQRTb.vhd
elab sqrtb
simulate sqrtb --stop-time=1us

if ! simulate --time-resolution=fs sqrtb --stop-time=1us; then
    echo "skip --time-resolution tests"
else
    simulate --time-resolution=ns sqrtb --stop-time=1us --disp-time | sed -e 's/.*info/info/' > sqrtb.out
    diff_nocr sqrtb.ref sqrtb.out
fi

rm -f sqrtb.out
clean

echo "Test successful"