Download presentation
Presentation is loading. Please wait.
1
Combinational Circuits
2
Designing Combinational Circuits
In general we have to do following steps: Problem description Input/output of the circuit Define truth table Simplification for each output Draw the circuit
3
Half Adder A B Sum Carry 1
4
Half Adder
5
Full Adder A B Cin Sum Cout 1
6
Full Adder
7
Implementing a Full adder using two half adders
8
Binary Adder
9
4 bit 2’s complement Subtractor
= 1
11
Parallel Binary Adder
12
Integrated Circuit Parallel Adder ( IC Parallel Adder ) 4- Bits adder
13
BCD Adder
14
BCD Adder When the sum of two digits is less than or equal to 9 then the ordinary 4-bit adder can be used But if the sum of two digits is greater than 9 then a correction must be added “I.e adding 0110” We need to design a circuit that is capable of doing the correct addition
15
BCD Adder The cases where the sum of two 4-bit numbers is greater than 9 are in the following table: S4 S3 S2 S1 S0 1 10 11 12 13 14 15 16 17 18
16
BCD Adder Whenever S4=1 (sums greater than 15)
Whenever S3=1 and either S2 or S1 or both are 1 (sums 10 to 15) The previous table can be expressed as: X = S4 + S3 ( S2 + S1) So, whenever X = 1 we should add a correction of 0110 to the sum.
17
Inputs:[A]=0101, [B]= 0011, Co=0 0011 0101 1000 1 0000
18
Inputs:[A]=0111, [B]= 0110, Co=0 0110 0111 1 1 1 1101 1 0110
19
Example Determine the inputs and the outputs when the above circuit is used to add 538 to 247. Assume a CARRY IN = 0 Solution: Represent the decimal numbers in BCD = = Put these numbers in registers [A] and [B] [A] = [B] =
20
Introduction Why is a Carry Look Ahead Adder important?
The CLA is used in most ALU designs It is faster compared to ripple carry logic adders or full adders especially when adding a large number of bits. The Carry Look Ahead Adder is able to generate carries before the sum is produced using the propage and generate logic to make addition much faster.
21
Equations for Logic of 4-bit CLA
Gi = Ai.Bi Pi = (Ai Å Bi) C1 = G0 + P0.C0 C2 = G1 + P1.C1 = G1 + P1.G0 + P1.P0.C0 C3 = G2 + P2.G1 + P2.P1.G0 + P2.P1.P0.C0 C4 = G3 + P3.G2 + P3.P2.G1 + P3P2.P1.G0 + P3P2.P1.P0.C0 Si = Ai Å Bi Å Ci = PiÅ Ci.
22
8 4 2 1
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.