Implementation of Digital Circuit Using VHDL
Implementation of Digital Circuit Using VHDL
OF DIGITAL
CIRCUIT USING
VHDL
By: Avinash Sanapala
What is VHDL ?
There are 4 different components that are used in the given design are :
3 bit Synchronous Counter
Sequence Detector of 101(using FSM)
Full Adder
2 Half Adder
The device :
The device interacts with the environment by 4 ports.
Clock,reset,Din,Dout.
Internal Structure
3 bit Synchronous Counter
Clock and reset are inputs.
Temp_seg (3 bit) is the output.
Architecture :
Sequence detector of 101 using FSM
Fsm is a mathematical model of computation. It is an abstract machine that can be in
exactly one of a finite number of states at any given time. Designed this Fsm using
Moore Machine. The number of states used in detecting this pattern are 4.
The architecture is defined as :
Top Module
Instantiate all the 3 components in the Top and map the internal signals respectively
:
Verification of the Design.
The testbench is a VHDL code that plays the role of a complete simulation environment.
The entity of a testbench does not have any ports because the testbench is the highest hierarchy
level in the test environment.
The instantiation of DUT in Tb :
Clock Generation