EECS 16B Designing Information Devices and Systems II
Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit
EECS 16B Designing Information Devices and Systems II
Fall 2019 UC Berkeley Final Exam
Section 0: Pre-exam questions (4 points)
1. Tell us about something you are proud of this semester. (2 pt)
2. What are you looking forward to in winter break? Describe how you will feel. (2 pts)
Do not turn this page until the proctor tells you to do so. You can work on Section 0 above before time starts.
3. Transistor Behavior (12 pts)
For all NMOS devices in this problem, Vtn = 0.5V. For all PMOS devices in this problem, |Vt p|= 0.6V.
(a) (4 pts) Which is the equivalent circuit for the right-hand side of the circuit? Fill in the correct bubble.
−+1V
−+ 2V
Ron, N
−+ 2V
Circuit A
Ron, N
−+ 2V
Circuit B
A B
(b) (4 pts) Which is the equivalent circuit for the right-hand side of the circuit? Fill in the correct bubble.
−+0.4V RL
−+ 2V
RL
−+ 2V
Circuit A
RL
Ron,P
−+ 2V
Circuit B
RL
Ron,P
−+ 2V
Circuit C
A B C
(c) (4 pts) Which is the equivalent circuit for the right-hand side of the circuit? Fill in the correct bubble.
−+0.7V
−+ 2V
Ron,N
Ron,P
−+ 2V
Circuit A
Ron,N
Ron,P
−+ 2V
Circuit B
Ron,N
Ron,P
−+ 2V
Circuit C
Ron,N
Ron,P
−+ 2V
Circuit D
A B C D
4. Filter Design and Bode Plots (28 pts)
On the Bode plots below, we have plotted the magnitude responses of first-order low pass filters and high
pass filters using the example of cutoff frequency ω0 = 106.
103 104 105 106 107 108 109
10−4
10−3
10−2
10−1
100
101
ω
|H
(
jω
)|
Lowpass Bode Plot (ω0 = 106)
103 104 105 106 107 108 109
10−4
10−3
10−2
10−1
100
101
ω
|H
(
jω
)|
Highpass Bode Plot (ω0 = 106)
Recall that the transfer functions for such simple low pass filters and high pass filters are:
Hlowpass( jω) =
1
1+ jωω0
; Hhighpass( jω) =
jω
ω0
1+ jωω0
.
(a) (6 pts) We want to design a bandpass filter that can pass through a 2.4GHz WiFi signal while blocking
other interfering signals — FM radio at 100MHz and WiGig at 60GHz. (Recall: Mega = 106 and Giga
= 109.) We will achieve this by cascading lowpass and highpass filters, using ideal op-amp buffers in
between to prevent any loading effects.
Unfortunately, when we look in the lab, we only see inductors, 1kΩ resistors, and op-amps.
We will start by cascading a single highpass filter followed by a single lowpass filter, with an op-amp
buffer in between. Using only op-amps, two inductors, and resistors (as many as needed), draw
the full band-pass filter. Label Vin and Vout and label the two inductors with L1 and L2. Do not worry
about picking the values for L1 and L2 in this part.
(b) (8 pts) One interfering signal that we want to block is the WiGig signal at 60GHz. If we want to atten-
uate/reduce the magnitude of the WiGig signal by a factor of about
√
101≈ 10, What is a candidate
‘cutoff frequency’ (in Hz) desired for this lowpass filter?
What inductance value should we use for the lowpass filter? Recall that we only have resistors with
1kΩ resistance. It is fine to give your inductance as a formula — you don’t have to simplify it.
For your convenience, here are some calculations that may or may not be relevant:
60×109
2pi = 9.549×109 2.4×10
9
2pi = 382×106 100×10
6
2pi = 15.9×106
60×109×2pi = 377×109 2.4×109×2pi = 15.08×109 100×106×2pi = 628×106
(HINT: Look at the relevant Bode plot and read off how far away in frequency from ω0 you need to be
to reduce the magnitude by the desired factor of around 10.)
(c) (14 pts) Another interfering signal that we want to block is FM radio at 100MHz and we want to reduce
its magnitude by a factor of around 100. We decide to use multiple highpass filters in a row (separated
by ideal op-amp buffers) to attenuate the FM radio signal more strongly. We design the system with
the highpass filter cutoff frequencies all at 1GHz. In this case, what inductor value should each of
the highpass filters use? Recall that we only have resistors with 1kΩ resistance. It is fine to give your
inductance as a formula — you don’t have to simplify it.
For your convenience, here are some calculations that may or may not be relevant:
60×109
2pi = 9.549×109 2.4×10
9
2pi = 382×106 100×10
6
2pi = 15.9×106
60×109×2pi = 377×109 2.4×109×2pi = 15.08×109 100×106×2pi = 628×106
How many highpass filters must we cascade in order to attenuate the FM signal at 100MHz by a
factor of around 100?
Draw the full circuit for your complete filter including op-amp buffers, the lowpass filter, and
the highpass filters.
5. Controllable Canonical Form (26 pts)
Suppose that we have a two-dimensional continuous time system governed by:
d
dt
~x(t) =
[
1 −1
0 −4
]
~x(t)+
[
1
1
]
u(t)
We would like to put this system into Controllable Canonical Form (CCF) to use state feedback to place the
eigenvalues at desired locations. For your convenience, the characteristic polynomial det
λ I−[1 −1
0 −4
]=
(λ −1)(λ +4) = λ 2+3λ −4.
(a) (4 pts) Is the system stable? Why or why not?
(b) (16 pts) Recall that our original system is:
d
dt
~x(t) =
[
1 −1
0 −4
]
~x(t)+
[
1
1
]
u(t) with det
λ I−[1 −1
0 −4
]= λ 2+3λ −4.
We would like to change coordinates to bring the system into CCF:
d
dt
~z(t) =
[
0 1
a0 a1
]
~z(t)+
[
0
1
]
u(t)
Compute the T basis such that~z(t) = T−1~x(t) or equivalently (if you want), give us T−1 directly.
To help you along, here are some calculations already done for you:[
1 0
1 −4
]−1
=
1
4
[
4 0
1 −1
]
[
0 1
1 a
]−1
=
[
−a 1
1 0
]
What is a0? What is a1?
(c) (6 pts) Using state feedback
u(t) =
[
k˜0 k˜1
]
~z(t)
place the closed-loop eigenvalues at λ1 =−1, λ2 =−2. What is k˜0? What is k˜1?
(Notice that we are asking for the feedback gains in terms of~z(t) not the original ~x(t). If you have
time, feel free to check your work by the original~x(t).)
6. You knew this was coming (16 pts)
In the last midterm, you began solving a minimum norm problem in which we had a wide matrix A and
wanted to solve A~x=~y while minimizing the norm ‖C~x‖ whereC was also a wide matrix. You then focused
on some special cases where certain matrices were assumed to have orthonormal columns. The nonorthonor-
mal case wasn’t resolved. This question is about the heart of what remains to be resolved.
Suppose that we have a matrix A f , but we don’t know whether or not the columns of A f are linearly in-
dependent or orthonormal. How can you use the results from the SVD A f = U fΣ fV>f = ∑
r
i=1σ f ,i~u f ,i~v>f ,i
to help project a vector ~s onto the subspace spanned by the columns of A f ? Here, the σ f ,1, . . . ,σ f ,r are all
strictly positive. Give an expression for a matrix Pf such that Pf~s is the projection of~s in the subspace
spanned by the columns of A f .
Also give an expression for an~x f so that A f~x f = Pf~s.
7. Movie Ratings and PCA (36 pts)
Recall from the lecture on PCA that we can think of movie ratings as a structured set of data. For every
person i and movie j, we have that person’s rating Ri, j (thought of as a real number).
Suppose that there are m movies and n people. Let’s think about arranging this data into a big n×m matrix
R with people corresponding to rows and movies corresponding to columns. So the entry in the i-th row and
j-th column should be Ri, j above.
(a) (6 pts) Suppose we believe that there is actually an underlying pattern to this rating data and that a
separate study has revealed that every movie is characterized by a set of characteristics: say action and
comedy. This means that every movie j has a pair of numbers a[ j],c[ j] that define it. At the same time,
every person i has a pair of sensitivities sa[i],sc[i] that essentially define that person’s preferences. A
person i will rate the movie j as Ri, j = sa[i]a[ j]+ sc[i]c[ j].
If we arrange the sensitivities into a pair of n-dimensional vectors ~sa,~sc, and the movie characteristics
into a pair of m-dimensional vectors~a,~c, use outer products to express the rating matrix R in terms
of these vectors ~sa,~sc,~a,~c.
Recall that the outer product of a real vector ~u with a real vector ~v is ~u~v> — the reverse order as
compared to the usual inner product.
(b) (6 pts) Now suppose that we want to discover the underlying nature of movies from the data R itself.
Suppose for this part, that you have four observed rating data vectors (corresponding to four different
movies being rated by six individuals).
All of the movie data vectors just happened to be multiples of the following 6-dimensional vector
~v=
2
−2
3
−4
4
0
. (For your convenience, note that ‖~v‖= 7.)
You arrange the movie data vectors as the columns of a matrix R given by:
R=
−~v −2~v 2~v 4~v
(1)
You want to perform PCA (for movies) using the SVD of the matrix R to better understand the pattern
in your data.
The first “principal component vector” is a unit vector that tells which direction we would want to
project the columns of R onto to get the best rank-1 approximation for R.
Find this first principal component vector of R to explain the nature of your movie data points.
(HINT: You don’t need to actually compute any SVDs in this simple case. Also, be sure to think about
what size vector you want as the answer. Don’t forget that you want a unit vector!)
(c) (12 pts) Suppose that now, we have two more data points (corresponding to two more movies being
rated by the same set of six people) that are multiples of a different vector ~p where:
~p=
6
3
−2
0
0
0
. (For your convenience, note that ‖~p‖= 7 and that ~p>~v= 0.)
We augment our ratings data matrix with these two new data points to get:
R=
−~v −2~v 2~v 4~v −3~p 3~p
(2)
Find the first two principal components corresponding to the nonzero singular values of R. This is
what we would use to best project the movie data points onto a two-dimensional subspace.
What is the first principal component vector? What is the second principal component vector?
Justify your answer.
(Hint: Think about the inner product of~v and ~p and what that implies for being able to appropriately
decompose R. Again, very little computation is required here.)
(d) (12 pts) In the previous part, you had
R=
−~v −2~v 2~v 4~v −3~p 3~p
with ‖~v‖= 7 and ‖~p‖= 7, satisfying ~p>~v= 0.
If we use~ri to denote the i-th column of R, plot the movie data points~ri projected onto the first and
second principal component vectors. The coordinate along the first principal component should be
represented by horizontal axis and the coordinate along the second principal component should be the
vertical axis. Label each point.
−32 −28 −24 −20 −16 −12 −8 −4 4 8 12 16 20 24 28 32
−24
−20
−16
−12
−8
−4
4
8
12
16
20
24
2026-01-23