Circuit Configuration of ALU (Combination Circuit) : FE Vol.1 - Chapter
Circuit Configuration of ALU (Combination Circuit) : FE Vol.1 - Chapter
1 - Chapter(1)
(Combination Circuit)
2
kwwk
Circuit Configuration of ALU
• ALU (Arithmetic and Logical Unit) is a unit that performs arithmetic operations and logical
operations.
3
kwwk
Logic Circuit
• A logic gate is a basic building block of a digital circuit, which is used to implement a
Boolean function.
• Computers often chain logic gates together, by taking the output from one gate and using
it as the input to another gate are called a logic circuit.
• Logical circuit that performs logical operations for logical processing of instructions by
computers.
• Logical operations refer to arithmetic operations that have only two truth values of True (1)
and False (0).
4
kwwk
Logic operation
5
kwwk
Truth Table
• The table used to represent the boolean expression of a logic gate function is commonly
called a Truth Table.
• A logic gate truth table shows each possible input combination to the gate or circuit with
the resultant output depending upon the combination of these input(s).
• The total number of possible combinations of binary inputs to a gate is determined by the
following formula: N = 2n
6
kwwk
MIL Symbol Logic gate and Truth table
BUFFER
Note:
The electric circuit is often represented using the US army MIL symbol
(US MILitary standard, MIL-STD).
7
kwwk
Types of logic circuit
1. Sequential circuit
2. Combination circuit
8
kwwk
Combination circuit
• Combinational circuit is a circuit in which we combine the different gates in the circuit.
• There are various types of combination circuits, from basic circuits for implementing basic
logical operations (logical product, logical sum, negation) to circuits formed by combining
these basic circuits.
9
kwwk
Different types of Combination circuit
10
kwwk
AND circuit
11
kwwk
OR circuit
12
kwwk
NOT circuit
13
kwwk
Combination of the basic circuits - NAND circuit
• This circuit performs negative logical product (negative AND) operation (NAND).
• NAND operation is the arithmetic operation that negates the results of AND operation.
X Y X NAND Y
0 0 1
0 1 1
1 0 1
1 1 0
14
kwwk
Combination of the basic circuits - NOR circuit
• This circuit performs negative logical sum operation (NOR). NOR operation is the arithmetic
operation that negates the results of OR operation.
X Y X NOR Y
0 0 1
0 1 0
1 0 0
1 1 0
15
kwwk
Exclusive-OR (XOR) circuit
• XOR circuit is also formed by combining the basic circuits that are used extensively in building
arithmetic logic circuits, computational logic comparators and error detection circuit.
X Y X xor Y
0 0 0
0 1 1
1 0 1
1 1 0
16
kwwk
Logical design of XOR circuit
• Focus on the parts where the output of the truth table is 1 and determine AND operation
where the result is 1 on the basis of the input at that time.
X Y X xor Y
0 0 0
0 1 1
1 0 1
1 1 0
17
kwwk
Logical design of XOR circuit
• Create a circuit where the output will be 1 when either of the AND operations you
determined is 1. In order to design such a circuit, determine logical expression F where
two AND operations are combined with OR operation.
18
kwwk
Logical design of XOR circuit
• Determine the circuit diagram by combining the basic circuits such that it represents
logical expression F.
(¬X . Y) + (X .¬ Y)
19
kwwk
Logical design of XOR circuit
(X + Y) . ( ¬X + ¬Y)
20
kwwk
21
kwwk
Universal gates
• A gate which can be used to create any Logic gate is called Universal Gate.
• NAND and NOR are called Universal Gates because all the other gates can be created by
using these two gates.
22
kwwk
Universal gates
NAND Result
X
Y
Y
23
kwwk
Universal gates
X X
X X
Y
Y
X
X
Y Y
24
kwwk
Timing diagram
• A timing diagram is the graphical representation of input and output signals as functions of
time.
• A timing diagram plots voltage (vertical) with respect to time (horizontal).
25
kwwk
Boolean algebra
• Boolean Algebra specifies the relationship between Boolean variables which is used to
design combinational logic circuits using Logic Gates.
𝐴 + 𝐵 = 𝐴ഥ . 𝐵ഥ A + (B . C) = (A + B) . (A + C)
A =A
A . (B + C) = (A . B) + (A . C)
𝐴 . 𝐵 = 𝐴ഥ + 𝐵ഥ
27
kwwk
Q1. Which of the following is equivalent to the logic circuit below?
X Y X (X + Y) Z X Y X
0 0 1 0 0 0 0 0
0 1 1 1 0 0 1 0
1 0 0 0 1 1 0 1
1 1 0 0 1 1 1 1
28
kwwk
Q1. Which of the following is equivalent to the logic circuit below?
29
kwwk
Karnaugh Maps
• Karnaugh Maps offer a graphical method of reducing a digital circuit to its minimum
number of gates.
• The map is a simple table containing 1s and 0s that can express a truth table or complex
Boolean expression describing the operation of a digital circuit.
• The map needs one cell for each possible binary word applied to the inputs.
30
kwwk
Constructing Karnaugh Maps
Figure 1. 2 input circuits with inputs A and B require maps with 22 = 4 cells
Figure 2. 3 input circuits with inputs A, B and C require maps with 23 = 8 cells
BC
B
A 0 1 00 01 11 10
A
0 0
1 1
Figure 1 Figure 2 31
kwwk
Constructing Karnaugh Maps
Figure 3. 4 input circuits with inputs A, B, C and D require maps with 24 = 16 cells
CD
00 01 11 10
AB
00
01
11
Figure 3 10
32
kwwk
Karnaugh Maps-Rules of Simplification
33
kwwk
Karnaugh Maps-Rules of Simplification
• That is if n = 1, a group will contain two 1's since 21 = 2. If n = 2, a group will contain four
1's since 22 = 4.
34
kwwk
Karnaugh Maps-Rules of Simplification
35
kwwk
Karnaugh Maps-Rules of Simplification
36
kwwk
Karnaugh Maps-Rules of Simplification
• Groups may wrap around the table. The leftmost cell in a row may be grouped with the
rightmost cell and the top cell in a column may be grouped with the bottom cell.
37
kwwk
SOP (Sum of Product) and POS (Product of Sum)Form
A B C Output
SOP (Sum of Product)
0 0 0 1
A.B.C+A.B.C+A.B.C+A.B.C+A.B.C
0 0 1 0
0 1 0 1
POS (Product of Sum)
0 1 1 1
1 0 0 0 (A + B + C) . (A + B + C ) . (A + B + C)
1 0 1 0
1 1 0 1
1 1 1 1
38
kwwk
Logical Sum (OR)
B
A 0 1
0 0 1 Group 1
1 1 1
Group 2
Group 1 = B
Group 2 = A
A+B
39
kwwk
Karnaugh Maps Exercise
A B C Output
BC
0 0 0 1 00 01 11 10
A
0 0 1 1
0 1 1 1 0
0 1 0 0
0 1 1 1
1 0 1 0 0
1 0 0 0
1 0 1 1
Group 1 =
1 1 0 0
Group 2 =
1 1 1 0
Group 3 =
40
kwwk
Thanks for watching