DDR4 Memory
The 1-GiByte DDR4 SDRAM provides a 16-bit wide data interface and is connected exclusively to the 1.2-V I/O on HP bank 64 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 XEM8320-AU25P supports a maximum data rate of 2400 Mb/s. This gives a supported peak memory bandwidth of 38.4 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 Camera Reference Design provides a memory interface for frame buffering.
- The XEM8320 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 | XEM8320-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 | 16 |
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 | AE26 |
CK_t | Y20 |
CK_c | Y21 |
CKE | AA20 |
CS | AF22 |
DQSL_t | AC26 |
DQSL_c | AD26 |
DQSU_t | AA22 |
DQSU_c | AB22 |
DM0 | AE25 |
DM1 | AE22 |
ACT | Y18 |
ODT | AB20 |
DDR4 PIN | FPGA PIN |
---|---|
A0 | AD18 |
A1 | AE17 |
A2 | AB17 |
A3 | AE18 |
A4 | AD19 |
A5 | AF17 |
A6 | Y17 |
A7 | AE16 |
A8 | AA17 |
A9 | AC17 |
A10 / AP | AC19 |
A11 | AC16 |
A12 / BC | AF20 |
A13 | AD16 |
A14 / WE | AA19 |
A15 / CAS | AF19 |
A16 / RAS | AA18 |
BA0 | AC18 |
BA1 | AF18 |
BG0 | AB19 |
DDR4 PIN | FPGA PIN |
---|---|
D0 | AF24 |
D1 | AB25 |
D2 | AB26 |
D3 | AC24 |
D4 | AF25 |
D5 | AB24 |
D6 | AD24 |
D7 | AD25 |
D8 | AB21 |
D9 | AE21 |
D10 | AE23 |
D11 | AD23 |
D12 | AC23 |
D13 | AD21 |
D14 | AC22 |
D15 | AC21 |