Lecture#9
Lecture#9
lecture No 10
A
Output Bits
Input Bits
Cout
Half-Adder
2
Functions of Combinational
Logic
• Function table for a half adder circuit
Input Output
A B Su Carry Out
m
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
– The sum output can be produced by an XOR
gate
– The Carry-Out output can be produced by an
AND gate 3
Functions of Combinational
Logic
• Half Adder circuit
A
B
Cout
Sum AB AB A B
C arryOut AB
4
Functions of Combinational
• Full Adder Logic
– Accepts two input bits and an input carry and
generates a sum output and an output carry
– Adds three single bit numbers
– Logic symbol
A
Output Bits
Input Bits
Cin Cout
Full-Adder
5
Functions of Combinational
• Function table ofLogic
a Full Adder
Input Output
A B Carry Su Carry Out
In m
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
6
Functions of Combinational
Logic
• SOP simplification for the Sum output
Sum ABC ABC ABC ABC
Sum A B C
• SOP simplification for the carry-out output
C
Cout
Sum A B C
C arry out C (A B) AB
8
Combinational Logic Circuits
• Adjacent 1s Detector
– Simplified circuit implementation
A
B
C
D F
A A
B B
C C
F D F
D