Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.48 KB

File metadata and controls

56 lines (41 loc) · 1.48 KB

Embedded-Systems-VHDL-Assignments

Running VHDL Programs in Ubuntu

To run VHDL programs in Ubuntu, follow these steps & type the commands in terminal.

Step 1: Update Package Lists. (Optional but recommended)

sudo apt update

Step 2: Install ghdl.

sudo apt install ghdl -y

Step 3: Install gtkwave.

sudo apt install gtkwave -y

You can check if ghdl and gtkwave have been installed or not by typing the following commands,

ghdl --version
gtkwave --version

If their versions show up they have been installed; otherwise there may have been some problems during installation.

Step 4: Navigate to Program Directory

Use commands like ls and cd to navigate to the directory containing the VHDL program.

Step 5: Compile and Generate Results

make

Step 6: Visualizing the program.

gtkwave result.vcd

Now, gtkwave will open, allowing you to visualize the results (waveform) of your VHDL program.

Step 7: Inside gtkwave select the testbench.

Select testbench

Step 8: Select the listed signals. (By double clicking at each of them)

Select Signals

Step 9: Initialize the visualiztion of waveform by clicking at the tick mark.

Click tick

You can zoom in & zoom out the waveform by clicking '+' & '-' respectively.