Skip to content

A repository for VHDL codes for Computer Architecture

Notifications You must be signed in to change notification settings

ArianArsenal/VHDL-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VHDL-Lab

A repository for VHDL codes for the Computer Architecture Course

🧨How To Run VHDL Codes

  1. Install the GHDL Compiler

  2. Add Path for GHDL in environment variables (for windows)

  3. Install GTKWave for showing wavelength

  4. use the following GHDL commands to synthesize and run your simulation

GHDL-Commands

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

About

A repository for VHDL codes for Computer Architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published