DDR2 SDRAM
The Micron DDR2 SDRAM is connected exclusively to the 1.8-v I/O on Bank 3 of the FPGA. The tables below list these connections.
DDR2 PIN | FPGA PIN |
---|---|
CK | H4 |
CK# | H3 |
CKE | D2 |
CS# | C3 |
RAS# | K5 |
CAS# | K4 |
WE# | F2 |
LDQS | L3 |
LDQS# | L1 |
UDQS | T2 |
UDQS# | T1 |
LDM | L4 |
UDM | M3 |
ODT | J6 |
A0 | H2 |
A1 | H1 |
A2 | H5 |
A3 | K6 |
A4 | F3 |
A5 | K3 |
A6 | J4 |
A7 | H6 |
A8 | E3 |
DDR2 PIN | FPGA PIN |
---|---|
A9 | E1 |
A10 | G4 |
A11 | C1 |
A12 | D1 |
BA0 | G3 |
BA1 | G1 |
BA2 | F1 |
D0 | N3 |
D1 | N1 |
D2 | M2 |
D3 | M1 |
D4 | J3 |
D5 | J1 |
D6 | K2 |
D7 | K1 |
D8 | P2 |
D9 | P1 |
D10 | R3 |
D11 | R1 |
D12 | U3 |
D13 | U1 |
D14 | V2 |
D15 | V1 |
Clock Configuration (Source Synchronous)
The DDR2 clocking is designed to be source-synchronous from the FPGA. This means that the FPGA sends the clock signal directly to the SDRAM along with control and data signals, allowing very good synchronization between clock and data.
Memory Controller Blocks
Spartan-6 has integrated memory control blocks to communicate with the external DDR2 memory on the XEM6010. This is instantiated using the Xilinx Core Generator (memory interface generator, or MIG) to create a suitable memory controller for your design. You should read and become familiar with the DDR2 SDRAM datasheet as well as MIG and the core datasheet. Although MIG can save a tremendous amount of development time, understanding all this information is critical to building a working DDR2 memory interface.
The XEM6010 provides 1.2v as Vccint. According to the memory controller block documentation, the Spartan-6, -2 speed grade can operate memory to 312.5 MHz with this internal voltage.
MIG Settings
The following are the settings used to generate the MIG core for our RAMTester sample using Xilinx Core Generator. These settings were used with ISE 12.2 and MIG 2.3. Note that settings may be slightly different for different versions of ISE or MIG.
Frequency | 312.5 MHz |
Memory Type | Component |
Memory Part | MT47H64M16XX-3 (1Gb, x16) |
Data Width | 16 |
Enable DQS Enable | CHECKED |
High-temp self-refresh | DISABLED |
Output drive strength | Reducedstrength |
RTT(nominal) | 50 ohms [default] |
DCI for DQ/DQS | CHECKED |
DCI for address/control | CHECKED |
ZIO pin | Y2 |
RZQ pin | K7 |
Calibrated Input Selection | Yes |
Class for address/control | Class II |
Debug signals | Your option |
System clock | Differential |