Adder Subtractor
Adder Subtractor
Combinational circuit
design
Combinational circuit
When logic gates are connected together to produce a specified output
for certain specified combinations of input variables, with no storage
involved, the resulting circuit is called combinational logic circuit.
Binary Multiplier
Multiplexer
Demultiplexer
Encoder
Decoder
Comparator
Parity generator
Code converter
Design procedure
The design procedure of the combinational circuit involves
following steps :
A S
Half
B Adder C
Step 4: Derivation of truth table
Inputs Outputs
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Step 5: simplified Boolean expression for each output using
K-Map
B’ B B’ B
B 0 1 B 0 1
A A
A’ 0 0 0 1 1 A’ 0 0 0 0 1
A 1 1 2 03 A 1 0 2 13
S= AB’+A’B C=AB
= A⊕B
Step 6: Draw the logic diagram
Limitations of Half-Adder :
A S
Full
B
C Adder Cout
Step 4: Derivation of truth table
Inputs Outputs
A B C S Cout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Step 5: simplified Boolean expression for each output using
K-Map
A’ 0 0 1 0 1 S =A’B’C+A’BC’+AB’C’+ABC
0 1 3 2
=A’(B’c+BC’)+A(B’C’+BC)
A 1 1 0 1 0 = A’(B⊕C)+A(B⊕C)’
4 5 7 6
= A⊕B⊕C
A’ 0 0 0 1 0
0 1 3 2
A 1 0 1 1 1
4 5 7 6 Cout=AC+BC+AB
Step 6: Draw the logic diagram
Full adder using two half
adder
Design of subtractor
Another basic operation is the subtraction of two
binary digits.
A D
Half
B Subtractor
Bout
Step 4: Derivation of truth table
Inputs Outputs
A B D Bout
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Step 5: simplified Boolean expression for each output using
K-Map
B’ B B’ B
B 0 1 B 0 1
A A
A’ 0 0 0 1 1 A’ 0 0 0 1 1
A 1 1 2 03 A 1 0 2 03
D= AB’+A’B Bout=A’B
= A⊕B
Step 6: Draw the logic diagram
Limitations of half-subtractor :
A D
Full
B
C
Subtractor
Bout
Step 4: Derivation of truth table
Inputs Outputs
A B C D Bout
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
Step 5: simplified Boolean expression for each output
using K-Map
A’ 0 0 1 0 1
0 1 3 2 D=A’B’C+A’BC’+AB’C’+ABC
A 1 = A⊕B⊕C
1 0 1 0
4 5 7 6
A’ 0 0 1 1 1
0 1 3 2 Bout=A’C+BC+A’B
A 1 0 0 1 0
4 5 7 6
Step 6: Draw the logic diagram
Full subtractor using two
half subtractor
Parallel adder or ripple carry
adder
A single full-adder is capable of adding two one-
bit numbers and an input carry.
1 1 1 1 01 01
1 1 0 0 0
1 0 0 0C
Eg: 1 1 0 0 A
1 0 1 1 +
1 1 1 1 B
1 1 0 1 1
The two 4-bit numbers are 1100 (A3A2A1A0) and 1111 (B3B2B1B0).
01 01 11 10
1 1 0 Bout
Eg: 1 1 1 0 A -
0 1 1 0 0 0 1 1 B
1 0 1 1
1 0 1 1
0
Parallel subtractor
using Full adder
The subtraction of binary numbers can be done most
conveniently by means of complements.
A B S
0 0 0
0 1 1
Exor gate truth table
1 0 1
1 1 0
Parallel adder / subtractor
The addition and subtraction operations can be
combined into one circuit with one common
binary adder.
Y = 1 indicates sum is
greater than 9. We can
put one more term,
Cout in the above
expression to check
whether carry is one.
BCD adder
The two BCD numbers, together with input carry, are
first added in the top 4-bit binary adder to produce
a binary sum.