blob: 8f6ae63f11539939ae66dc7db4843057a6c99723 (
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
|
#! /bin/sh
. ../../testenv.sh
analyze test_load.vhdl
elab test_load
if ghdl_has_feature test_load vpi; then
if [ "$OS" = "Windows_NT" ]; then
vpi_lib=`$GHDL --vpi-library-dir | sed -e 's!\\\\!/!g' -e 's!^C:!/C!g'`
echo vpi_lib: $vpi_lib
PATH="$PATH:$vpi_lib"
fi
$GHDL --vpi-compile -v gcc -c vpi1.c
$GHDL --vpi-link -v gcc -o vpi1.vpi vpi1.o
simulate test_load --vpi=./vpi1.vpi
rm -f vpi1.vpi vpi1.o
fi
clean
echo "Test successful"
|