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
| item | rule |
|---|---|
| byte lane 0 | DQ0-7 and DM0 matched to the DQS0 pair, +/-1.4 mm (+/-10 ps) |
| byte lane 1 | DQ8-15 and DM1 matched to the DQS1 pair, +/-1.4 mm |
| address/command | A0-14, BA0-2, RAS_N, CAS_N, WE_N, CKE, ODT matched to the CK pair, +/-3 mm (+/-20 ps) |
| pairs | DQS0, 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 matched | RESET_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) |
| topology | command 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 |
| vias | 2 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 |
| layers | In2 (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 |
| widths | In2/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") |
| spacing | 0.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 |
| tuning | KiCad 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 cut | the In5 +1V0 feed pour (left of and above the DDR escape) and the VTT strip/pour around the terminators |
references
| pair | length mm |
|---|---|
| DDR_DQS0 | 22.71 |
| DDR_DQS1 | 26.44 |
| DDR_CK | 26.31 |
pairs
| net | FPGA ball | DRAM ball | length mm | vias / layers |
|---|---|---|---|---|
| DDR_DQS0_P | Y3 | F3 | 22.71 | 1 / F,In2 |
| DDR_DQS0_N | AA3 | G3 | 22.71 | 2 / F,In2 |
| DDR_DQS1_P | R3 | C7 | 26.73 | 1 / F,In2 |
| DDR_DQS1_N | R2 | B7 | 26.14 | 2 / F,In2 |
| DDR_CK_P | V9 | J7 | 26.66 | 2 / F,In5 |
| DDR_CK_N | V8 | K7 | 25.96 | 1 / F,In5 |
byte lane 0 (to DQS0)
| net | FPGA ball | DRAM ball | terminator | length mm | vs ref | vias / layers | state |
|---|---|---|---|---|---|---|---|
| DDR_DQ0 | AB2 | E3 | 31.88 | +9.17 | 2 / F,In2 | tune | |
| DDR_DQ1 | AA4 | F7 | 23.33 | +0.62 | 2 / F,In5 | ok | |
| DDR_DQ2 | AB3 | F2 | 21.30 | -1.41 | 1 / F,In5 | tune | |
| DDR_DQ3 | AB5 | F8 | 21.10 | -1.62 | 1 / B,F | tune | |
| DDR_DQ4 | AB1 | H3 | 23.37 | +0.65 | 2 / B,F | ok | |
| DDR_DQ5 | Y4 | H8 | 23.36 | +0.65 | 4 / B,F,In7 | ok | |
| DDR_DQ6 | AA1 | G2 | 24.46 | +1.75 | 2 / F,In2 | tune | |
| DDR_DQ7 | AA5 | H7 | 23.82 | +1.11 | 5 / B,F,In5,In7 | ok | |
| DDR_DM0 | V4 | E7 | 23.13 | +0.42 | 2 / F,In5 | ok |
byte lane 1 (to DQS1)
| net | FPGA ball | DRAM ball | terminator | length mm | vs ref | vias / layers | state |
|---|---|---|---|---|---|---|---|
| DDR_DQ8 | T1 | D7 | 27.05 | +0.62 | 2 / F,In2 | ok | |
| DDR_DQ9 | Y1 | C3 | 25.36 | -1.07 | 1 / F,In2 | ok | |
| DDR_DQ10 | U2 | C8 | 26.48 | +0.04 | 2 / F,In5 | ok | |
| DDR_DQ11 | W1 | C2 | 25.89 | -0.55 | 2 / B,F | ok | |
| DDR_DQ12 | W2 | A7 | 26.50 | +0.06 | 4 / B,F,In2,In7 | ok | |
| DDR_DQ13 | Y2 | A2 | 25.16 | -1.27 | 1 / F,In5 | ok | |
| DDR_DQ14 | V2 | B8 | 24.10 | -2.34 | 1 / B,F | tune | |
| DDR_DQ15 | U1 | A3 | 27.75 | +1.31 | 2 / F,In5 | ok | |
| DDR_DM1 | U3 | D3 | 28.82 | +2.39 | 5 / F,In2,In5,In7 | tune |
address / command (to CK)
| net | FPGA ball | DRAM ball | terminator | length mm | vs ref | vias / layers | state |
|---|---|---|---|---|---|---|---|
| DDR_A0 | Y9 | N3 | R99 (tail 13.4 mm) | 24.93 | -1.37 | 2 / F,In2 | ok |
| DDR_A1 | V5 | P7 | R100 (tail 19.3 mm) | 26.06 | -0.25 | 1 / F,In2 | ok |
| DDR_A2 | Y6 | P3 | R101 (tail 11.7 mm) | 27.05 | +0.74 | 1 / B,F | ok |
| DDR_A3 | W6 | N2 | R102 (tail 19.6 mm) | 32.25 | +5.94 | 2 / F,In5 | tune |
| DDR_A4 | T6 | P8 | R103 (tail 18.1 mm) | 26.24 | -0.07 | 2 / F,In5 | ok |
| DDR_A5 | AA6 | P2 | R104 (tail 17.3 mm) | 26.10 | -0.21 | 1 / B,F | ok |
| DDR_A6 | R4 | R8 | R105 (tail 13.7 mm) | 29.72 | +3.41 | 2 / F,In5 | tune |
| DDR_A7 | V7 | R2 | R106 (tail 14.7 mm) | 28.99 | +2.68 | 2 / B,F | ok |
| DDR_A8 | U6 | T8 | R107 (tail 11.2 mm) | 22.79 | -3.52 | 2 / F,In7 | tune |
| DDR_A9 | W7 | R3 | R108 (tail 9.9 mm) | 36.18 | +9.87 | 2 / F,In2 | tune |
| DDR_A10 | W9 | L7 | R109 (tail 17.5 mm) | 27.03 | +0.73 | 1 / B,F | ok |
| DDR_A11 | U5 | R7 | R110 (tail 18.3 mm) | 23.85 | -2.45 | 4 / F,In7 | ok |
| DDR_A12 | T5 | N7 | R111 (tail 28.9 mm) | 25.56 | -0.74 | 2 / F,In2 | ok |
| DDR_A13 | AB6 | T3 | R112 (tail 11.1 mm) | 27.23 | +0.92 | 0 / F | ok |
| DDR_A14 | W5 | T7 | R113 (tail 16.9 mm) | 23.30 | -3.01 | 2 / B,F | tune |
| DDR_BA0 | Y7 | M2 | R114 (tail 20.4 mm) | 34.71 | +8.41 | 6 / B,F,In2,In5 | tune |
| DDR_BA1 | T4 | N8 | R115 (tail 15.3 mm) | 27.21 | +0.90 | 2 / F,In2 | ok |
| DDR_BA2 | Y8 | M3 | R116 (tail 14.6 mm) | 25.52 | -0.79 | 2 / F,In2 | ok |
| DDR_RAS_N | AB7 | J3 | R117 (tail 17.0 mm) | 25.24 | -1.07 | 4 / B,F,In2,In5,In7 | ok |
| DDR_CAS_N | AA8 | K3 | R118 (tail 15.8 mm) | 22.74 | -3.57 | 1 / F,In7 | tune |
| DDR_WE_N | AB8 | L3 | R119 (tail 20.8 mm) | 21.68 | -4.63 | 2 / F,In7 | tune |
| DDR_CKE | R6 | K9 | R120 (tail 31.0 mm) | 31.42 | +5.11 | 1 / F | tune |
| DDR_ODT | T3 | K1 | R121 (tail 20.1 mm) | 39.67 | +13.36 | 1 / B,F | tune |
reset (not matched)
| net | FPGA ball | DRAM ball | terminator | length mm | vs ref | vias / layers | state |
|---|---|---|---|---|---|---|---|
| DDR_RESET_N | U7 | T2 | 28.29 | 2 / F,In7 | routed |
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.