Computer Organization Architecture - Topic 3
Computer Organization Architecture - Topic 3
• OR operation
Logic addition • symbol “ + ”
NOT Operator
Truth Table
• Truth Table A table that shows how circuit reaction for
all combinational input
• Left-hand side input values
• Right-hand side result for the circuit
• Number of possible input combination 2N
N - number of variables (integer)
A
LOGIC GATE X
B
INPUT OUTPUT
ple
Exa
m
A B X (or F)
0 0 0
0 1 1
1 0 1
1 1 1
LOGIC GATES
• GATES An electronic circuit
• Function: To perform AND, OR, NOT, NAND and
NOR operations
OR GATE
• OR GATE operates logic addition operation
• Example: F(A,B) = A + B, so the output is F = A + B
A B X (or F) = A + B
0 0 0
0 1 1
1 0 1
1 1 1
X=A+B
B
AND GATE
• AND GATE operates logic multiplication operation
• Example: F(A,B) = A·B or AB, so the output is
F=AB
A B X (or F) = A·B
0 0 0
0 1 0
1 0 0
1 1 1
A
X = A·B
B
NOT FUNCTION
• NOT function represents the opposite situation
• It has one input and one output
• The output is inversion of the input entered
A X (or F) = Ā
0 1
1 0
A X=Ā
NOR FUNCTION
• Combination of OR and NOT gate
A B A+B A+B
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
X=A+B
B
NAND FUNCTION
• A combination of AND gate and NOT gate
A
X = A·B
B
EXCLUSIVE-OR (XOR) FUNCTION
• Symbol for exclusive-or is
• Output is TRUE if there are different value of
combination input A B X=AB
0 0 0
0 1 1
1 0 1
1 1 0
X=AB
B
EXCLUSIVE-NOR (XNOR) FUNCTION
• Symbol for exclusive-nor (XNOR) is or
• Output is TRUE if there are same value of
combination input
Since XNOR is complement for XOR
A B X=AB
so, 0 0 1
____ 0 1 0
• XNOR = XOR
____ __ 1 0 0
• A B = AB @ AB+AB 1 1 1
X=AB
B
COMBINATIONAL CIRCUIT
Boolean Expression
_
X = A·B + B·C
Truth table
A B C A·B B’ B’·C X = A·B + B’·C
0 0 0 0 1 0 0
0 0 1 0 1 1 1
0 1 0 0 0 0 0
0 1 1 0 0 0 0
1 0 0
0 1 0 0
1 0 1
1 1 0 0 1 1 1
1 1 1 1 0 0 1
1 0 0 1
Example 2 : Draw the circuit and develop a truth table X=A·B +
A·C A·B + A·C
A A·B
B X=A·B + A·C
C A·C
A B C A·B A·C Q = A·B + A·C
0 0 0 0 0 0
0 0 1 0 0 0
0 1 0 0 0 0
0 1 1 0 0 0
1 0 0 0 0 0
1 0 1 0 1 1
1 1 0 1 0 1
1 1 1 1 1 1
KARNAUGH MAP ( K–MAP )
• Karnaugh map (K-map)
• A pictorial method used to minimize Boolean expressions
• Steps involve:
Eliminate the variable that can be cancelled to form the simplified expression
Plot into K-Map
TRUTH TABLE K-MAP
A B X 2 variables
4 boxes
0 0 0
0 1 1 A’ A
1 0 1 B’
1 1 1 0 1
B 1 1
K-MAP
3 variables
8 boxes
A B C X
0 0 0 0 A’B’C’
0 0 1 0 A’B’C
0 1 0 1 A’BC’
0 1 1 1 A’BC
1 0 0 0 AB’C’
1 0 1 0 AB’C
1 1 0 1 ABC’
1 1 1 1 ABC
A’ A
B’ 0 1
B 0 1
AB
A
AB’
So, AB + AB’ = A
• Example 2 : AB + A’B + A’B’
A’ A
B’ 1 0
B 1 1
A’B’
GROUP 1 A’
A’B
A’B
GROUP 2 B
AB
So, AB + A’B + A’B’ = A’ + B
• Example 3: Simplify the logic diagram below.
Solution:
X = A’B + AB’ + AB
A’ A
B’ 0 1
B 1 1
AB’
GROUP 1 A
AB
A’B
GROUP 2 B
AB
So, A’B + AB’ + AB = A + B
Example 3 variables
• Example 1: ABC + AB’C + A’BC + A’BC’ + A’B’C’ + A’B’C
GROUP 1
A’B’C’ GROUP 2
A’B’C
A’BC’ A’BC
A’B’C A’ ABC C
A’BC AB’C
So, ABC + AB’C + A’BC + A’BC’ + A’B’C’ + A’B’C = A’ + C
• Example 2: A’B’C’ + A’B’C + AB’C + A’BC’ + AB’C’ + ABC’
A’B’ A’B AB AB’
C’ 1 1 1 1
C 1 0 0 1
A’B’C’ GROUP 2
A’B’C’
GROUP 1
A’BC’ A’B’C
C’ B’
ABC’ AB’C’
AB’C’ AB’C
ABC’ A’BC
GROUP 1 GROUP 2 BC
AB’C’ ABC
A
ABC
AB’C
Synchronous Asynchronous
• Changes happen at a • No general control in
decided time by a this system
general signal control • Changes in output
• If there is a clock happen when input
pulse, changes will changes
happen