04 - Introduction To VHDL
04 - Introduction To VHDL
For simulation, the user has to supply to the simulator “test vectors” for the inputs and
expected outputs.
CAD TOOL–BASED LOGIC DESIGN
• Synthesis :
A synthesis tool is used to translate the design described in a design entry method (usually, a program
in VHDL or Verilog) into a physically realizable circuit. The same tool is also used to optimize the
circuit.
CAD TOOL–BASED LOGIC DESIGN
• Place and Route (P&R) :
P&R, also known as the physical design phase, is where the gates are placed and interconnected (routing) to complete the
circuit.
• An HDL (Language Description Language) is a
formal design tool
e d
e d e d
ARCHITECTURE
Example: Gate Level Design
ONE-bit comparator
𝑒𝑞 𝑖0 · 𝑖1 𝑖0 · 𝑖1
Example: Gate Level Design
ONE-bit comparator
Example: Gate Level Design
ONE-bit comparator
-- Comment
-- Comment
Example: Gate Level Design
ONE-bit comparator
ARCHITECTURE: Defines
the functionality of a
circuit.
Example: Gate Level Design
ONE-bit comparator
Designed Circuit
Pay attention
to the port
declaration
EXAMPLE : TWO-bit comparator
EXAMPLE : TWO-bit comparator
Vectors
idem
EXAMPLE : TWO-bit comparator
ENTITY declaration in
OneBitEquality
Component instantiation
in twoBitEquality
Testbench
• Simulation is the ONLY tool for debugging complex digital
systems.
• Digital simulators are discrete event simulators:
• To model the states of inputs and outputs along time
looking for events that change such states
• A event can generate new events, either in now or in
the future.
• While no events occur, the system does not change.
Testbench
After a circuit is generated, it can be simulated to
verify the correctness of the circuit operation and
can be synthesized to a physical device.
Note: The PROCESS statement will be discussed in depth further in the course. At this point the
statement is needed to generate test vectors in the creation of comprehensive testbenches.
Testbench: WAIT FOR and AFTER statements
• WAIT FOR time; Only used inside a process