Docsity

Diodes - Electrical Engineering and Computer Sciences - Exam, Exams of Computer Science

Toggle sidebar
bg1
Electrical Engineering 42/100 Department of Electrical Engineering and Computer Sciences
Summer 2012 University of California, Berkeley
Instructor: Tony Dear
Final Exam: Friday, August 10, 2012
Last Name: First Name:
SID:
Discussion (circle one): 9-11am (Jerry) 10-12pm (John) 12-2pm (William) 2-4pm (Dennis)
Notes and Instructions
1. Fill out the information above as clearly and accurately as possible.
2. You have 110 minutes to complete this exam.
3. This exam contains five questions, on a total of sixteen pages (including this one).
4. Do all your work and box all answers on the provided paper; do not hand in loose papers.
5. None of the questions require long-winded calculations. Show your work clearly and concisely; partial
credit will be given, but unclear or unnecessarily complicated work may be penalized.
6. Two sheets of notes may be used on this exam.
7. You may not communicate with anyone else during the course of the exam, nor are electronic computa-
tional devices allowed. Academic dishonesty policies will be enforced.
8. The staff wishes you the best of luck, both on this exam and in all your future endeavors. It’s been an
awesome semester!
I have read all of the above instructions and agree to comply with them. All of the work on this exam is my own,
and I had no prior knowledge of the exam contents.
Signature:
The logic gates and CMOS circuit look like they’re about to commence battle. :P
Question Q. 1 Q. 2 Q. 3 Q. 4 Q. 5 Total
Score /15 /15 /30 /20 /20 /100
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Diodes - Electrical Engineering and Computer Sciences - Exam and more Exams Computer Science in PDF only on Docsity!

Electrical Engineering 42/100 Department of Electrical Engineering and Computer Sciences Summer 2012 University of California, Berkeley Instructor: Tony Dear

Final Exam: Friday, August 10, 2012

Last Name: First Name:

SID:

Discussion (circle one): 9-11am (Jerry) 10-12pm (John) 12-2pm (William) 2-4pm (Dennis)

Notes and Instructions

  1. Fill out the information above as clearly and accurately as possible.
  2. You have 110 minutes to complete this exam.
  3. This exam contains five questions, on a total of sixteen pages (including this one).
  4. Do all your work and box all answers on the provided paper; do not hand in loose papers.
  5. None of the questions require long-winded calculations. Show your work clearly and concisely; partial credit will be given, but unclear or unnecessarily complicated work may be penalized.
  6. Two sheets of notes may be used on this exam.
  7. You may not communicate with anyone else during the course of the exam, nor are electronic computa- tional devices allowed. Academic dishonesty policies will be enforced.
  8. The staff wishes you the best of luck, both on this exam and in all your future endeavors. It’s been an awesome semester!

I have read all of the above instructions and agree to comply with them. All of the work on this exam is my own, and I had no prior knowledge of the exam contents.

Signature:

The logic gates and CMOS circuit look like they’re about to commence battle. :P

Question Q. 1 Q. 2 Q. 3 Q. 4 Q. 5 Total

Score /15 /15 /30 /20 /20 /

This page intentionally left blank

5 u(t) A 3 Ω

vD (t) iD

(c) (3 points) Suppose the “capacitance” of the diode is CD = 1 μF (10−^6 F). What is the time constant τ associated with it?

(d) (6 points) Sketch the voltage vD (t) across the diode as a function of time. Label key values on the vD axis. Remember that a charging capacitor reaches about 63% of its final value after one time constant τ. Don’t forget to account for the diode’s breakdown region!

t

vD (t)

(^0) τ 2 τ 3 τ

  1. Moar Diode Madness

William is having so much fun with diodes that he has constructed the following nightmare. Fortunately, you remember that you can always break the problem up into pieces that you can analyze separately.

vo(t)

v+(t) vL(t)

C RL

1 kΩ

1 kΩ

C

vin(t)

  • 3 V

For this entire problem, we can make the following assumptions:

  • We are in AC steady-state, such that we can ignore all transient effects.
  • The capacitances C are large, such that discharging effects are negligible.
  • The op amp is ideal.
  • All diodes are ideal with a turn-on voltage of 0 V.

Finally, the input signal is vin(t) = 5 sin(t) V.

(a) (5 points) Sketch the voltage v+(t). Be sure to label peak values.

t

v+(t)

3. FFFFFFFFUUUUUUUUUUU

Jerry is trying to design an amplifier for the hundredth time. This time, he has turned to MOSFETs, specifically the common-source configuration. He has pulled up the following NMOS specs and designed the circuit as follows.

VG +

vin(t)

RD = 1 kΩ

20 V

vo(t)

RS = 500 Ω

K = .01 A/V^2

Vto = 2 V

1 kΩ

(a) (10 points) Recall that the transconductance of the transistor is given by

gm = 2K(VGS − Vto) = 2

KIDS (1)

Given that Tony has demanded gm = 20 mS (0.02 S), find the necessary bias VG that should be applied at the gate to achieve this.

VG +

vin(t)

RD = 1 kΩ

20 V

vo(t)

RS = 500 Ω

K = .01 A/V^2

Vto = 2 V

1 kΩ

(b) (12 points) Draw the equivalent small-signal model of the circuit and show that the gain is given by Av =

vo vin

−gmRD 1 + gmRS

Be sure to label all components and values.

  1. Introducing... the NYAN gate!

Dennis has finally perfected the NYAN gate and is ready to add it to the current repertoire of logic gates. Its logic gate symbol is shown below:

A

B

C

N

Unlike most other logic gates, the NYAN gate takes in exactly three inputs. The truth table showing all its possible input/output combinations is as follows:

A B C N 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 0

(a) (2 points) Is the NYAN gate commutative? Briefly justify why or why not.

(b) (6 points) Write the SOP Boolean expression for the output N in terms of the inputs A, B, and C. Simplify it into a sum of two terms only.

(c) (8 points) Implement your simplified expression from above with a logic gate circuit. Clearly indicate the inputs A, B, and C, as well as the output N. For full credit, use no more than 4 logic gates.

(d) (4 points) Now help Dennis implement the NYAN gate using CMOS digital logic. He already has the pull-down network in; your job is to fill in the pull-up network above it. For full credit, use no more than 4 transistors (you may use inverted inputs).

Pull-Down

Network

N

GND

J

K

Q 0

Q 0

Clk

Clk

J

K

Q 1

Q 1

Clk

(b) (4 points) The first feature we want to add is the ability to pause the timer. Suppose we add in a new input P ; when P = 1, the timer keeps its current state and ignores the clock (Q should not reset to 0). Then when P = 0, the timer continues as usual. Given the original two flip flops below, make all the necessary connections to implement this new feature, using logic gates if necessary.

Clk

J

K

Q 1

Q 1

Clk

J

K

Q 0

Q 0

Clk

P

J

K

Q 0

Q 0

Clk

Clk

J

K

Q 1

Q 1

Clk

(c) (4 points) Suppose the next feature we want to add is an LED (light-emitting diode) such that it lights up whenever our timer lands on the state Q = 01 2. The LED lights up when the signal line feeding into it is high (or 1). Make all the necessary connections to implement this new feature, using logic gates if necessary.

Clk

J

K

Q 1

Q 1

Clk

J

K

Q 0

Q 0

Clk

This page is not graded. If you finish early, feel free to use the space below to write, compose, rant, complain, draw, create, etc. We’ll find it encouraging when grading your finals deep into the night.

If you are thinking of friending us on Facebook, try to wait until after your grades are out. We’re still your instructors until then. :P

Pikachu has been joined by some fellow electric Pok´emon!