0% found this document useful (0 votes)
2 views

LAB REPORT

Uploaded by

meera naaj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

LAB REPORT

Uploaded by

meera naaj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

German-Jordanian University

School of Electrical Engineering and Information Technology


Department of Computer Engineering

CE2120-Digital Systems Lab


Lab 3
NAME: MEERA MOAHMMED
ID: 20219302057
I. Objectives
The objective of this lab is to enhance the skills of the students in designing, wiring, and
testing logic circuits. In this experiment, students will design Excess-3 to BCD code
converter and BCD to Excess-3 code converter.
II. Theory
Pre-requisite:
Please watch the following video to prepare for this lab:

Binary codes for decimal digits


Code conversion:
The existing of different types of codes for the same discrete elements of information
results in the use of different codes by different digital systems. It is sometimes
necessary to use the output of one system as the input to the other. The conversion
circuit must be inserted between the two systems if each uses different codes for the
same information. Thus, a code converter is a circuit that makes the two systems
compatible even though each of them uses a different code. In this experiment, we shall
build two circuits, the first one converts from BCD to Excess-3 code, and the second one
converts from Excess3 to BCD code.

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

1. BCD code to Excess-3 code converter.


Consider the logic diagram below for BCD to Excess-3 code converter

Figure 1: BCD to excess-3 code converter.


a. Fill the truth table for the BCD to Excess-3 code converter.
Decimal Digit 8-4-2-1 BCD Excess-3 code

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

2. Excess-3 code to BCD code converter.


Consider the logic diagram below for Excess-3 code to BCD converter

Figure 2: Excess-3 to BCD code converter


a. Fill the truth table below for the BCD to Excess-3 code converter.
Decimal Digit Excess-3 code 8-4-2-1 BCD

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

You might also like