blob: 87aca6597c6fbf3c742bf5d6713c5516fb53f12d (
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
|
# Testsuite environment
set -e
if [ x"$GHDL" = x ]; then
GHDL=ghdl
fi
if [ x"$YOSYS" = x ]; then
YOSYS="yosys -m ../../ghdl.so"
fi
analyze ()
{
echo "analyze $@"
"$GHDL" -a $GHDL_STD_FLAGS $GHDL_FLAGS $@
}
synth ()
{
echo "synthesize $@"
"$YOSYS" -p "ghdl $@; synth_ice40 -blif out.blif"
}
clean ()
{
echo "Remove work library"
"$GHDL" --remove $GHDL_STD_FLAGS
rm -f out.blif
}
|