Forked from mathieucaroff/download-buidl-and-install-ghdl.sh
Created
October 20, 2018 14:37
-
-
Save gustavohleal/6ad2961308f43f9b48641d42a2aec2ac to your computer and use it in GitHub Desktop.
Download build and install GHDL on Ubuntu 18.04 (tested 2018-09-28)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# download-buidl-and-install-ghdl.sh | |
# | |
# It took about 5 minutes on my laptop (2018-09-28). | |
sudo apt update | |
sudo apt install -y git make gnat zlib1g-dev | |
git clone https://github.com/ghdl/ghdl | |
cd ghdl | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
echo "$0: All done!" | |
# See the quick start guide to learn basic usage | |
# https://ghdl.readthedocs.io/en/latest/using/QuickStartGuide.html | |
# | |
# The two main commands are `ghdl -a` (analyse) and `ghdl -r` (run) | |
# If you copied the full adder example from the quick start guide into | |
# `full-adder.vhd` and `full-adder_tb.vhd`, you can use ghdl like so: | |
# | |
# ghdl -a full-adder.vhd full-adder_tb.vhd | |
# ghdl -r adder_tb | |
# > full-adder_tb.vhd:55:16:@8ns:(assertion note): end of test | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment