Skip to content

Instantly share code, notes, and snippets.

View gustavohleal's full-sized avatar

Gustavo Henrique Leal gustavohleal

View GitHub Profile
@debemdeboas
debemdeboas / run.sh
Created October 23, 2018 23:30
VHDL Compiler and Simulator
#!/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