Lecture3 - Logic Operation Fundamentals
Lecture3 - Logic Operation Fundamentals
The truth table is such a table that lists all possible combinations of all
conditions and corresponding results
Basic logic operation
Any 0 then 0, all 1s then 1
AND logic operation truth table truth table
A B L A B L
Logic expression: false false false true = 1 0 0 0
L = A B = AB false true false 0 1 0
true false false false = 0 1 0 0
true true true 1 1 1
L
Other logic operation
NAND logic operation
When any of the inputs is LOW, the output will be HIGH.
For the case of two inputs Logic symbol: (NAND gate)
truth table
A
A B L L
Logic expression: B
0 0 1
L AB 0
1
1
0
1
1
Pulsed operation:
A
1 1 0
B
L
Other logic operation
Exclusive-OR (XOR) logic operation
Only if both input states are different, the output is HIGH.
XOR gate only has two inputs. A
Truth table
L A B L Z
B
Logic symbol 0 0 0 1
0 1 1 0
L AB A B 1 0 1 0
1 1 0 1
A B
Question: If L AB A B Z A B AB
What is the relation between L and Z ? A
Z
B
Z is exclusive-NOR (XNOR) logic operation.
Logic symbol
Equivalent logic symbols
A Z A Z
A
A
B
Z A
B
Z B
Z A
B Z
A
A
B
Z A
B
Z B
Z A
B
Z
Distributive law
A ( B + C ) = AB + AC
Here, each of the laws is illustrated with two or three variables, but
the number of variables is not limited to this.
Rules of Boolean algebra The proofs of these rules
are shown in textbook page
12 basic rules 168-170
1. A 0 A 7. A A A
2. A 1 1 8. A A 0
3. A 0 0 9. A A
4. A 1 A 10. A AB A
5. A A A 11 . A A B A B
6. A A 1 12. ( A B )( A C ) A BC
B ABC A B ABC C
C
C
Logical function expression
Solution
( b ) A B C AC BC
AC 1 BC 1 ( A 1 A)
A C ( B B ) BC ( A A ) ( A A 1)
ABC AB C ABC A BC (Distributive low )
Standard forms of Boolean expressions
The POS form (Product-of-Sums) and standard POS
form (product of maxterms)
Learn it by yourself
Logical function expression
Karnaugh Map
Mapping a logic function on K-Map
Karnaugh Map Simplification
Karnaugh Map
Karnaugh Map
A Karnaugh Map is a graphical representation of a logic
function’s truth table. Abbreviation K-Map.
It is a graphical style.
It can represent a logic function.
It is similar to a truth table.
“wrap-around” adjacency
Next item we are going to discuss
Karnaugh Map
Mapping a logic function on K-Map
logic Simplification by Karnaugh Map
Mapping a logic function on K-Map
Mapping directly from a truth table
Z Truth table
C
AB 0 1 ABC Z
00 1 0 0 0 1
0 0 1 0
01
0 1 0 0
11 1 1 0 1 1 0
1 0 0 1
10 1 1 0 1 0
1 1 0 1
1 1 1 1
Mapping a logic function on K-Map
Mapping a standard SOP expression
For a standard SOP expression, the 1 is placed on K-Map for
each product term in the expression.
Each 1 is placed in a corresponding to the value of a product term.
L
C
AB 0 1
Example :
00 1
L A B C A BC ABC 01 1
001 010 110 11 1
10
Mapping a logic function on K-Map
Mapping a nonstandard SOP expression
We can map a nonstandard SOP expression on a K-Map like filling
it in a truth table.
Example :
Truth table
L
L A AB ABC ABC L C
AB 0 1
0 0 0 1
0 0 1 1 00 1 1
0 1 0 1 01 1 1
0 1 1 1
1 0 0 1 11 1
1 0 1 1
10 1 1
1 1 0 1
1 1 1 0
Mapping a logic function on K-Map
Mapping a nonstandard SOP expression
Example :
L A C D ACD A BCD
L
CD
AB 00 01 11 10
00 1
01 1 1
11 1 1 1 1
10 1 1 1 1
Next item we are going to discuss
Karnaugh Map
Mapping a logic function on K-Map
Karnaugh Map Simplification
Karnaugh Map Simplification
The goal
The goal of using K-Map is to simplify logic functions.
The process that results in an expression containing the fewest
possible terms with the fewest possible variables is called
minimization.
wrap-around adjacency
Karnaugh Map Simplification
Step2: Determining the product term for each group
Variables that occur both uncomplemented and complemented within the group are
eliminated. These are called contradictory variables.
ABC
B
BC
AC
AC
AB
Karnaugh Map Simplification
Step2: Determining the product term for each group
BC
AB D
AC
AB D
AB C
Karnaugh Map Simplification
Step3: Summing the resulting product terms
ABC
B
BC
AC
AC
AB
Minimum SOP expression
A B C BC AB A C AC B
Karnaugh Map Simplification
Step3: Summing the resulting product terms
BC
AB D
AC
AB D A C A B AB D
AB C BC D AB C
Karnaugh Map Simplification
Example
Use a K-Map to simplify the following SOP expression:
W XY Z WXYZ WXY Z W YZ WXY Z
Solution: YZ
WX 00 01 11 10
Mapping the expression on a K-Map
00 1 1
Grouping the 1s
01 1
Determining the product terms and summing
them 11
WXZ W YZ XY Z 10 1 1 1
Karnaugh Map Simplification
Example
Use a K-Map to simplify the following SOP expression:
W XY Z WXYZ WXY Z W YZ WXY Z
Solution: YZ
WX 00 01 11 10
Mapping the expression on a K-Map
00 1 1
Grouping the 1s
01 1
Determining the product terms and summing
them 11
WXZ W YZ XY Z 10 1 1 1