Embedded System VHDL Lab

VHDL code and test cases for embedded system lab. The code is compiled using GHDL and the waveforms is visualized using GTKWave. The development environment used is Visual Studio Code (VSCode).

Prerequisites

Ensure you have the following software installed on your system:

  • GHDL
  • GTKWave
  • xilinx

Getting Started

Cloning the Repository

git https://github.com/ashishbasaula/Embeeded-

Installing GHDL

Follow the instructions on the GHDL GitHub repository to install GHDL on your system.

Installing GTKWave

Follow the instructions on the GTKWave website to install GTKWave on your system.

Execution process

  • Go to the problem directory whose make file you want to create. For eg: If you want to create make file for mux
$ cd mux
  • Run the Makefile by running make command as
$ make
  • This creates result.vcd and
  • You can view content of result.vcd as
$ cat Makefile
  • Finally, to observe output in graphical representation, run following command
$ gtkwave result.vcd

This launches the gtkwave and you can now visualize the output waveform by selecting signals.

Project Structure

VHDL LAB/
|-- Decoder/
|   |-- code.vhdl
|   |-- code_tb.vhdl
|   |-- result.vcd
|   |-- Makefile
|   |-- readme.md
|-- demux/
|   |-- ...
|-- d_flip_flop/
|   |-- ...
|-- full_adder/
|   |-- ...
|-- full_adder_using_half_adder_and/
|   |-- ...
|-- gcd/
|   |-- ...
|-- jk_flip_flop/
|   |-- ...
|-- lcm/
|   |-- ...
|-- readme.md