ECE 213 Unit 2
ECE 213 Unit 2
Boolean Algebra
Simplification
SOP-POS/Minterm-Maxterm
K-Map
Logic Gate
Digital systems are said to be constructed by using logic gates.
These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
The basic operations are described below with the aid of truth tables
Truth tables are used to help show the function of a logic gate
produces an inverted
high output (1) if one or version of the input at its
high output (1) only if all its more of its inputs are high.
inputs are high output.
Logic Gate
NAND GATE NOR GATE
Which one of the following truth tables represents the behavior a NAND gate?
Practice Questions
A. A = 1, B = 1, C = 0
B. A = 0, B = 0, C = 0
C. A = 1, B = 1, C = 1
D. A = 1, B = 0, C = 1
If the input to a NOT gate is A and the output is X, then ________.
A. X=A
B. X=~A
C. X=0
D. none of the above
How many inputs of a four-input AND gate must be HIGH in order for the output of
the logic gate to go HIGH?
AB B C
C
X Y
X
XY
Circuit with Logic Gate
A AB
AB AB
AB
B
A B
( A B ) BC
BC
Circuit with Logic Gate
AB
AB C
C ( AB C ). D
( AB C ). D
Commutative law
Associative law
Distributive law
AND law
OR law
INVERSION law
De Morgan Law
Simplification
Simplify C BC
C (B C)
(C C ) B
1 B
1
Pr ove that x xy x
x(1 y ) x
xx
Simplification
Simplify ( A B C )
A.B.C
Sum-of-Products (SOP) - variables are operated by AND (product) are OR(sum) together
Product-of-sums (POS) - variables are operated by OR (sum) are AND (product) together
SOP Expression
Write AND term for each input combination produces HIGH
Write the input variables for 1 and compliment for 0.
OR the AND terms to obtain the output function.
POS Expression
F(POS)= F = (A + B + C) (A + B + C ‘) (A + B’ + C) (A’ + B + C)
A) 2 AND 1 OR
B) 1 AND 2 OR
The logic gate that will have HIGH or "1" at its output when any one of its inputs is HIGH
A) AND
B) OR
Which of the following equations would accurately describe a 4-input OR gate when A = 1, B = 1,
C = 0 and D = 0
A) 1 + 1 + 0 + 0 = 1
B) 1 + 1 + 0 + 0 = 0
A small circle on the output of a logic gate is used to represent
A) NOT
B) BUF
Output will be a LOW for any case when one or more inputs are zero
A) AND
B) OR
How many two-input AND and OR gates are required to realize Y = CD+EF+G
A) 2,3
B) 2,2
Compliment of XOR is
A) XNOR
B) XOR
(A+B)(C+D) present
A) 2 OR gate ANDed
B) 2 AND gate ORed
POS is compliment of SOP
A) True
B) False
Y=AB+BC+AC is
A) SOP
B) POS
Y=(A+B)(B+C)(C+A) shows
A) POS
B) SOP
KMAP
Karnaugh map is a tool for simplification of Boolean algebra
K-Map diagram is made up of squares
K-map is a graphical representation of SOP (Minterm)
K-Map extensively reduce the calculation and provides best minimized solution
K-map solve the expression with grouping of neighbor cells
3 variable
2 variable
3 variable
4 variable
Kmap Simplification Rule
1) Construct kmap and place 1’s in the squares according to the truth
table.
2) Groupings can contain only 1s
3) Groups can be formed only at right angles; diagonal groups are not
allowed.
4) The number of 1’s in a group must be a power of 2
5) The groups must be made as large as possible.
6) Groups can overlap and wrap around the sides of the Kmap.
7) Every group puts a term in the solution
Optimized Solution
Minimum number of group
Each group covers maximum possible squares
Kmap with Don’t Care
In a Kmap, a don’t care condition is identified by an X in the cell of the
minterm(s)
In simplification, we are free to include or ignore the X’s when creating our
groups.
X Z WZ
F(ABCD)=π(0,1,3) . d(5,7)