Professional Documents
Culture Documents
Algebra,
K Maps
CSE 140: Components and Design Techniques for
Digital Systems
Diba Mirza
Dept. of Computer Science and Engineering
University of California, San Diego
1
Announcements
HW 1 posted on TED and on the website,
due Wed (Jan 21 at 5pm)
Paperless quiz on Friday (multiple choice
based on lecture material)
Dont forget to bring your clickers, answers on
paper will not be accepted.
Shannons Expansion
Shannons expansion assumes a switching algebra
system
Divide a switching function into smaller functions
Pick a variable x, partition the switching function
into two cases: x=1 and x=0
f(x,y,z,)= xf(x=1,y,z,) + xf(x=0,y,z,)
<4>
Shannons expansion
Two flavors of the expansion
f(x)=xf(1)+xf(0)
f(x)= (x+f(0)). (x+f(1))
f(x,y)=xf(1,y)+xf(0,y)
f(x,y)=(x+f(0,y)).(x+f(1,y))
f(x,y,z,)=xf(1,y,z,)+xf(0,y,z,)
f(x,y,z,)=(x+f(0,y,z,)).(x+f(1,y,z,))
<5>
<6>
<7>
Shannons Expansion
Decompose the switching function into min terms
f(x,y)=xf(1,y)+xf(0,y)
<8>
Shannons Expansion
Decompose the switching function into max terms
f(x,y)=(x+f(0,y)). (x+ f(1,y))
<9>
(A+B)(A+C)(B+C)
=(A+B)(B+C)
1
+
1
1 1
1 0 1
1 1 1
1
Carryout
0 0
Carry bits
5
7
12
Sums
11
12
Full Adder
Truth Table
Cin
a
Sum
b
Carry
Id
a b cin
0
1
2
3
4
5
6
7
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
carry
sum
0
0
0
1
0
1
1
1
0
1
1
0
1
0
0
1
13
a b cin
0
1
2
3
4
5
6
7
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
carryout
0
0
0
1
0
1
1
1
a+b+c
a+b+c
a+b+c
a b c
a+b+c
a bc
a b c
abc
maxterm
minterm
14
a b cin
0
1
2
3
4
5
6
7
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
carryout
0
0
0
1
0
1
1
1
a+b+c
a+b+c
a+b+c
a b c
a+b+c
a bc
a b c
abc
PI Q: Is f1 = f2?
A.Yes
B.No
15
16
ABC+ABC+ABC+ABC
17
18
1-<19>
Flow 2:
1.Specification
2.Truth Table or Boolean function
3.Karnaugh Map (truth table in two
dimensional space)
4.Reduce using KMaps
5.Reduced expression (SOP or POS)
6.Schematic Diagram of Two Level Logic
20
0 f(0,0)
1 f(0,1)
0 f(1,0)
1 f(1,1)
A=0
A=1
B=0
f(0,0)
f(1,0)
B=1
f(0,1)
f(1,1)
21
0 0
1 1
0 1
1 1
A=0
A=1
B=0
B=1
Boolean expr:
22
23
24
0 f(0,0)
1 f(0,1)
0 f(1,0)
1 f(1,1)
A=1
B=0
AB
AB
B=1
AB
AB
25
ID A
f(A,B)
A=0
B=0
B=1
0
1
0
1
A=1
2
3
1
1
26
A=0
f(A,B)
B=0
B=1
0
1
0
1
AB
A=1
2
3
AB
1
1
AB
f(A,B) = A + B
27
Next Lecture
Quiz (multiple choice based on material
covered so far)
Bring your clickers for the quiz, paper
submissions will not be accepted
29