Skip to content

Instantly share code, notes, and snippets.

@debemdeboas
Created October 23, 2018 23:30
Show Gist options
  • Save debemdeboas/6858489c35850d9c297c8184935a81ab to your computer and use it in GitHub Desktop.
Save debemdeboas/6858489c35850d9c297c8184935a81ab 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