Professional Documents
Culture Documents
7 - Binary Addition and Subtraction
7 - Binary Addition and Subtraction
To
Introduction to Digital Logic Fundamentals
(DLF)
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
LOGIC DIAGRAM
FULL-ADDER
A full adder is a combinational circuit that forms the arithmetic sum of three
input bits.
It consists of 3 inputs and 2 outputs.
Two of the input variables, represent the significant bits to be added.
The third input represents the carry from previous lower significant position.
Truth table &
Boolean expressions
LOGIC DIAGRAM
FULL ADDER WITH
2 -HALF ADDERS
HALF -SUBTRACTOR
Used to subtract one binary digit from another to
produce a DIFFERENCE output and a BORROW
output.
The BORROW output here specifies whether a ‗1‘ has
been borrowed to perform the subtraction.
Truth table & Boolean
expressions
LOGIC DIAGRAM
Comparing a Half-Subtractor
with a Half-Adder
SUM = DIFFERENCE
BORROW ≠ CARRY
Full Subtractor
Performs subtraction operation on two bits, a
minuend and a subtrahend.
Takes into consideration whether a ‗1‘ has already
been borrowed by the previous adjacent lower
minuend bit or not.
Truth table &
Boolean expressions
LOGIC DIAGRAM
FULL-SUBTRACTOR USING
2- HALF-SUBTRACTORS
Binary Adder (Parallel Adder)
The 4-bit binary adder using full adder circuits is capable of
adding two 4-bit numbers resulting in a 4-bit sum and a
carry output.
The 4-bit words to be added
C3 C2 C1 C0 = 11 1 0
A3 A2 A1 A0 = 1 1 1 1- (15)
B3 B2 B1 B0 = 0 0 1 1 – (03)
OUTPUT = 1 00 1 0 SUM
CARRY
OUT
Binary Adder (Parallel Adder)
0 1 0 1 1 1 1 1
1 1 1
1 0 0 1 0
Carry Propagation
Look-Ahead Carry Generator
• Example: 0011+ 0101
.
9/15/09 - L15 Decoders, Copyright 2009 - Joanne DeGroat, ECE, OSU 27
Multiplexers
And a full example
And more ripple -
.
9/15/09 - L15 Decoders, Copyright 2009 - Joanne DeGroat, ECE, OSU 41
Multiplexers