blob: dd6d640a63ea8f4063314cc7ac2213682418a747 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#! /bin/sh
. ../../testenv.sh
# Don't use grep -q, doesn't work on windows.
if ! "$GHDL" --dir ieee | grep vital > /dev/null; then
echo "No vital libraries, skipping"
exit 0
fi
"$GHDL" -i lib_numeric_tb.vhd
"$GHDL" -m numeric_tb
if ghdl_has_feature numeric_tb ghw; then
simulate numeric_tb --stop-time=10ns --wave=numeric_tb.ghw \
--sdf=typ==lib_numeric_tb.sdf
fi
clean
rm -f numeric_tb.ghw
echo "Test successful"
|