DDR4 Memory
The 2-GiByte DDR4 SDRAM provides a 32-bit wide data interface and is connected to the 1.2-V I/O on HP banks 66 and 67 of the FPGA. The maximum data rate of the SDRAM is 2666 Mb/s, although the speed grade of the Artix UltraScale+ will limit the maximum supported data rate to what is stated in Table 27 of DS931. The -2 speed grade on the XEM8310-AU25P supports a maximum data rate of 2400 Mb/s. This gives a supported peak memory bandwidth of 76.8 Gb/s.
The following resources are available to help provide guidance for designs that involve this memory:
- How-To Apply DDR MIG Settings and Vivado Board File to generate AMD’s MIG IP Core.
- The RAMTester sample reads and writes this memory via FrontPanel pipe endpoints.
- The XEM8310 Pins Reference can generate a constraints file (click on Export) with complete pin mapping and I/O constraints for use in your design.
MIG Settings
Artix UltraScale+ devices support external, high-performance memory through the use of the Memory Interface Generator (MIG) provided by AMD. MIG produces a custom memory interface core that may be included in your design. These parameters have been used successfully within Opal Kelly but your design needs may require deviations.
All settings are based on the DDR4 SDRAM (MIG) v2.2 IP and Vivado 2022.1. This configuration sets up the correct MMCM M/D values to use an exact 100MHz reference input clock to achieve exactly 2400 Mb/s performance. This is a contradiction to the GUI reported 100.04Mhz for the selection of “9996” for “Reference Input Clock Speed (ps).” Please see AMD Article 66554 for more information regarding a similar situation.
Timing will constrain the DDR4 reference clock to 100.04Mhz in this case, which is a more pessimistic constraint versus 100Mhz. This results in the user losing 1.33 ps of usable slack for timing closure on the `c0_ddr4_ui_clk` MIG user interface clock. This is negligible and won’t produce metastable/non-functional designs due to this being a more pessimistic constraint. For this reason, we use the MIG’s propagated constraint of 100.04Mhz on the DDR4 ref clk within all our provided samples.
If an additional 1.33 ps of slack is required to meet timing, you may constrain the DDR4 ref clk to 100 Mhz in a top level constraints file and ignore the critical warnings that come as a result of overwriting this.
PARAMETER | XEM8310-AU25P |
---|---|
Controller Type | DDR4 SDRAM |
Controller/PHY Mode | Controller and physical layer |
Memory Device Interface Speed (ps) | 833 |
PHY to controller clock frequency ratio | 4:1 |
Reference Input Clock Speed (ps) | 9996 |
Configuration | Components |
Memory Part | MT40A512M16LY-075 |
Slot | Single |
IO Memory Voltage | 1.2V |
Data Width | 32 |
ECC | Disabled |
Data Mask and DBI | DM NO DBI |
Memory Address Map | ROW COLUMN BANK |
Ordering | Normal |
Cas Latency | 17 |
Cas Write Latency | 12 |
Force Read and Write commands to use AutoPrecharge | Disabled |
Clamshell Topology | Disabled |
Enable AutoPrecharge Input | Disabled |
Enable User Refresh and ZQCS Input | Disabled |
Advanced options | Default |
DDR4 / FPGA Pin Connections
The FPGA to DDR4 pin mappings are shown below. These are also available in the Pins Reference when exporting a constraints file as well as the sample designs that utilize the memory.
DDR4 PIN | FPGA PIN |
---|---|
RESET_N | L24 |
CKE | K21 |
CK_t | M19 |
CK_c | L19 |
CS_N | K26 |
SDRAM_1_DQSL_t | D23 |
SDRAM_1_DQSL_c | C24 |
SDRAM_1_DQSU_t | F24 |
SDRAM_1_DQSU_c | F25 |
SDRAM_2_DQSL_t | F20 |
SDRAM_2_DQSL_c | E20 |
SDRAM_2_DQSU_t | E16 |
SDRAM_2_DQSU_c | E17 |
DM0 | E25 |
DM1 | G24 |
DM2 | H18 |
DM3 | G15 |
ACT_N | G25 |
ODT | E26 |
DDR4 PIN | FPGA PIN |
---|---|
A0 | J20 |
A1 | M26 |
A2 | J19 |
A3 | L23 |
A4 | M25 |
A5 | L20 |
A6 | J21 |
A7 | M20 |
A8 | K20 |
A9 | M24 |
A10 / AP | L25 |
A11 | K25 |
A12 / BC | L22 |
A13 | M21 |
A14 / WE | F22 |
A15 / CAS | K23 |
A16 / RAS | K22 |
BA0 | K18 |
BA1 | L18 |
BG0 | G22 |
DDR4 PIN | FPGA PIN |
---|---|
D0 | E23 |
D1 | D25 |
D2 | D24 |
D3 | C26 |
D4 | F23 |
D5 | B25 |
D6 | D26 |
D7 | B26 |
D8 | H26 |
D9 | H22 |
D10 | G26 |
D11 | H24 |
D12 | J26 |
D13 | H21 |
D14 | J25 |
D15 | H23 |
D16 | G21 |
D17 | D19 |
D18 | F19 |
D19 | D20 |
D20 | F18 |
D21 | E18 |
D22 | G20 |
D23 | D18 |
D24 | G16 |
D25 | E15 |
D26 | H16 |
D27 | D16 |
D28 | H17 |
D29 | D15 |
D30 | G17 |
D31 | C16 |