Title: CS231 Fall 05 Review Session
1CS231 (Fall 05)Review Session
- Xiao Ma (xiaoma2_at_cs.uiuc.edu)
- Sep 23, 2005
2Who am I?
- Hey! My name is Xiao Ma, a new Ph.D.
student in the department of Computer Science at
UIUC. My research interests are system
architecture and operating system. Now Im a
member of Opera group.
- Questions? ? Raise hand!
- Wrong saying? ? Point out!
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
3TA and Students
I hope Im not a monster like this in your eyes. ?
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
4TA and Students
We have the same goal.
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
5Outline
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
6Decoder - General
A n-to-2n decoder takes an n-bit input and
produces 2n outputs. The n inputs represent a
binary number that determines which of the 2n
outputs is uniquely true.
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
7Decoder Whats inside?
Try to implement a 1-to-2 decoder. How about
2-4? 3-8?
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
8Decoder Expansion
- We can combine two same decoders by using EN
inputs.
AB decoder 2 2A2B decoder ?
AB decoder 2 (A1)2B decoder
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
9Decoder Active-high vs Active-low
- Active-high decoders generate minterms.
- Active-low decoders generate maxterms.
- Please refer to slides 17-23 in the lecture.
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
10Outline
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
11Multiplexer - General
- A 2n-to-1 multiplexer takes
- n select lines
- 2n data input lines
- makes
- 1 output
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
12Multiplexer Decoder?Multiplexer
- Can you use decoders and basic gates to make a
multiplexer?
Selector 1 Selector 0 Input 3 Input 2 Input
1 Input 0
Output
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
13Multiplexer - Efficient implementation
- We can actually implement a function with 3
variables with just one 22-to-1 mux, instead of
an 23-to-1.
n variables ? 2n-1 -to-1 multiplexer
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
14Multiplexer - Whats inside?
- How to use AND gates and OR gates to implement an
8-1 multiplexer.
- An NAND gates implementation of an 8-1
multiplexer.
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
15Outline
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
16Quiz Quiz 6 Question 4
- small decoders -gt bigger decoer
A XY decoder can be constructed using (how
many? k) AB decoders with enable. A single
decoder of size (mn) selects the appropriate
one of these AB decoders.
Answer
k Y / B
mn log2k k
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
17Quiz Quiz 7 Question 2
- Write the expression for multiplexer(s) by truth
table
Truth Table
K-Map
Expression
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
18Quiz Quiz 7 Question 2
- Write the expression for multiplexer(s) directly.
h zy zx
f (z)y zh zy z(zy zx) zy
zy
g yh yx y(zy zx) yx
y(zy)(zx) yx yzx yx xy xz
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
19Quiz Quiz 7 Question 3
- Use multiplexer in the efficient way without
using invertors.
What can you do to change the situation?
Use other variables as the selectors.
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
20Quiz Quiz 7 Question 4
- The same question as before!
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
21Outline
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
22MP Example - Problem
The input to your circuit will be the low 4
bits of the ASCII value for the character being
displayed. These values are shown as N3-N0 in the
truth table below. Since you are only
implementing letters A-J, you may assume that the
remaining six 4-bit patterns will never be used,
and so are don't care situations.
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
23MP Example - Problem
Your circuit will produce seven outputs, one for
each of the seven line segments. We'll name the
outputs T, U, V, W, X, Y, Z, as illustrated right.
A B C D E F G H
I J
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
24MP Example Truth Table
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
25MP Example K-Maps
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
26MP Example K-Map Simplification
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
27MP Example K-Map Simplification
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
28MP Example Two Level Implementation
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
29MP Example NAND Implementation
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
30MP Example Decoder Implementation
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
31MP Example Multiplexer Implementation
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
32Outline
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)
33THANK YOU!
Is this session helpful for you? Feed back is
welcome and appreciated!
CS231 Computer Architecture I (2005 Fall) Review
Session (9/23/2005) Xiao Ma (xiaoma2_at_cs.uiuc.edu)