Skip to content

Instantly share code, notes, and snippets.

@gustavohleal
Forked from debemdeboas/run.sh
Created October 23, 2018 23:41
Show Gist options
  • Save gustavohleal/7db1e5b4b03ae94da1630cdc741348ec to your computer and use it in GitHub Desktop.
Save gustavohleal/7db1e5b4b03ae94da1630cdc741348ec to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment