Professional Documents
Culture Documents
2 Adders and Substractors
2 Adders and Substractors
2 Adders and Substractors
1
Concept of Combinational Logic Circuits
Logic gates are connected together to produce a
specific output for certain specified combinations of
input variables, with no storage involved, the
resulting circuits is called combinational logic circuit.
Output depends only on the current inputs
Combinational circuits provide a higher level of
abstraction
Help in reducing design complexity
Reduce chip count
We look at some useful combinational circuits. 2
Concept of Combinational Logic Circuits:
Design Procedure:
Design of Combinational circuits start from the outlying
of the problem statement and ends in a logic diagram.
3
Design Procedure
Following Design Steps Involve in Designing a
Combinational Logic Circuits:
(1) Analyze the given problem and identify the number of
inputs and outputs
A B A B
S S
A B Cout S A B C Cout S
0 0 0 0 0 0 0 0 0
0 1 0 1 0 0 1 0 1
1 0 0 1 0 1 0 0 1
1 1 1 0 0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
S A B
1 1 0 1 0
Cout A B
S A B C 1 1 1 1 1
Cout MAJ ( A, B, C )
Combinational Circuits
Half Adder:
• Combinational logic circuits
give us many useful devices.
• One of the simplest is the half
adder, which finds the sum of
two bits.
• We can gain some insight as
to the construction of a half
adder by looking at its truth
table, shown at the right.
6
Combinational Circuits
7
Combinational Circuits
Full Adder:
• We can change our half
adder into to a full adder
by including gates for
processing the carry bit.
• The truth table for a full
adder is shown at the
right.
8
Combinational Circuits
9
Combinational Circuits
10
Combinational Circuits
11
Adders
• Half-adder
• Adds two bits
• Produces a sum and carry
• Problem: Cannot use it to build larger inputs
• Full-adder
• Adds three 1-bit values
• Like half-adder, produces a sum and carry
• Allows building N-bit adders
• Simple technique
• Connect Cout of one adder to Cin of the next
• These are called ripple-carry adders
Adders (cont.)
Adders (cont.)
A 16-bit ripple-carry adder
Adders (cont.)
• Ripple-carry adders can be slow
• Delay proportional to number of bits
• Carry lookahead adders
• Eliminate the delay of ripple-carry adders
• Carry-ins are generated independently
• C0 = A0 B0
• C1 = A0 B0 A1 + A0 B0 B1 + A1 B1
•...
• Requires complex circuits
• Usually, a combination carry lookahead and ripple-
carry techniques are used