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

Digital Logic Circuit Design: Laboratory #4

The document describes a series of digital logic circuit design experiments to be conducted in Laboratory #4. The experiments include: (1) designing and testing half and full adders using only XOR and NAND gates, (2) adding and subtracting 4-bit binary numbers using IC 7483 and verifying the output sums and carries, and (3) comparing two 4-bit input numbers using IC 7485 and recording the output signals indicating greater than, less than, and equality. The goal is to design and test fundamental digital logic circuits for addition, subtraction, and magnitude comparison.

Uploaded by

osama mahyoub
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Digital Logic Circuit Design: Laboratory #4

The document describes a series of digital logic circuit design experiments to be conducted in Laboratory #4. The experiments include: (1) designing and testing half and full adders using only XOR and NAND gates, (2) adding and subtracting 4-bit binary numbers using IC 7483 and verifying the output sums and carries, and (3) comparing two 4-bit input numbers using IC 7485 and recording the output signals indicating greater than, less than, and equality. The goal is to design and test fundamental digital logic circuits for addition, subtraction, and magnitude comparison.

Uploaded by

osama mahyoub
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Sana'a University

Faculty of Engineering
Mechatronics Department
Second Year

DIGITAL LOGIC CIRCUIT DESIGN

LABORATORY #4

ADDERS, SUBTRACTORS AND MAGNITUDE


COMPARATORS

Prepared by: Supervised by:


Osama Mohammed Mahyoub Eng.Essam Almizgagi
(2017/162)
Procedure(homework) :

a) Design using LogicWorks a half adder circuit using only XOR gates and NAND gates. Then during
the Lab construct the circuit and verify its operation.

A Sum
B

Carry

b) Design using LogicWorks a full adder circuit using only XOR gates and NAND gates. Then during
the Lab construct the circuit and verify its operation.

A
B
Sum
Cin

Cout

c) Use IC 7483 to add the two 4-bit numbers A and B shown in Table1. In LogicWorks, select
the chip 74-83 and use Binary switches for the bits of the two numbers and the input carry and
use Binary Probe for the sum and carry out.

0 Table 1.

1 A A A A B B B B
14

0 3 2 1 0 3 2 1 0 Sum Carry
1 16 CO
0 4
B3 1
1 7
B2 83 0 out
B1 15
0 11 S3 2 1
1 B0 1
S2
0 1 S1
6 1 0 0 1 0 0 1 0 1 0 1 1 0
A3 9
1 3 S0
8
A2
0 A1 0 1 1 0 1 0 1 1 0 0 0 1 1
1 10
A0 CI
0
1 1 0 0 1 0 1 0 0 1 1 0 1
13

1
0
1
0
d) Connect the adder-subtractor circuit as shown in Fig 2. Perform the following operations and
record the values of the output sum and the output carry Co.

Decimal Output sum Carry


X
A B Out Co
9+ 5 1 1 1 0 0

14
9- 5 0 1 0 0 0 16 CO
B3
4 X
9 + 13 0 1 1 0 1 7
B2 83 X
11
B1 15 X
B0 S3 2
9- 9 0 0 0 0 0 S2 6 X
1 S1
10 + 6 0 0 0 0 1 3
A3 9
S0
A2
8
6 - 10 1 1 0 0 0 A1
10
A0 CI

13
Table 2.
M

 Show that Co =1 when sum exceeds 15.


When sum exceeds 15 we need 5-bits to present the number, which means 4-bits with 1 as carry output.
 Comment on sum and Co for the subtraction operations when A > B and A < B.
For subtraction:
When A>B: The sum equals the difference with no carry output.
When A<B: The sum equals thd difference but in negative sign with no carry output.

e) Use IC7485 to compare the following two 4 bit numbers A and B. Record the outputs in table
3. Note that in LogicWorks you need to connect (A = B) input to logic 1 (as an indication that
previous stages are equal in multi-digit numbers) for correct results while this is not necessary
for the hardware.

A B Outputs 1
0
1001 0110 A>B 1 15 A3
1100 1110 A<B 0 13 A2 85 1
1 12 A1
A>B 5 0
0011 0101 A<B 0 10 A0
1 0
A=B 6
0101 0101 A=B 0 1 B3 A<B 7
1 14 B2
0 11 B1
Table 3. 9
1 B0
0 4 A>Bin
1 3 A=Bin
0 2 A<Bin
1
0
1
0
1
0
1
0

You might also like