The DRAM interface and the PHY (why a DDR3+ interface must be tuned at boot) git...
HN Best 200 @best
The DRAM interface and the PHY (why a DDR3+ interface must be tuned at boot) github.com · 15 points · 1 comments · HN thread
TL;DR This is a chapter of the LiteDRAM manual explaining the physical layer between an FPGA and DDR memory: the signals, DQS strobes, fly-by topology, the leveling and training calibrations the BIOS runs at boot, termination and reference voltages, clock ratios, and the DFI interface to the controller. It ties each mechanism to the LiteDRAM code that implements it. The story has 15 points and one comment, which is none.
- DDR data travels with its own strobe DQS, a source-synchronous scheme, because the controller clock cannot sample DDR data reliably at these rates.
- With fly-by routing on DDR3 and DDR4, each chip gets the clock later, so each byte lane needs its own DQS delay found by write leveling.
- Boot-time calibrations are write leveling, write latency calibration, DQ-DQS training on writes, and read leveling (bitslip plus fine input delay per lane).
- Termination uses on-die ODT with RTT_NOM, RTT_WR and RON set in mode registers; ZQ calibration against a 240 ohm resistor compensates drift.
- The Artix-7 PHY has no output delays and relies on a 90-degree sys4x_dqs clock or an optional CK phase shift; Xilinx read paths use input delays, while Lattice and Gowin use DQS blocks with burst detect.
- LiteDRAM's DDR4 init leaves the DRAM data VREF untrained, and the UltraScale+ FPGA-side read VREF sweep is not done by the BIOS (LiteX issue 2769).
Discussion No comments have been posted yet, so the thread has no discussion to summarize. The story has 15 points and sits on Hacker News without any reaction recorded.