Dldlab 10
Dldlab 10
Eman Fatima
Name Safia Mahnoor
SP24-BAI-015
Registration No. SP24-BAI-046
BSAI-2
Class
Dr. Muhammad Rizwan Azam
Instructor’s Name
Lab Assessment
Post Lab Total
In-Lab
Data Presentation Data Analysis Writing Style
Page 1 of 7
Pre-Lab:
• Objectives:
The objective of this experiment is to understand Binary Coded
Decimal (BCD) representation and its use in digital electronics by designing a BCD
to 7-segment decoder. This involves creating a combinational logic circuit that
translates BCD inputs into signals to drive a 7-segment display and is verified using
simulation tools such as Xilinx.
• Introduction:
1) BCD to 7-segment decoder:
A BCD to 7-segment decoder is a digital circuit that converts a 4-bit BCD input
into the appropriate outputs to drive a 7-segment display. Each digit from 0 to 9 is
displayed using a specific combination of segments, controlled by the outputs of the
decoder.
➢ The display is widely used in digital clocks, calculators, and electronic meters.
Truth Table:
Z A B C D E F G Display
Digit
0000 1 1 1 1 1 1 0 0
0001 0 1 1 0 0 0 0 1
0010 1 1 0 1 1 0 1 2
0011 1 1 1 1 0 0 1 3
0100 0 1 1 0 0 1 1 4
0101 1 0 1 1 0 1 1 5
0110 1 0 1 1 1 1 1 6
0111 1 1 1 0 0 0 0 7
1000 1 1 1 1 1 1 1 8
1001 1 1 1 1 0 1 1 9
others 0 0 0 0 0 0 0 Blank
Page 2 of 7
In-Lab:
• Proteus Simulation:
• Gate-level Model:
Page 3 of 7
• Stimulus:
• Simulation:
Page 4 of 7
Post-Lab:
Modify the BCD to 7-segment decoder circuit to handle invalid BCD
inputs (1010 to 1111). Implement a mechanism to turn off the 7-segment display or
display a specific pattern (e.g., all segments off) for invalid inputs. Simulate the
modified circuit in Proteus and verify the error handling functionality.
• Proteus Simulation:
This figure shows that when we put an invalid input, all of the lights turned
off.
• Gate-level Model:
Page 5 of 7
• Stimulus:
• Simulation:
Page 6 of 7
Conclusion:
The experiment successfully demonstrates the design and
implementation of a BCD to 7-segment decoder. The decoder converts a 4-bit BCD
input into accurate outputs for driving the display, showcasing the practical
application of combinational logic. This experiment enhances understanding of
digital system design, Boolean logic, and the integration of theoretical knowledge
into practical systems.
----------------------------------
Page 7 of 7