DDR3 routing: status and finishing guide

Generated from the board by gen/ddrdoc.py. Lengths are copper from the FPGA ball to the DRAM ball, including both dogbones; the fly-by tail to each command terminator is not counted.

rules

itemrule
byte lane 0DQ0-7 and DM0 matched to the DQS0 pair, +/-1.4 mm (+/-10 ps)
byte lane 1DQ8-15 and DM1 matched to the DQS1 pair, +/-1.4 mm
address/commandA0-14, BA0-2, RAS_N, CAS_N, WE_N, CKE, ODT matched to the CK pair, +/-3 mm (+/-20 ps)
pairsDQS0, DQS1, CK: P to N within 0.15 mm, coupled outside the ball fields (DIFF100). CK is currently 1.8 mm apart (21.73 / 23.52): add a skew bump on CK_P
not matchedRESET_N; the tails from DRAM ball to the 39.2 R terminators; lane-to-lane; CK to DQS (write leveling absorbs it, keep CK equal or longer if you can)
topologycommand nets are fly-by: FPGA, then the DRAM ball, then the terminator. Take the tail from the DRAM ball via, never stub off the main run. Tail length is not matched; under about 20 mm is fine since the terminator ends the line
vias2 per net: the FPGA dogbone and the DRAM dogbone (3 at most, if a net has to change layer once). The command tail adds one more at the terminator. Keep the via count equal within a byte lane; a pair's two halves always get the same vias
layersIn2 (between GND planes) is preferred for data, In5 (between the 1V35 plane and GND) for command. B.Cu and F.Cu are allowed. Keep a byte lane on one layer where possible: outer-layer microstrip is about 15 percent faster per mm than stripline, so a mixed lane needs matching in ps, not mm
widthsIn2/In5: 0.23 mm (50 ohm). F.Cu/B.Cu: 0.127 mm. Pairs inner: 0.115 mm with a 0.10 mm gap; outer: 0.10 / 0.18. Neck to 0.10 mm only inside the FPGA and DRAM ball fields (DRC rule "BGA escape")
spacing0.15 mm DDR class clearance minimum; 3x the trace width (about 0.7 mm inner) between different nets on long parallel runs and between serpentine loops
tuningKiCad length tuner (single track: 7, diff pair: 8). Amplitude up to about 1 mm, spacing 3w, put meanders outside the ball fields. For ps accuracy, add the FPGA package delays (xc7a100tfgg484 package file) when available
don't cutthe In5 +1V0 feed pour (left of and above the DDR escape) and the VTT strip/pour around the terminators

references

pairlength mm
DDR_DQS022.71
DDR_DQS126.44
DDR_CK26.31

pairs

netFPGA ballDRAM balllength mmvias / layers
DDR_DQS0_PY3F322.711 / F,In2
DDR_DQS0_NAA3G322.712 / F,In2
DDR_DQS1_PR3C726.731 / F,In2
DDR_DQS1_NR2B726.142 / F,In2
DDR_CK_PV9J726.662 / F,In5
DDR_CK_NV8K725.961 / F,In5

byte lane 0 (to DQS0)

netFPGA ballDRAM ballterminatorlength mmvs refvias / layersstate
DDR_DQ0AB2E331.88+9.172 / F,In2tune
DDR_DQ1AA4F723.33+0.622 / F,In5ok
DDR_DQ2AB3F221.30-1.411 / F,In5tune
DDR_DQ3AB5F821.10-1.621 / B,Ftune
DDR_DQ4AB1H323.37+0.652 / B,Fok
DDR_DQ5Y4H823.36+0.654 / B,F,In7ok
DDR_DQ6AA1G224.46+1.752 / F,In2tune
DDR_DQ7AA5H723.82+1.115 / B,F,In5,In7ok
DDR_DM0V4E723.13+0.422 / F,In5ok

byte lane 1 (to DQS1)

netFPGA ballDRAM ballterminatorlength mmvs refvias / layersstate
DDR_DQ8T1D727.05+0.622 / F,In2ok
DDR_DQ9Y1C325.36-1.071 / F,In2ok
DDR_DQ10U2C826.48+0.042 / F,In5ok
DDR_DQ11W1C225.89-0.552 / B,Fok
DDR_DQ12W2A726.50+0.064 / B,F,In2,In7ok
DDR_DQ13Y2A225.16-1.271 / F,In5ok
DDR_DQ14V2B824.10-2.341 / B,Ftune
DDR_DQ15U1A327.75+1.312 / F,In5ok
DDR_DM1U3D328.82+2.395 / F,In2,In5,In7tune

address / command (to CK)

netFPGA ballDRAM ballterminatorlength mmvs refvias / layersstate
DDR_A0Y9N3R99 (tail 13.4 mm)24.93-1.372 / F,In2ok
DDR_A1V5P7R100 (tail 19.3 mm)26.06-0.251 / F,In2ok
DDR_A2Y6P3R101 (tail 11.7 mm)27.05+0.741 / B,Fok
DDR_A3W6N2R102 (tail 19.6 mm)32.25+5.942 / F,In5tune
DDR_A4T6P8R103 (tail 18.1 mm)26.24-0.072 / F,In5ok
DDR_A5AA6P2R104 (tail 17.3 mm)26.10-0.211 / B,Fok
DDR_A6R4R8R105 (tail 13.7 mm)29.72+3.412 / F,In5tune
DDR_A7V7R2R106 (tail 14.7 mm)28.99+2.682 / B,Fok
DDR_A8U6T8R107 (tail 11.2 mm)22.79-3.522 / F,In7tune
DDR_A9W7R3R108 (tail 9.9 mm)36.18+9.872 / F,In2tune
DDR_A10W9L7R109 (tail 17.5 mm)27.03+0.731 / B,Fok
DDR_A11U5R7R110 (tail 18.3 mm)23.85-2.454 / F,In7ok
DDR_A12T5N7R111 (tail 28.9 mm)25.56-0.742 / F,In2ok
DDR_A13AB6T3R112 (tail 11.1 mm)27.23+0.920 / Fok
DDR_A14W5T7R113 (tail 16.9 mm)23.30-3.012 / B,Ftune
DDR_BA0Y7M2R114 (tail 20.4 mm)34.71+8.416 / B,F,In2,In5tune
DDR_BA1T4N8R115 (tail 15.3 mm)27.21+0.902 / F,In2ok
DDR_BA2Y8M3R116 (tail 14.6 mm)25.52-0.792 / F,In2ok
DDR_RAS_NAB7J3R117 (tail 17.0 mm)25.24-1.074 / B,F,In2,In5,In7ok
DDR_CAS_NAA8K3R118 (tail 15.8 mm)22.74-3.571 / F,In7tune
DDR_WE_NAB8L3R119 (tail 20.8 mm)21.68-4.632 / F,In7tune
DDR_CKER6K9R120 (tail 31.0 mm)31.42+5.111 / Ftune
DDR_ODTT3K1R121 (tail 20.1 mm)39.67+13.361 / B,Ftune

reset (not matched)

netFPGA ballDRAM ballterminatorlength mmvs refvias / layersstate
DDR_RESET_NU7T228.292 / F,In7routed

open = no copper path between the two balls yet (end vias and dogbones are in place). tune = routed, but outside its window: positive is too long (re-route shorter), negative is too short (add a serpentine). Command nets also need their tail from the DRAM ball via to the listed terminator.