DOC PREVIEW
Berkeley COMPSCI 152 - Memory and Interfaces

This preview shows page 1-2-3-19-20-38-39-40 out of 40 pages.

Save
View full document
Premium Document
Do you want full access? Go Premium and unlock all 40 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CS 152 Computer Architecture and Engineering Lecture 12 Memory and Interfaces 2005 10 11 John Lazzaro www cs berkeley edu lazzaro TAs David Marquardt and Udam Saini www inst eecs berkeley edu cs152 CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Last Time 1 T DRAM cells Vdd Bit Line Word Line Capacito r n p n oxide Word Line and Vdd run on z axis CS 152 L12 Memory and Interfaces Vdd Bit Line Bit Line oxide Word Line Why Vcap values start out at groun Vdd Vcap Diode leakag e UC Regents Fall 2005 UCB Today Memory Technology Wrap Up Static Memory Circuits For SRAM memory cells and for flip flops Memory Arrays Row decoders column sense amps array sizing DRAM Interfaces How the SDRAM chips on the Calinx board work CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Inverters CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Inverters Circuits and Layout Vdd symb ol Vin CS 152 L12 Memory and Interfaces Vout Vin Vout UC Regents Fall 2005 UCB Inverter Die Cross Section Vout Vin n Vin oxide n p Vin CS 152 L12 Memory and Interfaces p oxide nwell p n Vout UC Regents Fall 2005 UCB Inverters n fet Transistor Equation If Vgs Vt and Vds Vgs Vt Vin V I V g d dsV s Ids k 2 W L Vgs Vt 2 Vout Otherwise if Vgs Vt Ids k W L Vgs Vt Vds Otherwi se Ids 0 but really Io exp Vg Vs Vo 1 exp Vds Vo Note Vt is transistor threshold was formerly Vth Also Vt is actually CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Inverters p fet Transistor Equation I Vin V g V s V sd d If Vsg Vt and Vsd Vsg Vt Isd k 2 W L Vsg Vt 2 Vout Otherwise if Vsg Vt Isd k W L Vsg Vt Vsd Otherwi se Isd 0 but again in reality there is a leakage current Note Vt for p Fet and n Fet are different Also true for k fab constant kp kn due to electrons being faster than holes CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Inverters with Vin Gnd Vout Vdd I Vin V Is Vsd Vsg Vt once Vout is Is Vdd Vsg Vt s V sd d Vout V I d dsV Isd k W L Vsg Vt Vsd s This goes as close to 0 as it can while still supplying the leakage current Ids 0 but really a small leakage current CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Inverters with Vin Vdd Vout Gnd Isd 0 but really a small leakage current I V s V sd d Vin V I Vout This goes as close to 0 as it can while still supplying the leakage current d dsV s CS 152 L12 Memory and Interfaces Is Vds Vgs Vt once Vout is Is Gnd Vgs Vt Ids k W L Vgs Vt Vds UC Regents Fall 2005 UCB Calculating the inverter threshold Vth Vth I Vin V s V sd d V I d dsV s Tie output to Vth input Assume voltage is somewhere near the middle For nfet is Vds Vout Vgs Vt For pfet is Vsd Vsg Vt No by definition Use Ids kn W L Vth Vtn Vth Isd kp W L Vdd Vth Vtp VddTo compute Vth the exact voltage in the middle CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Question What happens when I Vin V s V sd d I Vout Vin d dsV s s V sd d V I V Vout V I d dsV s Stays at Vth until a tiny amount of Vin noise appears Then output goes to Vdd or Gnd until Vin noise flips it back the other way Lesson at Vth small dVin make CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Static Memory Circuits Dynamic Memory Circuit remembers for a fraction of a second Static Memory Circuit remembers as long as the power is on Non volatile Memory Circuit remembers for many years even if power is off CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Recall DRAM cell 1 T 1 C Word Line Row Colum n Bit Line Colum n Row Word Line Vdd Bit Line CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Idea Store each bit with its complement x x Row Why Gnd Vdd Vdd Gnd We can use the redundant representation to compensate for noise and leakage CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Case 1 x Gnd x Vdd x x Row I sd Gnd Vdd I ds CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Case 2 x Vdd x Gnd x x Row I sd Gnd Vdd I ds CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Combine both cases to complete circuit Gnd noise noise Vdd Vth Vth Vdd Gnd Crosscoupled inverters x CS 152 L12 Memory and Interfaces x UC Regents Fall 2005 UCB SRAM Challenge 1 It s so big SRAM area is 6X 10X DRAM area same generation Cell has both transistor types Capacitors are usually parasitic capacitance of wires and CS 152 L12 Memory and Interfaces Vdd AND Gnd More contacts more devices two bit lines UC Regents Fall 2005 UCB Challenge 2 Writing is a fight When word line goes high bitlines fight with cell inverters to flip the bit must win quickly Solution tune W L of cell driver transistors Initial state Vdd Bitline drives Gnd CS 152 L12 Memory and Interfaces Initial state Gnd Bitline drives Vdd UC Regents Fall 2005 UCB Challenge 3 Preserving state on read When word line goes high on read cell inverters must drive large bitline capacitance quickly to preserve state on its small cell capacitances Cell state Vdd Bitline a big capacitor CS 152 L12 Memory and Interfaces Cell state Gnd Bitline a big capacitor UC Regents Fall 2005 UCB SRAM vs DRAM pros and cons Big win for DRAM DRAM has a 6 10X density advantage at the same technology generation SRAM advantages SRAM has deterministic latency its cells do not need to be refreshed SRAM is much faster transistors drive bitlines on reads SRAM easy to design in logic fabrication process and premium logic processes have SRAM add ons CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Flip Flops Revisited CS 152 L12 Memory and Interfaces UC Regents Fall 2005 UCB Recall Static RAM cell 6 Transistors Gnd noise noise Vdd Vth Vth Vdd Gnd Crosscoupled inverters x CS 152 L12 Memory and Interfaces x UC Regents Fall 2005 UCB Recall Positive edge triggered flipflop D A flip flop samples right before the edge and then holds value Q Sampling circuit Holds value 16 Transistors Makes an SRAM look compact What do we get for the 10 extra transistors Clocked logic semantics CS 152 L12 Memory and Interfaces UC Regents Fall 2005 …


View Full Document

Berkeley COMPSCI 152 - Memory and Interfaces

Documents in this Course
Quiz 5

Quiz 5

9 pages

Memory

Memory

29 pages

Quiz 5

Quiz 5

15 pages

Memory

Memory

29 pages

Memory

Memory

35 pages

Memory

Memory

15 pages

Quiz

Quiz

6 pages

Midterm 1

Midterm 1

20 pages

Quiz

Quiz

12 pages

Memory

Memory

33 pages

Quiz

Quiz

6 pages

Homework

Homework

19 pages

Quiz

Quiz

5 pages

Memory

Memory

15 pages

Load more
Loading Unlocking...
Login

Join to view Memory and Interfaces and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Memory and Interfaces and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?