0% found this document useful (0 votes)
190 views8 pages

Sample Lab Report

This lab report describes an experiment on binary arithmetic. The objectives were to understand binary addition and subtraction, half and full adders, and binary coded decimal addition. Circuits for half adders, full adders, binary adders, ripple-carry adders, and binary coded decimal adders were drawn. Data tables were filled by performing addition and subtraction operations with the different adder circuits. The discussion summarizes how the adders were implemented and the concepts learned about performing binary arithmetic operations.

Uploaded by

Barnardo
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)
190 views8 pages

Sample Lab Report

This lab report describes an experiment on binary arithmetic. The objectives were to understand binary addition and subtraction, half and full adders, and binary coded decimal addition. Circuits for half adders, full adders, binary adders, ripple-carry adders, and binary coded decimal adders were drawn. Data tables were filled by performing addition and subtraction operations with the different adder circuits. The discussion summarizes how the adders were implemented and the concepts learned about performing binary arithmetic operations.

Uploaded by

Barnardo
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/ 8

North South University

Department of Electrical & Computer Engineering

LAB REPORT
Course Name: Digital Logic Design
Section: 02
Experiment Number: 05

Experiment Name: Binary Arithmetic

Experiment Date: March 16, 2021


Report Submission Date: March 23, 2021
Group Number:

Student Name: Kaniz Fatema Nabila Score

Student ID: 1912688042

Remarks:
Title: Binary Arithmetic
Objectives:
 Understand the concept of binary addition and subtraction.
 Learn about half and full binary adders.
 Perform binary addition and subtraction.
 Understand the concept of BCD addition and implement a BCD adder.
Theory:
Arithmetic operation is one of the most common functions encountered by a digital computer.
The most basic arithmetic operation is the addition of two binary digits. There are four
possible outcomes of binary addition for four possible combinations. These are; 0+0=0,
0+1=1, 1+0=0 and 1+1=10. The first three operation produces outcome of 1 bit, while the last
operation produces an outcome of 2 bits. Among the two bits the higher significant bit is
called ‘carry’. The carry obtained from the addition of two bits is added to the next higher
order pair of significant bits.
 Half Adder: The combinational circuit that performs the addition operation between two
bits is called a half adder. It produces a sum bit (S) and a carry bit (C) as output.
A B C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Fig: Half Adder Diagram and truth table

 Full Adder: The combinational circuit that performs the addition operation of three bits;
two significant bits and a previously carry bit is called a full adder.

Cin A B Cout S
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0

Fig: Full Adder Diagram and truth table 1 1 1 1 1


Circuit Diagram:

Fig: Half adder Fig: Half adder sub circuit

Fig: Full adder Fig: Full adder sub circuit

Fig: Binary Adder Subtractor


Data/ Table:

F.1 Experimental Data (Binary Adder-Subtractor):


Operation M A B C4 S4 S3 S2 S1

7+5 12 0111 0101 0 1 1 0 0


4+6 10 0100 0110 0 1 0 1 0
9 + 11 20 1001 1011 1 0 1 0 0
15 + 15 30 1111 1111 1 1 1 1 0
7–5 2 0111 0101 1 0 0 1 0
4–6 -2 0100 0110 0 1 1 1 0
11 – 2 9 1011 0010 1 1 0 0 1
15 – 15 0 1111 1111 1 0 0 0 0
Table F.1.1

F.2 Experimental Data (Ripple-Through-Carry Adder):


Operation A B Overflow Carry Sum

7+5 0111 0101 0 1100


Table F.2.1

F.3 Experimental Data (BCD Adder):


Decimal Binary Sum BCD Sum
value K Z3 Z2 Z1 Z0 C S3 S2 S1 S0
0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 1 0 0 0 0 1
2 0 0 0 1 0 0 0 0 1 0
3 0 0 0 1 1 0 0 0 1 1
4 0 0 1 0 0 0 0 1 0 0
5 0 0 1 0 1 0 0 1 0 1
6 0 0 1 1 0 0 0 1 1 0
7 0 0 1 1 1 0 0 1 1 1
8 0 1 0 0 0 0 1 0 0 0
9 0 1 0 0 1 0 1 0 0 1
10 0 1 0 1 0 1 0 0 0 0
11 0 1 0 1 1 1 0 0 0 1
12 0 1 1 0 0 1 0 0 1 0
13 0 1 1 0 1 1 0 0 1 1
14 0 1 1 1 0 1 0 1 0 0
15 0 1 1 1 1 1 0 1 0 1
16 1 0 0 0 0 1 0 1 1 0
17 1 0 0 0 1 1 0 1 1 1
18 1 0 0 1 0 1 1 0 0 0
19 1 0 0 1 1 1 1 0 0 1
Table F.3.1

Operation A B Overflow Sum


Carry

9+0 1001 0000 0 1001


9+1 1001 0001 1 0000
9+2 1001 0010 1 0001
9+3 1001 0011 1 0010
9+4 1001 0100 1 0011
9+5 1001 0101 1 0100
9+6 1001 0110 1 0101

9+7 1001 0111 0 0110


9+8 1001 1000 0 0111
9+9 1001 1001 0 1000
Table F.3.2
Discussion:
The name of the experiment is “Binary Arithmetic”. In this experiment we learned about
binary arithmetic operations; binary addition and subtraction. We learned about the
concept of binary half adder and full adder and how to implement them to perform binary
addition and subtraction operations. We also learned to perform the arithmetic operations
on Binary Coded Decimal or BCD.

In this experiment, at first we had to draw the half adder circuit using a XOR gate and a
AND gate connected to the XOR gate. The output of the XOR gate gives the ‘Sum’ value
and the output of the AND gate connected to the XOR gate shows the ‘Carry’ value. Then
clicking on the ‘Edit viewed circuit’s subcircuit appearance’ option we edited the
subcircuit placing its components in the right place and save the subcircuit. Then using
two half adder subcircuit we draw a full adder where the first half adder takes the binary
inputs and produces the ‘Sum’ which forwards to the second half adder as input. The
‘Carry’ value of each of the half adder are connected to an OR gate which gives out the
final ‘Carry out’ value and the second half adder gives out the final ‘Sum’ value of the
operation as outputs. Thus a full adder is produced using two half adder. Again, we edit
and save the subcircuit of the full adder the same way we did for the subcircuit of half the
adder.

With the help of a full adder subcircuit we produce a Binary Adder Subtractor. For this
we connect a NOT gate to the second input. We draw a Ripple-Through-Carry Adder
using 4 full adder to perform operation for 4 bit digit. It forms a relation between the bits
by acting as a Carry propagator. We used splitters to take 1 input of 4 bits. Using the
Ripple-Through-Carry Adder we can perform both addition and subtraction operation. In
this case, during addition operation, the Cin (Carry in) should be set to 0 whereas during
subtraction operation, we add a NOT gate with the input that is to be subtracted and the
Cin (Carry in) is set to 1. Then we draw the BCD adder using two full adders. The inputs
are connected to the first full adder which then propagates to AND and OR gates and
finally to the second half adder. Splitters are used to show the 4 bit outputs together.

Finally, we fill up the data tables by performing the arithmetic operations using different
types of Adders that we drew.

This experiment teaches how different types of Adders are built using the basic binary
addition concept in order to perform both addition and subtraction operations. The
concepts of this experiment is very important to understand the related topics of the
theory course properly. Hopefully, now it will be easier for me to understand the lectures
of the theory classes better.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy