-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrun.sh
42 lines (33 loc) · 942 Bytes
/
run.sh
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
34
35
36
37
38
39
40
41
42
#!/usr/bin/env sh
set -e
cd $(dirname "$0")
PY="python3"
if ! command -v "$PY"; then
PY="python"
fi
echo "> Analyze ../src/*.vhd and ./hdl/*.vhd"
ghdl -a --std=08 -frelaxed ../../src/VGA_config_pkg.vhd
ghdl -a --std=08 -frelaxed ../../src/VGA_sync_gen_idx.vhd
ghdl -a --std=08 -frelaxed ../../src/VGA_sync_gen.vhd
ghdl -a --std=08 -frelaxed ../../src/VGA_sync_gen_cfg.vhd
ghdl -a --std=08 -frelaxed ../../src/Design_Top.vhd
ghdl -a --std=08 -frelaxed ../../src/demo.vhd
ghdl -a --std=08 -frelaxed ../hdl/VGA_screen_pkg.vhd
ghdl -a --std=08 -frelaxed ../hdl/VGA_screen.vhd
ghdl -a --std=08 -frelaxed ../hdl/VGA_tb.vhd
echo "> Build caux.so"
ghdl -e \
--std=08 \
-frelaxed \
-Wl,-fPIC \
-Wl,caux.c \
-Wl,-shared \
-Wl,-Wl,--version-script=./py.ver \
-Wl,-Wl,-u,ghdl_main \
-o caux.so \
tb_vga
rm *.o *.cf
#echo "> Execute tb (save wave.ghw)"
#./tb --wave=wave.ghw
echo "> Execute run.py"
$PY run.py --wave=wave.ghw