This file contains 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 |
This file contains 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/bash | |
echo "Checking syntax..." | |
ghdl -s --ieee=synopsys full_adder.vhd cla_4bits.vhd sum_cla_8b.vhd sub_cla_8b.vhd cod.vhd ULA.vhd ULA_tb.vhd | |
ghdl -a --ieee=synopsys full_adder.vhd cla_4bits.vhd sum_cla_8b.vhd sub_cla_8b.vhd cod.vhd ULA.vhd ULA_tb.vhd | |
echo "Generating executable file..." | |
ghdl -e --ieee=synopsys ulatb | |
ghdl -r --ieee=synopsys ulatb --vcd=ulatbwave.vcd | |
echo "Opening gtkwave..." | |
gtkwave -o -g ulatbwave.vcd |