《(内存基本知识)-DRAM工作原理.ppt》由会员分享,可在线阅读,更多相关《(内存基本知识)-DRAM工作原理.ppt(63页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、Ramaxel Technology LimitedRamaxel Technology LimitedConfidential Dynamic Random Access Memory Each cell is a capacitor + a transistor Very small size SRAM uses six transistors per cell Divided into banks, rows & columns Each bank can be independently controlledDRAMRamaxel Technology LimitedRamaxel T
2、echnology LimitedConfidentialMain MemoryEverything that happens in the computer is resident in main memoryCapacity: around 100 Mbyte to 100 Gbyte Random access Typical access time is 10- 100 nanosecondsWhy DRAM for Main Memory ? Cost effective (small chip area than SRAM) High Speed(than HDD, flash)
3、High Density(Gbyte) Mass Production Main memoryRamaxel Technology LimitedRamaxel Technology LimitedConfidentialNotation: K, M, G In standard scientific nomenclature, the metricmodifiers K, M, and G to refer to factors of 1,000,1,000,000 and 1,000,000,000 respectively. Computer engineers have adopted
4、 K as thesymbol for a factor of 1,024 (210 ) K: 1,024 (210 ) M: 1,048,576 (220 ) G: 1,073,741,824 (230 ) DRAM density 256M-bit 512M-bitRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM DensityRamaxel Technology LimitedRamaxel Technology LimitedConfidentialWhat is a DRAM? DRAM stan
5、ds for Dynamic Random Access Memory. Random access refers to the ability to access any of the information within the DRAM in random order. Dynamic refers to temporary or transient data storage.Data stored in dynamic memories naturally decays over time.Therefore, DRAM need periodic refresh operation
6、to prevent data loss.Ramaxel Technology LimitedRamaxel Technology LimitedConfidentialMemory: DRAM position Semiconductor memory device ROM: Non volatile Mask ROM EPROM EEPROM Flash NAND: low speed, high density NOR: high speed, low density RAM: Volatile DRAM: Dynamic Random Access Memory SRAM: Stati
7、c Random Access Memory Pseudo SRAMRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM Trend : Future High Speed- DDR(333MHz500MHz), DDR2(533800Mbps), DDR3(8001600Mbps)- Skew-delay minimized circuit/logic : post-charge logic, wave-pipelining- New Architecture : multi-bank structure,
8、high speed Interface Low Power- 5.5V = 3.3V(sdr) = 2.5V(ddr) = 1.8V(ddr2) = 1.5v (ddr3) = 1.2v?- Small voltage swing I/O interface : LVTTL to SSTL, open drain- Low Power DRAM(PASR, TCSR, DPD) High Density- Memory density: 32MB = 64MB = . 1GB = 2GB = 4GB- application expansion : mobile, memory DB for
9、 shock (than HDD)- Process shrink :145nm(03) =120nm(04) = 100nm = 90nm = 80nm Other Trends- Cost Effectiveness, Technical Compatibility, Stability, Environment. ReliabilityRamaxel Technology LimitedRamaxel Technology LimitedConfidentialStatic RAM SRAM Basic storage element is a 4 or 6 transistor cir
10、cuit which will hold a 1 or 0 as long as the system continues to receive power No need for a periodic refreshing signal or a clock Used in system cache Fastest memory, but expensiveSRAM ElementEnable Line/Bit LineBit LineRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDynamic RAM DRA
11、M Denser type of memory Made up of one-transistor (1-T) memory cell which consists of a single access transistor and a capacitor Cheaper than SRAM Used in main memory More complicated addressing schemeDRAM CellWord LineBit LineRamaxel Technology LimitedRamaxel Technology LimitedConfidentialRefresh i
12、n DRAMsCapacitor leaks over time, the DRAM must be “REFRESHED”. DRAM CellWord LineBit LineCapacitance LeakageRamaxel Technology LimitedRamaxel Technology LimitedConfidentialSRAM vs. DRAMRamaxel Technology LimitedRamaxel Technology LimitedConfidentialRamaxel Technology LimitedRamaxel Technology Limit
13、edConfidentialDRAM Lead Frame and Wire bondingRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM ArchitectureRamaxel Technology LimitedRamaxel Technology LimitedConfidential SDRAM has the multi bank architecture. Conventional DRAM was product that have single bank architecture. The
14、 bank is independent active. memory array have independent internal data bus that have same width as external data bus. Every bank can be activating with interleaving manner. Another bank can be activated while 1st bank being accessed. (Burst read or write)Multi Bank ArchitectureRamaxel Technology L
15、imitedRamaxel Technology LimitedConfidentialDRAM Multi Bank ArchitectureRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM Single Bank ArchitectureRamaxel Technology LimitedRamaxel Technology LimitedConfidentialRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM Bl
16、ock Diagram(1)Ramaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM Block Diagram(2)Ramaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM Core ArchitectureRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM AddressRamaxel Technology LimitedRamaxel Techn
17、ology LimitedConfidentialDRAM Core ArchitectureRamaxel Technology LimitedRamaxel Technology LimitedConfidential16bit DRAM CoreRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM Data PathRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM 1T-1C structureRamaxel Tech
18、nology LimitedRamaxel Technology LimitedConfidentialuRAS: row address strobeuCAS: column address strobeuWE: write enableuAddress: code to select memory cell locationuDQ (I/O): bidirectional channel to transfer and receive datauDRAM cell: storage element to store binary data bituRefresh: the action t
19、o keep data from leakageuActive: sense data from DRAM celluPre charge: standby stateDRAM Key wordRamaxel Technology LimitedRamaxel Technology LimitedConfidential DRAM cell array consist of so many cells. One transistor & One capacitor Small sense amplifier Low input gain from charge sharingCS : Smal
20、l storage capacitor: 25fFCBL : Large parasitic capacitor: over 100fFVc: Storage voltageVCP : half Vc for plate biasVBLP : half Vc for BL pre charge bias(initial bias)DRAM CellRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM Array Overview Simplified ExampleBITLINE 0BITLINE 0#BITL
21、INE 1BITLINE 1#BITLINE 2BITLINE 2#BITLINE 3BITLINE 3#ROW DECODERSELECTS A SINGLE WORDLINECOLUMN MULTIPLEXER CONNECTS A SINGLE BITLINECOLUMNADDRESSROWADDRPRECHARGE CONTROL LINEWORDLINE 0WORDLINE 1WORDLINE 2WORDLINE 3DATA BITRamaxel Technology LimitedRamaxel Technology LimitedConfidentialActivating a
22、Row Activating a Row Must be done before a read or write Just latch the row address and turn on a single wordlineBITLINE 0BITLINE 0#BITLINE 1BITLINE 1#BITLINE 2BITLINE 2#BITLINE 3BITLINE 3#ROW DECODERSELECTS A SINGLE WORDLINECOLUMN MULTIPLEXER CONNECTS A SINGLE BITLINECOLUMNADDRESSROWADDRPRECHARGE C
23、ONTROL LINEWORDLINE 0WORDLINE 1WORDLINE 2WORDLINE 3DATA BITRamaxel Technology LimitedRamaxel Technology LimitedConfidentialWriting Writing A row must be active Select the column address Drive the data through the column mux Stores the charge on a single capacitorBITLINE 0BITLINE 0#BITLINE 1BITLINE 1
24、#BITLINE 2BITLINE 2#BITLINE 3BITLINE 3#ROW DECODERSELECTS A SINGLE WORDLINECOLUMN MULTIPLEXER CONNECTS A SINGLE BITLINECOLUMNADDRESSROWADDRPRECHARGE CONTROL LINEWORDLINE 0WORDLINE 1WORDLINE 2WORDLINE 3DATA BITZEROONERamaxel Technology LimitedRamaxel Technology LimitedConfidentialReading Reading A ro
25、w must be active Select the column address The value in the sense-amplifier is driven back outBITLINE 0BITLINE 0#BITLINE 1BITLINE 1#BITLINE 2BITLINE 2#BITLINE 3BITLINE 3#ROW DECODERSELECTS A SINGLE WORDLINECOLUMN MULTIPLEXER CONNECTS A SINGLE BITLINECOLUMNADDRESSROWADDRPRECHARGE CONTROL LINEWORDLINE
26、 0WORDLINE 1WORDLINE 2WORDLINE 3DATA BITZEROONERamaxel Technology LimitedRamaxel Technology LimitedConfidentialThe Sense-Amplifier Sense-Amplifier A pair of cross-coupled inverters Basically an SRAM element Weaker than the column mux Write data will “outmuscle” the sense-amplifier Keeps the data at
27、full levelBITLINEBITLINE #WORDLINEPRECHARGE CONTROL LINERamaxel Technology LimitedRamaxel Technology LimitedConfidentialPrechargePrecharge Inactive state (no wordlines active) Precharge control line high Ties the two sides of the sense-amp together This makes the bitlines stay at VDD/2 Only stable a
28、s long as the precharge control line is highotherwise this is unstable! No capacitors connectedBITLINEBITLINE #WORDLINEPRECHARGE CONTROL LINERamaxel Technology LimitedRamaxel Technology LimitedConfidentialActivation RevisitedActivation Turn off the precharge control line Makes the sense-amp unstable
29、it wants to go to either 0 or 1 instead of staying at VDD/2 A very very very short time later, turn on the wordline of the row to be activated. Couples the capacitor onto the bitlines This “tips” the bitlines to hold the stored value. The sense-amp amplifies the capacitor back to full value. (hence
30、the name!)BITLINEBITLINE #WORDLINEPRECHARGE CONTROL LINERamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM Refresh Because the stored memory value is stored on a capacitor (that has resistive leakage), the memory is constantly “forgetting” its contents. Eventually, the charge on th
31、e capacitor wont be enough to tip the sense-amp in the right direction. But, activating a row restores the cells on that row to their full value. There is an explicit refresh command that just activates and immediately deactivates a row. The DRAM has an internal counter that contains the next row to
32、 be refreshed and increments every time a refresh command is issued.Ramaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM Refresh Data Retention Time DRAM Cell consists of capacitance which has leakage as time Retention time is period for maintaining its data especially 1 data Usually
33、, DRAM Cell refresh period is 64ms Refresh Timing tREF : Real cell retention time (Device characteristic), ex) 90ms(Hot) tRFC : Refresh command operating time, ex) 75ns Refresh Spec. Burst Refresh : 64ms Distribute refresh- 128Mb device (12 Row address) : 64ms / 4K = 15.6us- 256Mb device (13 Row add
34、ress) : 64ms / 8K = 7.8usRamaxel Technology LimitedRamaxel Technology LimitedConfidentialAUTO Refresh When this command is input from the IDLE state, the synchronous DRAM starts autorefresh operation. During the auto-refresh operation, refresh address and bank select address are generated inside the
35、 Synchronous DRAM. For every auto-refresh cycle, the internal address counter is updated. Accordingly, 8192times are required to refresh the entire memory. Before executing the auto-refresh command, all the bank must be IDLE state. In addition, since the Precharge for all bank is automatically perfo
36、rmed after auto-refresh, no Precharge command is required after auto-refresh.Ramaxel Technology LimitedRamaxel Technology LimitedConfidentialSelf Refresh Self-Refresh EntrySELF : When this command is input during the IDLE state, the Synchronous DRAM starts self-refresh operation. After the execution
37、 of this command, selfrefresh continues while CKE is Low. Since self-refresh is performed internally and automatically, external refresh operations are unnecessary. Self-Refresh ExitSELFX : When this command is executed during self-refresh mode, the Sync DRAM can exit from self-refresh mode. After e
38、xiting from self-refresh mode, the Sync DRAM enters the IDLE state., no Precharge command is required after auto-refresh.Ramaxel Technology LimitedRamaxel Technology LimitedConfidentialMode Register Special command to initialize the DRAM Burst length Interleaving CAS Latency (read command to read da
39、ta in clocks) For DDR, DLL reset is also hereRamaxel Technology LimitedRamaxel Technology LimitedConfidentialMRS Block DiagramRamaxel Technology LimitedRamaxel Technology LimitedConfidentialMode Register Because the stored memory value is stored on aRamaxel Technology LimitedRamaxel Technology Limit
40、edConfidentialExtended Mode Register Special command to initialize DDR DRAM DDR onlydont use for SDR DLL Enable Drive StrengthRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM Interface Command Signals CAS#, RAS#, WE#, CS# CS# + CAS# = Read CS# + WE# + CAS# = Write CS# + RAS# + CA
41、S# = Refresh CS# + RAS# = Activate CS# + WE# = Burst Stop CS# + WE# + RAS# = Precharge CS# + WE# + CAS# + RAS# = MRS or EMRS All others: NOP Other signals: CLK, DATA , DQSRamaxel Technology LimitedRamaxel Technology LimitedConfidentialDRAM Interface All signals go from the host to the memory except
42、DQS and data which are bi-directional.Ramaxel Technology LimitedRamaxel Technology LimitedConfidentialRead Cycle Typical Read Cycle Burst Length 4 CAS Latency = 3Setup TimeHold TimeCAS LatencyCLKCAS#DQSDATADQS delayed to simulate what the NV controller does.Ramaxel Technology LimitedRamaxel Technolo
43、gy LimitedConfidentialWrite Cycle Typical Write Cycle Burst Length 4 Write latency is always zeroSetup TimeHold TimeCLKCAS#DQSDATARamaxel Technology LimitedRamaxel Technology LimitedConfidentialData Clocking CLK is always driven by the host DQS is driven by whoever is driving the data NV chip drives
44、 on write cycles Memory chip drives on read cycles This scheme is called “source-synchronous clocking” Eliminates a lot of the timing headaches from SDR Adds marginRamaxel Technology LimitedRamaxel Technology LimitedConfidentialLatencies All kinds Activate to Precharge Last write data to precharge A
45、ctivate to Read Activate to Write Refresh cycle time Refresh interval Minimum row active time Yadda yadda yadda Controlled by PFB_TIMING0, PFB_TIMING1, PFB_TIMING2Ramaxel Technology LimitedRamaxel Technology LimitedConfidentialWrite CycleRamaxel Technology LimitedRamaxel Technology LimitedConfidenti
46、alDLLsA DLL is a Delay-Locked Loop No transistor can switch in zero time, so there will be a delay between clock and DQS on reads But, it would make it easier if DQS was always in phase with clock. DLL-off clock-DQS delay not in the spec Varies between memory vendorsRe-creates a delayed version of i
47、ts input clock Keeps DQS on reads aligned with clocks Its an analog circuit and is sensitive to noise Can lose lock on the input clock if the signal is not clean or the DLL power supply is noisy.Ramaxel Technology LimitedRamaxel Technology LimitedConfidentialDLLs DLL on DLL offCLKDQSDATACAS#CLKDQSDA
48、TACAS#DQS delayed to simulate what the NV controller does.DQS delayed to simulate what the NV controller does.Ramaxel Technology LimitedRamaxel Technology LimitedConfidential tAA, tAC, tOH tRCD, tRP Set-up / Hold time Vih, Vil Voh, Vol Ioh, IolTiming ParametersRamaxel Technology LimitedRamaxel Techn
49、ology LimitedConfidentialSDRAM Timing DiagramRamaxel Technology LimitedRamaxel Technology LimitedConfidentialtAA ,tAC, tOH(SDRAM)Ramaxel Technology LimitedRamaxel Technology LimitedConfidentialSetup/hold time Timing for latching data in Input buffer CLK rising edge is strobe for data ( SDRAM ) DQS r
50、ising & falling edge is strobe for data(DDR SDRAM) During Setup & time, there is no abnormal signal allowedRamaxel Technology LimitedRamaxel Technology LimitedConfidentialVIH/VILRamaxel Technology LimitedRamaxel Technology LimitedConfidentialVOH/VOLRamaxel Technology LimitedRamaxel Technology Limite