aboutsummaryrefslogtreecommitdiffstats
path: root/doc/using/UART_srcs/vhpi/makefile
diff options
context:
space:
mode:
author1138-4EB <1138-4EB@users.noreply.github.com>2017-03-02 00:24:57 +0100
committertgingold <tgingold@users.noreply.github.com>2017-12-10 12:02:05 +0100
commit28d9ddf0e2aff8fe6937949f54285cae9ee478a7 (patch)
tree0b91e072680c96493037360f7c05f1568912a99c /doc/using/UART_srcs/vhpi/makefile
parent13a5256846f946d646a21faf221001f9ba15044d (diff)
downloadghdl-28d9ddf0e2aff8fe6937949f54285cae9ee478a7.tar.gz
ghdl-28d9ddf0e2aff8fe6937949f54285cae9ee478a7.tar.bz2
ghdl-28d9ddf0e2aff8fe6937949f54285cae9ee478a7.zip
Add raw sources of tutorial 'How to simulate an UART VHDL code with ghdl}' by 'René Doß'
Diffstat (limited to 'doc/using/UART_srcs/vhpi/makefile')
-rw-r--r--doc/using/UART_srcs/vhpi/makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/using/UART_srcs/vhpi/makefile b/doc/using/UART_srcs/vhpi/makefile
new file mode 100644
index 000000000..fdf5bc3b0
--- /dev/null
+++ b/doc/using/UART_srcs/vhpi/makefile
@@ -0,0 +1,22 @@
+
+
+
+all:
+
+ rm -rf work
+ mkdir work
+
+ ghdl -a --work=work --workdir=work tty_pkg.vhd
+ gcc -c -fPIC tty.c -o tty.o
+
+ ghdl -a --work=work --workdir=work ../capitalisation/capitalisation.vhd
+ ghdl -a --work=work --workdir=work tb_tty.vhd
+
+ ghdl -e -Wl,tty.o --ieee=synopsys -fexplicit --workdir=work -Pwork tb_tty
+# ghdl -r tb_tty --wave=tbench.ghw
+ ghdl -r tb_tty --wave=tbench.ghw --stop-time=500000us
+
+
+view:
+ gtkwave tbench.ghw a.gtkw
+