Technical Note Is to Provide an Figure 9: DQS WRITE Postamble and Preamble
Total Page:16
File Type:pdf, Size:1020Kb
TN-46-05 GENERAL DDR SDRAM FUNCTIONALITY TECHNICAL GENERAL DDR SDRAM NOTE FUNCTIONALITY INTRODUCTION The migration from single data rate synchronous Table of Contents DRAM (SDR) to double data rate synchronous DRAM DDR vs. SDR Functionality ............................... 2 (DDR) memory is upon us. Although there are many Table 1: SDR to DDR Quick Reference ................. 1 similarities, DDR technology also provides notable Figure 1: Functional Block Diagram .................... 2 product enhancements. Figure 4: Example of DDR Command Bus .......... 3 In general, double data rate memory provides 2n-Prefetch Architecture ................................. 3 source-synchronous data capture at a rate of twice the Figure 2: Block Diagram 2n-Prefetch READ ........ 3 clock frequency. Therefore, a DDR266 device with a Figure 3: Block Diagram 2n-Prefetch WRITE ....... 3 clock frequency of 133 MHz has a peak data transfer rate of 266 Mb/s or 2.1 GB/s for a x64 DIMM. This is Minimum Time Slots ........................................ 3 accomplished by utilizing a 2n-prefetch architecture Figure 5: 2n-Prefetch READ Slot Timing ............. 4 where the internal data bus is twice the width of the Figure 6: 2n-Prefetch WRITE Slot Timing ............ 5 external data bus and data capture occurs twice per Figure 7: READ Command Slots ........................... 6 clock cycle. To provide high-speed signal integrity, the Strobe-Based Data Bus ..................................... 4 DDR SDRAM utilizes a bidirectional data strobe, Preamble and Postamble ................................. 7 SSTL_2 interface with differential inputs and clocks. Figure 8: DQS READ Postamble and Preamble ... 7 The objective of this technical note is to provide an Figure 9: DQS WRITE Postamble and Preamble . 8 overview of the 2n-prefetch architecture, a strobe-based SSTL_2 Interface ............................................... 9 data bus, and the SSTL_2 interface used with DDR Drivers and Receivers ...................................... 9 SDRAM. It will also highlight the functional differences Figure 10: Typical LVCMOS Receiver ................... 9 between SDR and the improved DDR memory technol- Figure 11: Typical SSTL_2 Receiver ...................... 9 ogy. For detailed design and timing criteria for DDR SDRAM-based systems, see Micron's DDR SDRAM data I/O Signaling .................................................... 10 sheets.(http://www.micron.com/ddrsdram.) Figure 12: Typical SSTL_2 Interface and Input Levels ....................................... 10 Clock Inputs ..................................................... 11 Figure 13: SSTL_2 Clocks ..................................... 11 Summary ......................................................... 11 Table 1 SDR to DDR Quick Reference PARAMETER SDR DDR NOTES DQM Yes No Used for write data mask and read OE DM (Data Mask) No Yes Replaces DQM, used to mask write data only DQS (Data Strobe) No Yes New, used to capture data CK# (System Clock) No Yes New, DDR utilizes differential clocks VREF No Yes Reference voltage for differential inputs (1/2 VDD) VDD and VDDQ 3.3 Volts 2.5 Volts Reduced supply and power for DDR Signal Interface LVTTL SSTL_2 DDR utilizes differential I/O Output Drive Fixed Variable x16 DDR devices offer a reduced drive option Data Rate 1x Clock 2x Clock Data transfer is twice the clock rate for DDR Architecture Synchronous Source-Synchronous DDR utilizes a bidirectional data strobe General DDR SDRAM Functionality Micron Technology, Inc., reserves the right to change products or specifications without notice. TN4605.p65 – Rev. A; Pub. 7/01 1 ©2001, Micron Technology, Inc. TN-46-05 GENERAL DDR SDRAM FUNCTIONALITY Figure 1 Functional Block Diagram 2 Meg x 4 Memory Array with SDR and DDR Interface CKE CK# 1 1 DQM CK SDR I/O Interface CS# CONTROL LOGIC WE# DATA Generic Memory Array 4 BANK3 OUTPUT CAS# BANK2 DQM REGISTER DECODE BANK1 Not Used for DDR RAS# COMMAND DQM (SDR) DQ0- Internal Data Bus 4 4 DQ3 REFRESH 12 DATA MODE REGISTERS COUNTER INPUT ROW- BANK0 12 REGISTER ADDRESS ROW- BANK0 MUX ADDRESS 12 4,096 MEMORY 4 LATCH ARRAY 12 AND (4,096 x 1,024 x 8) DECODER SENSE AMPLIFIERS CK 4,096 DDR I/O Interface DATA DLL Internal Data Bus 2 4 I/O GATING x4 for SDR 8 4 READ x8 for DDR MUX A0-A11, ADDRESS LATCH 4 DRVRS 14 BANK BA0, BA1 REGISTER CONTROL 2 DQS 1 LOGIC GENERATOR 1,024 DQ0- (x8) Internal Data Bus COL0 DQ3, DM DQS (DDR) INPUT 8 REGISTERS COLUMN DQS DECODER 1 1 MASK COLUMN- 1 ADDRESS WRITE 1 1 11 COUNTER/ 8 FIFO 2 AND RCVRS LATCH 4 4 COL0 DRIVERS 8 4 1 Not Used for SDR 4 4 ck ck out in DATA COL0 CK 1 DDR VS. SDR FUNCTIONALITY SDR SDRAM is well established and generally un- employs a 2n-prefetch architecture, where the inter- derstood, so questions tend to focus where DDR dif- nal data bus is twice the width of the external bus. This fers from SDR. allows the internal memory cell to pass data to the I/O An examination of the 32 Meg x 4 SDR and DDR buffers in pairs. With DDR, there is no output enable functional block diagrams reveals that the memory core for READ operations, but DDR does support a BURST is essentially the same (see Figure 1). Both have an TERMINATE command to quickly end a READ in pro- identical addressing and command control interface; cess. During a WRITE operation, the DM signal is avail- both have a four-bank memory array; and both incor- able to allow the masking of nonvalid write data. porate the same refresh requirements. The fundamen- The DDR command bus consists of a clock enable, tal differences are found in the data interface. chip select, row and column addresses, bank address, The SDR memory data interface is a fully synchro- and a write enable as shown in Figure 4. Commands are nous design where the data is only captured on the entered on the positive edges of clock, and data occurs positive clock edge. The internal bus is the same width on both positive and negative edges of the clock. as the external data bus and data latches into the inter- The double data rate memory utilizes a differential nal memory array sequentially as it passes through the pair for the system clock and therefore will have both a I/O buffers. SDR memory also supports a DQM signal true clock (CK) and complementary clock (CK#) signal. that acts as a data mask during a WRITE operation or The positive clock edge for DDR refers to the point an output enable for a READ. where the rising clock signal crosses with the falling The DDR memory data is a true source-synchro- complementary clock signal, and the term negative nous design, where the data is captured twice per clock clock edge indicates the transition of the falling clock cycle with a bidirectional data strobe. This architecture and rising complementary clock signals. General DDR SDRAM Functionality Micron Technology, Inc., reserves the right to change products or specifications without notice. TN4605.p65 – Rev. A; Pub. 7/01 2 ©2001, Micron Technology, Inc. TN-46-05 GENERAL DDR SDRAM FUNCTIONALITY 2n-Prefetch Architecture Figure 4 The term DDR (or DDRI) should be specifically as- Example of the DDR Command Bus sociated with the 2n-prefetch device, as future memory designs (DDRII) will use the 4n-prefetch architecture. for a WRITE Cycle To the DRAM vendor, 2n-prefetch means that the internal data bus can be twice the width of the external CK# data bus, and therefore the internal column access CK frequency can be half of the external data transfer rate. That is, for each single read access cycle internal to the CKE HIGH device, two external data words are provided (as shown in Figure 2). Similarly, two external data words written CS# to the device are internally combined and written in one internal access (as shown in Figure 3). RAS# Figure 2 Simplified Block Diagram CAS# of 2n-Prefetch READ WE# n-bit DQS n-bit data Data Register 2n-bit n-bit data CA From data D0 plus DQS All DQ A0–Ai DRAM MUX Q and DQS Core Outputs D1 C n-bit A0–Ai RA Data CLKD Register n-bit DQS data EN AP A10 To the user, from a high-level view, 2n-prefetch DIS AP means that data accesses occur in pairs; i.e., a single read access fetches two data words; and for a single BA0, 1 write access, two data words (and/or data mask bits) BA must be provided. This affects both the minimum burst size and nonminimum burst interruptions. The mini- CA = Column Address mum burst size of a 2n-prefetch architecture is two RA = Row Address external data transfers. Ai = Most Significant Address BA = Bank Address EN AP = Enable Auto Precharge Figure 3 DIS AP = Disable Auto Precharge Simplified Block Diagram of 2n-Prefetch WRITE DON’T CARE n-bit data Minimum Time Slots DQ0-DQi D Q For READs, the controller can choose to ignore ei- n-bit Data ther of the two words, but the time slots for both will be Register occupied (see Figure 5). Similarly, for WRITEs, the con- troller can mask either of the two words, but again, the 2n-bit time slots are occupied (see Figure 6). For each READ or data To D Q D Q DRAM WRITE command (and column address) applied, two n-bit n-bit 2n-bit Core data words are provided. Because the device is double Data data Data Register Register data rate as well as 2n-prefetch, a minimum of two data DQS words is optimal (since commands cannot be applied CK more frequently). General DDR SDRAM Functionality Micron Technology, Inc., reserves the right to change products or specifications without notice. TN4605.p65 – Rev. A; Pub. 7/01 3 ©2001, Micron Technology, Inc. TN-46-05 GENERAL DDR SDRAM FUNCTIONALITY Figure 5 Minimum Data Time Slot for 2n-Prefetch READ CK# CK COMMAND READ READ READ READ NOP NOP ADDRESS Bank, Bank, Bank, Bank, Col n Col x Col b Col g CL = 2 DQS DO DO DO DO DO DO DO DQ n n' x x' b b' g NOTES: 1.