UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

Similar documents
UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

Physics 1402: Lecture 7 Today s Agenda

CS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

DIRECT CURRENT CIRCUITS

Math 8 Winter 2015 Applications of Integration

Elad Alon Homework #2 EECS141 Due Thursday, September 9, 5pm, box in 240 Cory

Designing Information Devices and Systems I Discussion 8B

expression simply by forming an OR of the ANDs of all input variables for which the output is

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

Section 5.1 #7, 10, 16, 21, 25; Section 5.2 #8, 9, 15, 20, 27, 30; Section 5.3 #4, 6, 9, 13, 16, 28, 31; Section 5.4 #7, 18, 21, 23, 25, 29, 40

Riemann is the Mann! (But Lebesgue may besgue to differ.)

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

SUMMER KNOWHOW STUDY AND LEARNING CENTRE

Designing Information Devices and Systems I Spring 2018 Homework 7

Chapter 0. What is the Lebesgue integral about?

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

The steps of the hypothesis test

Review of Calculus, cont d

Hints for Exercise 1 on: Current and Resistance

Designing Information Devices and Systems I Spring 2018 Homework 8

Fault Modeling. EE5375 ADD II Prof. MacDonald

Acceptance Sampling by Attributes

Sample Exam 5 - Skip Problems 1-3

Riemann Sums and Riemann Integrals

Chapter 6 Notes, Larson/Hostetler 3e

Math 1B, lecture 4: Error bounds for numerical methods

Riemann Sums and Riemann Integrals

P 3 (x) = f(0) + f (0)x + f (0) 2. x 2 + f (0) . In the problem set, you are asked to show, in general, the n th order term is a n = f (n) (0)

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

1 The Riemann Integral

EECS 141 Due 04/19/02, 5pm, in 558 Cory

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

CS 188 Introduction to Artificial Intelligence Fall 2018 Note 7

APPROXIMATE INTEGRATION

set is not closed under matrix [ multiplication, ] and does not form a group.

Name Solutions to Test 3 November 8, 2017

Fig. 1. Open-Loop and Closed-Loop Systems with Plant Variations

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007

Physics 9 Fall 2011 Homework 2 - Solutions Friday September 2, 2011

Chapter E - Problems

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

5.7 Improper Integrals

IMPORTANT. Read these directions carefully:

Fundamentals of Analytical Chemistry

Section 6: Area, Volume, and Average Value

Homework Assignment 9 Solution Set

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

1B40 Practical Skills

Designing Information Devices and Systems I Fall 2016 Babak Ayazifar, Vladimir Stojanovic Homework 6. This homework is due October 11, 2016, at Noon.

Discrete Mathematics and Probability Theory Spring 2013 Anant Sahai Lecture 17

Bridging the gap: GCSE AS Level

Math 113 Exam 2 Practice

Main topics for the First Midterm

Chapter 4: Techniques of Circuit Analysis. Chapter 4: Techniques of Circuit Analysis

New data structures to reduce data size and search time

Recitation 3: More Applications of the Derivative

Lecture 3 ( ) (translated and slightly adapted from lecture notes by Martin Klazar)

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

Definition of Continuity: The function f(x) is continuous at x = a if f(a) exists and lim

Mathematics Number: Logarithms

ARITHMETIC OPERATIONS. The real numbers have the following properties: a b c ab ac

2008 Mathematical Methods (CAS) GA 3: Examination 2

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying

Distance And Velocity

Lecture 10: PN Junction & MOS Capacitors

2.4 Linear Inequalities and Problem Solving

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies

Math Lecture 23

Designing Information Devices and Systems I Anant Sahai, Ali Niknejad. This homework is due October 19, 2015, at Noon.

g i fφdx dx = x i i=1 is a Hilbert space. We shall, henceforth, abuse notation and write g i f(x) = f

Lecture 3. Limits of Functions and Continuity

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019

That reminds me must download the test prep HW. adapted from (nz118.jpg)

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.

Homework 4 , (1) 1+( NA +N D , (2)

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

Lecture 14: Quadrature

Operations with Polynomials

Exam 1 Solutions (1) C, D, A, B (2) C, A, D, B (3) C, B, D, A (4) A, C, D, B (5) D, C, A, B

Fast Boolean Algebra

Math Calculus with Analytic Geometry II

The Velocity Factor of an Insulated Two-Wire Transmission Line

Consolidation Worksheet

Let's start with an example:

Review of basic calculus

The graphs of Rational Functions

CMDA 4604: Intermediate Topics in Mathematical Modeling Lecture 19: Interpolation and Quadrature

MATH STUDENT BOOK. 10th Grade Unit 5

Good Review book ( ) ( ) ( )

1. Weak acids. For a weak acid HA, there is less than 100% dissociation to ions. The B-L equilibrium is:

u( t) + K 2 ( ) = 1 t > 0 Analyzing Damped Oscillations Problem (Meador, example 2-18, pp 44-48): Determine the equation of the following graph.

PHYS Summer Professor Caillault Homework Solutions. Chapter 2

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as

Reinforcement learning II

Homework Assignment 5 Solution Set

The Wave Equation I. MA 436 Kurt Bryan

Transcription:

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Deprtment of Electricl Engineering nd Computer Sciences Eld Alon Homework #3 Solutions EECS4 PROBLEM : CMOS Logic ) Implement the logic function shown below with sttic CMOS gte. You cn ssume tht both the true nd complementry versions of input re vilble (e.g. nd re vilble simultneously). Expnd the logic function in our fmilir AND/OR form: Implementing this function in sttic CMOS: Vdd Vdd Vdd B A C B A B A C B C A Out B B B B A A A A Note tht there re mny other wys for this gte to be implemented (in prticulr mny implementtions tht shre one of the trnsistors for two logicl terms) ny correct implementtion will receive full credit. As n exmple, selfdul implementtion with mximum trnsistor shring is shown below:

b) Someone clims they cn build sttic AND gte with the circuit shown below. Wht is wrong with this prticulr implementtion? There re two problems with this gte. The first nd most significnt one is tht Out is only connected to one of the power supplies when A=. In other words, if A=0, the output will not be driven to one of the power supplies, which does not meet the definition of sttic gte. This cn be shown using the truth tble ( Z stnds for the output being undriven i.e., high impednce): A B Out 0 0 Z 0 Z 0 0 Wek

As lso indicted in the tble, the second problem is tht when A= nd B=, we will be pssing through n NMOS trnsistor. In other words, the output won t relly mke it ll the wy up to Vdd, but rther will get stuck t VddV TH. c) By dding just two more trnsistors to the circuit shown bove, fix the circuit so tht it will implement sttic AND gte. Note tht you re free to use both the true nd complement versions of the input signls (A nd B) to chieve this. In order to fix the first problem, we need to connect Out to welldefined stte when A=0. Since we re building n AND gte, we know tht when A=0 Out is lwys 0, so we cn simply dd n NMOS t the output with s the gte voltge. To fix the second problem, we need to mke sure we hve PMOS pulling the output up when A=B=. Like we hd discussed in lecture, we cn build switch tht psses both s nd 0 s by plcing PMOS in prllel with n NMOS nd driving it with the complementry signl t the gte, which in this cse is lso. With these two fixes, the circuit shown below does indeed implement sttic AND gte. PROBLEM 2: Simultion Exercise I In the following NAND2 gte, we will use the sme sizing for ll PMOS trnsistors in the PUN. Similrly, ll the NMOS trnsistors in the PDN lso hve the sme size. We will lso define the NAND2 s β rtio s the rtio between the width of the PMOS trnsistors nd the NMOS trnsistors i.e., β = W p /W n. In this problem we will explore how chnging β impcts vrious design metrics by using HSPICE. You should mke the NMOS trnsistor µm wide, nd lter the width of the PMOS trnsistor to chnge the NAND2 s β rtio. The chnnel lengths of both the NMOS nd PMOS trnsistors should be fixed t 0.09µm. This is good chnce to explore HSPICE nd use some of its builtin functionlity to mke this problem esier. (Hint: you ll wnt to sweep trnsistor prmeters nd use.measure sttements. An exmple will be shown in discussion session.)

) Plot VIL nd VIH of the NAND2 gte versus the β rtio. In order to mesure VIL nd VIH, you should ssume tht the B input is set to Vdd nd then sweep the A input from 0 to Vdd to trce out the VTC. The reltionship between VIL/VIH nd β rtio is plotted below. HSPICE deck: * HW3 Problem 2: Simultion Exercise I * Prt ).LIB '/home/ff/ee4/models/gpdk090_mos.sp' TT_sv.PARAM bet=2.param high=.2.param stepsize=0.0.subckt nnd2 b out vdd gnd Mp out vdd vdd gpdk090_pmosv w='bet*u' l=90n

Mp2 out b vdd vdd gpdk090_pmosv w='bet*u' l=90n Mn2 out int gnd gpdk090_nmosv w=u l=90n Mn int b gnd gnd gpdk090_nmosv w=u l=90n.ends Xdut A B OUT vdd 0 nnd2 Xdum Ad Bd OUTd vdd 0 nnd2 Vdd vdd 0 high VA A 0 high VB B 0 high VBd Bd 0 high Vn Ad A stepsize.options post=2 nomod.op.dc VA 0 high stepsize SWEEP bet 4 0..MEASURE DC vil FIND v(a) WHEN PAR('(v(OUTd)v(OUT))/stepSize')= CROSS=.MEASURE DC vih FIND v(a) WHEN PAR('(v(OUTd)v(OUT))/stepSize')= CROSS=2.END b) Sweep β nd plot the hightolow trnsition dely, the lowtohigh trnsition dely, nd the verge dely of the second NAND2 in the fnout of 4 NAND2 chin shown below. Wht β would you choose to minimize the verge dely? The verge dely, hightolow dely, nd lowtohigh dely vs. β re shown below. The β tht minimizes the verge dely is pproximtely.

HSPICE deck: * HW3 Problem 2: Simultion Exercise I * Prt b).lib '/home/ff/ee4/models/gpdk090_mos.sp' TT_sv.PARAM bet=2.param high=.2.subckt nnd2 b out vdd gnd Mp out vdd vdd gpdk090_pmosv w='bet*u' l=90n Mp2 out b vdd vdd gpdk090_pmosv w='bet*u' l=90n Mn2 out int gnd gpdk090_nmosv w=u l=90n Mn int b gnd gnd gpdk090_nmosv w=u l=90n.ends X in bhigh n vdd 0 nnd2 M= X2 n bhigh n2 vdd 0 nnd2 M=4 *Device under test X3 n2 bhigh n3 vdd 0 nnd2 M=6 X4 n3 bhigh n4 vdd 0 nnd2 M=64 Vdd vdd 0 high Vin in 0 PULSE 0 high 00p 00p 00p 300p 800p

VB bhigh 0 high.options post=2 nomod.options ccurte.op.tran 0.0p 0n SWEEP bet 0.3 3 0.0 * Low to high trnsition dely.measure TRAN tplh TRIG v(n) VAL='high/2' FALL= TARG v(n2) VAL='high/2' RISE= * High to low trnsition dely.measure TRAN tphl TRIG v(n) VAL='high/2' RISE= TARG v(n2) VAL='high/2' FALL= * Averge dely.measure tpavg PARAM='(tpLH+tpHL)/2'.END PROBLEM 3: Simultion Exercise II ) Shown below is n inverter with W p /W n = 2µm/µm with lod cpcitnce of 5fF. Assume tht in our technology the gte cpcitnce C G = 2fF/µm nd tht the junction cpcitnce C D =.6fF/µm. Clculte the energy drwn from V dd (=.2V) when the input trnsitions from high to low. Since the input is chnging from to 0, the output will experience 0 to trnsition. The energy drwn from the supply is to only chrge the lod cpcitnce nd the junction cpcitnce of the inverter. Therefore, we hve:

b) Using 0ps fll time slope for the input step, simulte the energy drwn from Vdd in HSPICE. How close is this vlue compred to prt )? To ensure consistent results with the solutions, you should use the flling edge of the pulse wveform shown below s the input step. The pulse hs ns period nd you should mesure the verge energy during the hlf cycle (500ps) tht strts t the flling edge. The simultion result with 0ps fll time is 30.008 fj, which is quite close to the estimted vlue of 28.52 fj. The HSPICE deck is shown t the end of c). c) [BONUS] Using 00ps fll time slope for the input step, simulte the energy drwn from Vdd in HSPICE. Is it lrger or smller thn the result you got in b)? Why might it be lrger or smller thn prt b)? If we chnge the fll time from 0ps to 00ps, we get simulted energy of 33.9fJ. This is bout 0% lrger thn wht we got in b). The increse in energy is minly due to the fct tht with slower input slope, the mount of time where both the NMOS nd PMOS trnsistors re both on (nd hence drw current directly from Vdd to Gnd) is lrger thn when the input mkes very shrp step. The current tht flows directly through both trnsistors is clled shortcircuit current, nd results in incresed energy over the previous cse. HSPICE deck: * HW3 Problem 3: Simultion Exercise II * Prt b) & c).lib '/home/ff/ee4/models/gpdk090_mos.sp' TT_sv.PARAM high=.2.param trf=0p.subckt inv in out vdd gnd Mp out in vdd vdd gpdk090_pmosv w=2u l=90n Mn out in gnd gnd gpdk090_nmosv w=u l=90n.ends Xinv in out vdd 0 inv

CL out 0 5f Vdd vdd 0 high Vin in 0 PULSE 0 high 00p trf trf '500ptrf' n.options post=2 nomod.options ccurte.op.tran 0.0p 2n * Mesure verge current drwn from supply in cycle.measure TRAN iavg AVG i(vdd) FROM 600p TO.n * Averge energy drwn from supply.measure TRAN eavg PARAM='high*iAVG*500p'.ALTER.PARAM trf=00p.end

PROBLEM 4: Decoder Wrmup In this problem you should ssume tht you re given predesigned set of gtes tht consists of only NOR2, NAND2, nd n inverter. For this problem you must choose from this set of gtes to design 3:8 decoder. You cn ssume tht both the true nd complement ddress input signls re vilble to you. ) Drw n implementtion of 3:8 decoder using only NAND2 nd/or inverters. There re mny wys to implement the decoder. The two most strightforwrd wys re shown below, but ny resonble solution will receive full credit. Possible solution I: b7 b6 b5 b4 b3 b2 b b0

Possible solution II:

b) Drw n implementtion of 3:8 decoder using only NOR2 nd/or inverters. There re gin mny possible implementtions. One strightforwrd solution is to replce ech NAND2 gte followed by n inverter with NOR2 gte whose input polrities hve been flipped. Implementtion I: b7 b6 b5 b4 b3 b2 b b0

Implementtion II: c) For this prt of the problem you should ignore ll the junction cpcitors from the trnsistors nd ssume tht ech NAND2 hs 4fF input cpcitnce, while ech inverter hs 3fF input cpcitnce. How much energy is pulled out of the power supply of the decoder from prt ) every time one of the ddress inputs chnges? Don t forget to include the energy used by the gtes tht drive the ddress inputs of the decoder. For implementtion I of prt ), if 2 or trnsitions from low to high, t the first level of logic there re 4 NAND2 gtes whose inputs re chrged from 0 to. At the second level of logic, there re 2 inverters whose inputs re chrged. At the third level 2 NAND2 gtes re chrged, nd t the lst level of logic there is inverter whose input is chrged. Therefore, the totl energy is

If 0 rises the outputs from the first two levels of logic do not chnge, while the third level hs 4 NAND2 gtes whose inputs re chrged, nd the input to inverter in the finl level of logic rises. Therefore, the totl energy is:

For implementtion II of prt ), if 2 or trnsitions from low to high, t the first level of logic there re 2 NAND2 gtes whose inputs re chrged from 0 to. At the second level of logic, there is inverter whose input is chrged. At the third level 2 NAND2 gtes re chrged, nd t the lst level of logic there is inverter whose input is chrged. Therefore, the totl energy is :

If 0 rises the outputs from the first two levels of logic do not chnge, while the third level hs 4 NAND2 gtes whose inputs re chrged, nd the input to inverter in the finl level of logic rises. Therefore, the totl energy is:

b7 b6 b5 b4 b3 b2 b b0 d) In order to mke the energy consumed by the implementtion from b) the sme or less thn tht of prt ), wht is the mximum input cpcitnce ech NOR2 gte is llowed to hve? To find the mximum input cpcitnce, we need to first clculte the energy consumption in b). We cn ssume the input cpcitnce of ech NOR2 gte is. For implementtion I: If 2 or trnsitions from low to high, similr to ), we hve 4 NOR2 gtes to chrge t the first level of logic, 2 inverters to chrge t the second level nd 2 NOR2 gtes to chrge t the third level. The totl energy consumption is:

If 0 trnsitions, only 4 NOR2 gtes t the third level will be chrged. Therefore, the totl energy is:

To mke the NOR2 implementtion less power hungry, we need to gurntee tht: From which we get the NOR2 gte is.. Tht is, the mximum input cpcitnce for Implementtion II: If 2 or trnsitions from low to high, we hve 2 NOR2 gtes tht will be chrged t the first level of logic, inverter is chrged t the second level, nd 2 NOR2s re chrged t the third level. The overll energy consumption is therefore:

If 0 trnsitions, 4 NOR2 gtes t the third level will be chrged, with energy consumption

b7 b6 b5 b4 b3 b2 b b0 To mke the NOR2 implementtion II less power hungry thn the NAND2 implementtion II, we need to gurntee tht: From which we get. Tht is, the mximum input cpcitnce for the NOR2 gte is.