Transcription of TN-46-05 GENERAL DDR SDRAM FUNCTIONALITY …
1 1 GENERAL DDR SDRAM FunctionalityMicron Technology, Inc., reserves the right to change products or specifications without Rev. A; Pub. 7/01 2001, Micron Technology, DDR SDRAM FUNCTIONALITYGENERAL DDR SDRAMFUNCTIONALITYINTRODUCTIONThe migration from single data rate synchronousDRAM (SDR) to double data rate synchronous DRAM(DDR) memory is upon us. Although there are manysimilarities, DDR technology also provides notableproduct GENERAL , double data rate memory providessource-synchronous data capture at a rate of twice theclock frequency. Therefore, a DDR266 device with aclock frequency of 133 MHz has a peak data transferrate of 266 Mb/s or GB/s for a x64 DIMM. This isaccomplished by utilizing a 2n-prefetch architecturewhere the internal data bus is twice the width of theexternal data bus and data capture occurs twice perclock cycle. To provide high-speed signal integrity, theDDR SDRAM utilizes a bidirectional data strobe,SSTL_2 interface with differential inputs and objective of this technical note is to provide anoverview of the 2n-prefetch architecture, a strobe-baseddata bus, and the SSTL_2 interface used with DDRSDRAM.
2 It will also highlight the functional differencesbetween SDR and the improved DDR memory technol-ogy. For detailed design and timing criteria for DDRSDRAM-based systems, see Micron's DDR SDRAM datasheets.( )Table 1 SDR to DDR Quick ReferenceTable of ContentsDDR vs. SDR 2 Table 1: SDR to DDR Quick 1 Figure 1: Functional Block 2 Figure 4: Example of DDR Command 32n-Prefetch 3 Figure 2: Block Diagram 2n-Prefetch 3 Figure 3: Block Diagram 2n-Prefetch 3 Minimum Time 3 Figure 5: 2n-Prefetch READ Slot Timing .. 4 Figure 6: 2n-Prefetch WRITE Slot 5 Figure 7: READ Command 6 Strobe-Based Data 4 Preamble and 7 Figure 8: DQS READ Postamble and Preamble .. 7 Figure 9: DQS WRITE Postamble and Preamble . 8 SSTL_2 Interface .. 9 Drivers and 9 Figure 10: Typical LVCMOS 9 Figure 11: Typical SSTL_2 9I/O 10 Figure 12: Typical SSTL_2 Interface andInput 10 Clock 11 Figure 13: SSTL_2 11 Summary.
3 11 PARAMETERSDRDDRNOTESDQMYesNoUsed for write data mask and read OEDM (Data Mask)NoYesReplaces DQM, used to mask write data onlyDQS (Data Strobe)NoYesNew, used to capture dataCK# (System Clock)NoYesNew, DDR utilizes differential clocksVREFNoYesReference voltage for differential inputs (1/2 VDD)VDD and VoltsReduced supply and power for DDRS ignal InterfaceLVTTLSSTL_2 DDR utilizes differential I/OOutput DriveFixedVariablex16 DDR devices offer a reduced drive optionData Rate1x Clock2x ClockData transfer is twice the clock rate for DDRA rchitectureSynchronousSource-Synchronous DDR utilizes a bidirectional data strobeTECHNICALNOTE2 GENERAL DDR SDRAM FunctionalityMicron Technology, Inc., reserves the right to change products or specifications without Rev. A; Pub. 7/01 2001, Micron Technology, DDR SDRAM FUNCTIONALITY12 RAS#CAS#ROW-ADDRESSMUXCKCS#WE#CK#CONTROL LOGICCOLUMN-ADDRESSCOUNTER/LATCHMODE REGISTERS11 COMMAND DECODEA0-A11,BA0, BA1 CKE12 ADDRESSREGISTER141,024(x8)4,096I/O GATINGCOLUMNDECODERBANK0 MEMORYARRAY(4,096 x 1,024 x 8)BANK0 ROW-ADDRESSLATCHANDDECODER4,096 SENSE AMPLIFIERSBANKCONTROLLOGIC12 BANK1 BANK2 BANK312122 REFRESHCOUNTER4441 INPUTREGISTERS1111 RCVRS18828ckoutDATADQSMASKDATACKCKCOL0 COL0 COL0ckinDRVRSDLLMUXDQSGENERATOR444448DQ0 -DQ3, DMDQS1 READLATCHWRITEFIFOANDDRIVERSDQMDQ0-DQ3 4444 DATAINPUTREGISTERDATAOUTPUTREGISTER11 Internal Data Busx4 for SDRx8 for DDRI nternal Data Bus Internal Data Bus (SDR)DQMDQMNot Used for DDR(DDR)DDR I/O InterfaceSDR I/O InterfaceGeneric Memory ArrayNot Used for SDRF igure 1 Functional Block Diagram2 Meg x 4 Memory Array with SDR and DDR InterfaceDDR VS.
4 SDR FUNCTIONALITYSDR SDRAM is well established and generally un-derstood, so questions tend to focus where DDR dif-fers from examination of the 32 Meg x 4 SDR and DDRfunctional block diagrams reveals that the memory coreis essentially the same (see Figure 1). Both have anidentical addressing and command control interface;both have a four-bank memory array; and both incor-porate the same refresh requirements. The fundamen-tal differences are found in the data SDR memory data interface is a fully synchro-nous design where the data is only captured on thepositive clock edge. The internal bus is the same widthas the external data bus and data latches into the inter-nal memory array sequentially as it passes through theI/O buffers. SDR memory also supports a DQM signalthat acts as a data mask during a WRITE operation oran output enable for a DDR memory data is a true source-synchro-nous design, where the data is captured twice per clockcycle with a bidirectional data strobe.
5 This architectureemploys a 2n-prefetch architecture, where the inter-nal data bus is twice the width of the external bus. Thisallows the internal memory cell to pass data to the I/Obuffers in pairs. With DDR, there is no output enablefor READ operations, but DDR does support a BURSTTERMINATE command to quickly end a READ in pro-cess. During a WRITE operation, the DM signal is avail-able to allow the masking of nonvalid write DDR command bus consists of a clock enable,chip select, row and column addresses, bank address,and a write enable as shown in Figure 4. Commands areentered on the positive edges of clock, and data occurson both positive and negative edges of the double data rate memory utilizes a differentialpair for the system clock and therefore will have both atrue clock (CK) and complementary clock (CK#) positive clock edge for DDR refers to the pointwhere the rising clock signal crosses with the fallingcomplementary clock signal, and the term negativeclock edge indicates the transition of the falling clockand rising complementary clock DDR SDRAM FunctionalityMicron Technology, Inc.
6 , reserves the right to change products or specifications without Rev. A; Pub. 7/01 2001, Micron Technology, DDR SDRAM FUNCTIONALITYn-bitDataRegistern-bitDataR egisterCLKDn-bit dataplus DQSQD0 MUXD1 CDQSFromDRAMCore2n-bitdatan-bitdatan-bit dataAll DQand DQSO utputsDQSF igure 2 Simplified Block Diagramof 2n-Prefetch READCS#WE#CAS#RAS#CKECAA10BA0, 1 HIGHEN APDIS APBACKCK#CA = Column AddressRA = Row AddressAi = Most Significant AddressBA = Bank AddressEN AP = Enable Auto PrechargeDIS AP = Disable Auto PrechargeDON T CAREA0 AiA0 AiRACK2n-bitdataDQ0-DQin-bitdatan-bitdat aToDRAMC oren-bitDataRegisterDQn-bitDataRegisterD Q2n-bitDataRegisterDQDQSF igure 4 Example of the DDR Command Bus for a WRITE Cycle2n-Prefetch ArchitectureThe term DDR (or DDRI) should be specifically as-sociated with the 2n-prefetch device, as future memorydesigns (DDRII) will use the 4n-prefetch the DRAM vendor, 2n-prefetch means that theinternal data bus can be twice the width of the externaldata bus, and therefore the internal column accessfrequency can be half of the external data transfer is, for each single read access cycle internal to thedevice, two external data words are provided (as shownin Figure 2).
7 Similarly, two external data words writtento the device are internally combined and written inone internal access (as shown in Figure 3).To the user, from a high-level view, 2n-prefetchmeans that data accesses occur in pairs; , a singleread access fetches two data words; and for a singlewrite access, two data words (and/or data mask bits)must be provided. This affects both the minimum burstsize and nonminimum burst interruptions. The mini-mum burst size of a 2n-prefetch architecture is twoexternal data Time SlotsFor READs, the controller can choose to ignore ei-ther of the two words, but the time slots for both will beoccupied (see Figure 5). Similarly, for WRITEs, the con-troller can mask either of the two words, but again, thetime slots are occupied (see Figure 6). For each READ orWRITE command (and column address) applied, twodata words are provided. Because the device is doubledata rate as well as 2n-prefetch, a minimum of two datawords is optimal (since commands cannot be appliedmore frequently).
8 Figure 3 Simplified Block Diagram of2n-Prefetch WRITE4 GENERAL DDR SDRAM FunctionalityMicron Technology, Inc., reserves the right to change products or specifications without Rev. A; Pub. 7/01 2001, Micron Technology, DDR SDRAM FUNCTIONALITYCKCK#COMMANDNOPREADREADADDR ESSNOPBank,Col nREADBank,Col xBank,Col bREADBank,Col gDQDQSCL = 2 DON T CARE (to DRAM)DON'T CARE (to controller)NOTES:1. DO n, etc. = data-out from column n, ', etc. = the next data-out following DO n, etc., according to the programmed burst Burst length = 2, 4, or 8 in cases READs are to active rows in any Shown with nominal tAC and The controller wants the first of two words for the firstREAD command, both words for the second, and the second of two words for the 'DOb'DOgDObDOxDOn'Figure 5 Minimum Data Time Slot for 2n-Prefetch READS trobe-Based Data BusIn a purely synchronous system, data output andcapture are referenced to a common, free-running sys-tem clock.
9 However, the maximum data rate for such asystem is reached when the sum of output access timeand flight time approaches the bit time (the reciprocalof the data rate). Although generating delayed clocksfor early data launch and/or late data capture will allowfor increased data rate, these techniques do not ac-count for the fact that the data valid window (or dataeye) moves relative to any fixed clock signal, due tochanges in temperature, voltage, or loading. So, to al-low for even higher data rates, data strobe signals wereadded to DDR devices. The data strobes are nonfree-running signals driven by the device, which is drivingthe data signals (the controller for WRITEs, the DRAM sfor READs). At the DRAM device level, for READs, thedata strobe (DQS) signals are effectively additionaldata outputs (DQ) with a predetermined pattern; forWRITEs, the strobe signals are used as clocks to cap-ture the corresponding input data.
10 At the board level,the strobe signals have identical loading to data sig-nals and should be routed nonminimum READ bursts (four or eight words),it helps to associate each positive clock edge with a pairof data words. This way, interruptions of READ com-mands are easily understood. For example, with a burstlength of eight, a READ command followed by threeuninterrupting commands is needed to access the en-tire burst. If an interrupting command is applied at thefirst positive clock edge following the READ command,only two words will be accessed; if an interrupting com-mand is applied at the second positive clock edge fol-lowing the READ command, only four words will beaccessed, etc., (see Figure 7).The concept of associating pairs of data with posi-tive clock edges applies for WRITEs as well. However, tofully understand the masking and interrupting of writedata, WRITE latency and strobe-based data bus tim-ing must be considered.