A repository for VHDL codes for the Computer Architecture Course
🧨How To Run VHDL Codes
-
Install the GHDL Compiler
-
Add Path for GHDL in environment variables (for windows)
-
Install GTKWave for showing wavelength
-
use the following GHDL commands to synthesize and run your simulation
use -s for non-testbench .vhd files
use -a for all .vhd files including
use -e for testbench file
use -r for testbench file followed by --vcd=out.vcd
check below for example:
🎇checks syntax
ghdl -s [filename].vhd
🎇analyzes file
ghdl -a [filename].vhd
🎆analyzes TestBench
ghdl -a [filename_tb].vhd
🎆evaluates TestBench
ghdl -e [filename_tb]
🎆runs TestBench
ghdl -r [filename_tb] --vcd=out.vcd
🎈Open vcd file in GTKWAVE
gtkwave out.vcd