Introduction To VHDL: Logic Design and Switching Theory Lab
Introduction To VHDL: Logic Design and Switching Theory Lab
Introduction to VHDL
Introduction to VHDL
VHDL stands for VHSIC (Very High Speed Integrated
Circuits) Hardware Description Language.
In the mid-1980’s the U.S. Department of Defense and
the IEEE sponsored the development of this hardware
description language with the goal to develop very high-
speed integrated circuit.
Other hardware description languages are Verilog and
System Verilog.
Now these languages have become industry standards for
making application specific integrated circuits (ASICs).
Engr. Nabeel Khalid
Lecturer
FOE,UCP
12/7/21
Introduction to VHDL
These languages look similar as conventional
programming languages, there are some important
differences.
A hardware description language is inherently parallel, i.e.
commands, which correspond to logic gates, are executed
(computed) in parallel, as soon as a new input arrives.
While the other programming languages are sequential
languages like C,C++.
Hardware Description
VHDL deals with a given component from two point of
views
External view of the component as seen by the others.
Multiple internal views describing component function.
• One view might describe the structure of the design
• Another view might describe the function of the design.
Digital System
A digital system can be represented at different levels of
abstraction. This keeps the description and design of
complex systems manageable. The figure below shows
different levels of abstraction.
Structural Level
The structural level, on the other hand, describes a
system as a collection of gates and components that are
interconnected to perform a desired function.
A structural description could be compared to a
schematic of interconnected logic gates. It is a
representation that is usually closer to the physical
realization of a system.
For example, an XOR gate is the combination of ‘AND’ and
‘OR’ gates, so it will represented by the combination of
these gates.
Engr. Nabeel Khalid
Lecturer
FOE,UCP
12/7/21
Behavioral Modeling
The highest level of abstraction is the behavioral level
that describes a system in terms of what it does (or how it
behaves) rather than in terms of its components and
interconnection between them.
A behavioral description specifies the relationship
between the input and output signals.
For example
An ‘OR’ gate has a behavior of an Adder, So, its behavior will
be represented by sum function.
Z=X+Y
Engr. Nabeel Khalid
Lecturer
FOE,UCP
12/7/21
Entity Declaration
The entity declaration defines the NAME of the entity and
lists the input and output ports. The general form is as
follows,
entity entity_name is
port (signal_names: mode type;
signal_names: mode type;
:
signal_names: mode type);
end [entity_name ] ;
Engr. Nabeel Khalid
Lecturer
FOE,UCP
12/7/21
Entity Declaration
The entity declaration defines the NAME of the entity and
lists the input and output ports. The general form is as
follows,
entity entity_name is
port (signal_names: mode type;
signal_names: mode type;
:
signal_names: mode type);
end [entity_name ] ;
Engr. Nabeel Khalid
Lecturer
FOE,UCP
12/7/21
Entity Declaration
mode: is one of the following reserved words to indicate the
signal direction:
Entity Declaration
type: a built-in or user-defined signal type. Examples of types are
bit, bit_vector, Boolean, character, std_logic, and stc_ulogic.
Test Bench
Itis module in VHDL which helps to check the behavior of
the VHDL entity.
In writing test bench code in VHDL, we follow same rules
which are followed for writing code for an entity.
In test bench, different simulation condition are provided
in the form of code.
Against these conditions, a specific entity is being tested.
Any Questions……..