DLD Lab Report #9
DLD Lab Report #9
LAB REPORT
Objectives:
In this lab, we design and implement BCD to 7-Segment decoder. Moreover, we
learn how to use the 7-segment display of Nexys2 FPGA board.
Pre-Lab:
Background Theory:
7-Segment Display:
A seven-segment display (SSD) is a form of the electronic display device for displaying
decimal numerals. The seven elements of the display can be selected in different
combinations to represent the decimal numerals. Often the seven segments are
arranged in an oblique (slanted) arrangement, which aids readability. Seven-segment
displays may use a light-emitting diode (LED) or a liquid crystal display (LCD), for
each segment, or other light-generating or controlling techniques. There are two types
of simple LED package 7-Segment display:
1. Common Anode
2. Common Cathode
default: statement(s);
endcase
output reg Y;
input [3:0]I;
input [1:0]S;
always @ ( I or S)
begin
case ( S) //As MUX output is selected by selection line, here ‘S’, so
it is a switching variable
endcase
end
endmodule
Procedure
Make a circuitry as shown. Connect all the inputs and with the switches. Observe the
behaviour of a BCD to 7-Segment decoder on 7-Segment by choosing different BCD
values.
Figure #3: BCD to 7-Segment decoder (CD4511) with common cathode circuitry
Figure #4: BCD to 7-Segment decoder (CD4511) with common cathode circuitry
made on bread board
Inputs Outputs
A B C D a b c d e f g D He
P x
0 0 0 0 0 0 0 0 0 0 1 0 02
0 0 0 1 1 0 0 1 1 1 1 0 9e
0 0 1 0 0 0 1 0 0 1 0 0 24
0 0 1 1 0 0 0 0 1 1 0 0 0c
0 1 0 0 1 0 0 1 1 0 0 0 98
0 1 0 1 0 1 0 0 1 0 0 0 48
0 1 1 0 0 1 0 0 0 0 0 0 c0
0 1 1 1 0 0 0 1 1 1 1 0 1e
1 0 0 0 0 0 0 0 0 0 0 0 00
1 0 0 1 0 0 0 1 1 0 0 0 18
Post-Lab Task:
Make a stimulus for BCD to 7-Segment decoder (In-Lab Task 2).
Report synthesize key parameters such as resource utilization and critical path delay.
Wave Form:
Device Utilization Summary:
Net Delay:
Critical Analysis:
7-segment LED or LCD type displays, provide a very convenient way of displaying information or digital
data in the form of numbers, letters or even alpha-numerical characters. So, In this lab we are using it
for the display of 7 segment decoder for BCD. The seven elements of the display can be selected in
different combinations to represent the decimal numerals. Often the seven segments are arranged in an
oblique (slanted) arrangement, which aids readability. Seven-segment displays may use a light-emitting
diode (LED) or a liquid crystal display (LCD), for each segment, or other light-generating or controlling
techniques. There are two types of simple LED package 7-Segment display. We can use common anode
and common cathode depending upon device.