LAB REPORT
LAB REPORT
Binary Coded Decimal (8-4-2-1 BCD) code is a numeric code that represents numeric
information, i.e. only numbers as a series of 0’s and 1’s. In this experiment, the 8-4-21
BCD code represents the digits of a decimal number by encoding each digit one at a time
into group of four binary digits.
Excess-3 is a non-weighted code. The Excess-3 code for the decimal number is obtained
in the same manner as 8-4-2-1 BCD except that decimal number 3 is added to each
decimal unit before encoding it to binary.
In this experiment, we are interested in building two converters that convert decimal
digits in the range 0-9 from Excess-3 to BCD code, and the second converter from BCD to
Excess-3 code.
III. Preparations
Page 1
of 5 Dr.
Rami Alazrai
German-Jordanian University
School of Electrical Engineering and Information Technology
Department of Computer Engineering
A B C D W X Y Z
0 0 0 0 0 0 0 1 1
1 0 0 0 1 0 1 0 0
2 0 0 1 0 0 1 0 1
3 0 0 1 1 0 1 1 0
4 0 1 0 0 0 1 1 1
5 0 1 0 1 1 0 0 0
6 0 1 1 0 1 0 0 1
7 0 1 1 1 1 0 1 0
8 1 0 0 0 1 0 1 1
9 1 0 0 1 1 1 0 0
Page 2
of 5 Dr.
Rami Alazrai
German-Jordanian University
School of Electrical Engineering and Information Technology
Department of Computer Engineering
b. From the circuit, derive the Boolean expression that describes each output (W, X, Y, and
Z) in terms of the inputs (A, B, C, and D).
Z=D’
Y= (C.D) +(C+D)’
X=(B.(C+D)’) + (B’. (C+D))
W= A+ (B. (C+D))
c. Using the Logisim software, simulate the circuit in Figure 1 and compare the simulation
results with the results obtained in part 1.a.
D C B A Z Y X W
0 0 0 0 1 1 0 0
0 0 0 1 1 1 0 1
0 0 1 0 1 1 1 0
0 0 1 1 1 1 1 1
0 1 0 0 1 0 1 0
0 1 0 1 1 0 1 1
0 1 1 0 1 0 0 1
0 1 1 1 1 0 0 1
1 0 0 0 0 0 1 0
1 0 0 1 0 0 1 1
1 0 1 0 0 0 0 1
1 0 1 1 0 0 0 1
1 1 0 0 0 1 1 0
1 1 0 1 0 1 1 1
1 1 1 0 0 1 0 1
1 1 1 1 0 1 0 1
Page 3
of 5 Dr.
Rami Alazrai
German-Jordanian University
School of Electrical Engineering and Information Technology
Department of Computer Engineering
Z Y X W D C B A
0 1 1 0 0 0 0 0 0
1 0 0 1 0 1 0 0 0
2 1 0 1 0 0 1 0 0
3 0 1 1 0 1 1 0 0
4 1 1 1 0 0 0 1 0
5 0 0 0 1 1 0 1 0
6 1 0 0 1 0 1 1 0
7 0 1 0 1 1 1 1 0
8 1 1 0 1 0 0 0 1
9
0 0 1 1 1 0 0 1
Page 4
of 5 Dr.
Rami Alazrai
German-Jordanian University
School of Electrical Engineering and Information Technology
Department of Computer Engineering
b. From the circuit, derive the Boolean expression that describes each output (A,
B, C, and D) in terms of the inputs (W, X, Y, and Z).
D=Z-Y’(XW)’)
C=Y-(X∙W)’
B=X-W
A=W-1
c. Using the Logisim software, simulate the circuit in Figure 2 and compare the
simulation results with the results obtained in part 2.a.
Z Y X W D C B A
0 0 0 0 1 1 0 1
0 0 0 0 1 1 1 0
0 0 1 0 1 1 1 1
0 0 1 1 0 0 0 0
0 1 0 0 0 0 0 1
0 1 0 1 0 0 1 0
0 1 1 0 0 0 1 1
0 1 1 1 0 1 0 0
1 0 0 0 0 1 0 1
1 0 0 1 0 1 1 0
1 0 1 0 0 1 1 1
1 0 1 1 1 0 0 0
1 1 0 0 1 0 0 1
1 1 0 1 1 0 1 0
1 1 1 0 1 0 1 1
1 1 1 1 1 1 0 0
Page 5
of 5 Dr.
Rami Alazrai