Rockchip · AI & Linux Hub

Product engineering

RK3568 DDR design: devices, topology, ECC and routing constraints

RK3568 DDR design: devices, topology, ECC and routing constraints — Source-based circuits, interface constraints, PCB and validation boundaries.

· ArmSoM Editorial · 9 min read

This series reorganizes RK3568 Hardware Design Guide V1.1 (Chinese, 2021-06-08) and the separate High Speed PCB Design Guide V1.0.0 (English, 2021-04-12) around engineering questions. ArmSoM Sige3 uses RK3568B2. Its board documentation provides a product reference for studying and evaluating these design topics. SoC reference circuits do not describe every Sige3 circuit or exposed interface. Confirm SDK/BSP, kernel, silicon revision, firmware and peripheral combinations. Values are source references, not ArmSoM hardware measurements.

CN V1.1 §2.1.7; §3.2.2 · EN PCB V1.0.0 §1.20–1.26

Choose memory type and mapping first

The guide lists DDR3/DDR3L/LPDDR3/DDR4/LPDDR4/LPDDR4X, a 32-bit bus, two ranks and up to 8GB addressing. Its 8-bit ECC support applies to the listed DDR3/DDR3L/DDR4 modes, not every type. The PHY mapping on PDF pages 26–28 changes with memory type. Do not reuse a DDR4 net map as LPDDR4; schematic, training data, topology and supported-device list must agree.

Topology is more than routing convenience

The Chinese guide illustrates T and fly-by arrangements for DDR3/DDR3L and DDR4, and point-to-point connections for LPDDR3/4/4X. Review termination, VREF, RZQ, decoupling and sequencing together. An LPDDR4/4X-compatible design must check DDRPHY_VDDQ/VDDQL and DRAM rails; changing the software part number is insufficient. Include capacity, temperature grade, rank count and placement changes in training and stress validation.

Read LPDDR matching rules correctly

The English PCB tables allow DQ/DM-to-DQS difference within a byte below 600mil for LPDDR3/4/4X and explicitly say not to lengthen DQ/DM merely to match DQS: keep them short. LPDDR3 CA–CLK is <30mil and DQS–CLK <1500mil; LPDDR4/4X use <500mil and <1200mil respectively. Intra-pair mismatch for DQS and CLK is <12mil. These rules do not replace the segmented T/fly-by constraints for DDR3/DDR4.

Turn PCB rules into repeatable validation

Reference impedance is 50Ω±10% single-ended and 100Ω±10% differential. Byte-to-byte, DQ-to-DQ within a byte and CA spacing are at least 2W. DQ-to-DQS and clock-to-other spacing prefer 3W, minimum 2W. Produce a constraint report by net group with topology, stackup and vias, then validate cold starts, repeated power cycles, temperature limits and target-frequency load. No ArmSoM measured bandwidth or error-rate data is claimed.

Pin-swapping and RZQ restrictions

DDR3/DDR3L and DDR4 permit whole-byte swapping and DQ swapping within a byte, but not CA swapping. The ECC byte cannot swap with a normal byte; DDR4 ECC DQ order is also fixed. LPDDR3 must preserve its first D0–D7 byte and associated DQS/DM; other bytes follow the source swapping rules. LPDDR4/4X permit neither DQ nor CA swapping. DDR_RZQ (H7) uses 120Ω, 1% to ground for DDR3/DDR3L/DDR4/LPDDR3, but to DDRPHY_VDDQ for LPDDR4/4X. The identical resistance does not mean identical termination.

Source ECC wiring issue

Chinese page 28 says DDR3/DDR3L DQSU connects both to supply and to ground, repeating a net name. This is not converted into a wiring instruction; check Figure 2–12 and the actual DRAM datasheet for polarity. The following table retains all 85 PHY rows from Table 2–5 for net-by-net review, not as a universal DRAM schematic.

PHY DDR4 LPDDR4/LPDDR4x DDR3 LPDDR3
DDR_DQ0_A DDR4_DQL0_A LPDDR4_DQ0_A DDR3_DQ0 LPDDR3_D15
DDR_DQ1_A DDR4_DQL2_A LPDDR4_DQ1_A DDR3_DQ1 LPDDR3_D14
DDR_DQ2_A DDR4_DQL4_A LPDDR4_DQ2_A DDR3_DQ2 LPDDR3_D10
DDR_DQ3_A DDR4_DQL6_A LPDDR4_DQ3_A DDR3_DQ3 LPDDR3_D9
DDR_DQ4_A DDR4_DQL7_A LPDDR4_DQ4_A DDR3_DQ4 LPDDR3_D13
DDR_DQ5_A DDR4_DQL5_A LPDDR4_DQ5_A DDR3_DQ5 LPDDR3_D12
DDR_DQ6_A DDR4_DQL3_A LPDDR4_DQ6_A DDR3_DQ6 LPDDR3_D8
DDR_DQ7_A DDR4_DQL1_A LPDDR4_DQ7_A DDR3_DQ7 LPDDR3_D11
DDR_DM0_A DDR4_DML_A LPDDR4_DM0_A DDR3_DM0 LPDDR3_DM1
DDR_DQS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E1_B DDR3_CASN -
AC18 DDR4_BA0 LPDDR4_A2_B DDR3_A1 -
AC19 DDR4_BA1 LPDDR4_A4_B DDR3_A12 LPDDR3_A4
AC20 DDR4_BG0 LPDDR4_ODT1_CA_B DDR3_WEN -
AC21 DDR4_BG1 LPDDR4_ODT1_CA_A DDR3_BA0 -
AC22 DDR4_CKE LPDDR4_CKE0_A DDR3_CKE LPDDR3_CKE
AC23 DDR4_CLKP LPDDR4_CLKP_A DDR3_CLKP LPDDR3_CLKP
AC24 DDR4_CLKN LPDDR4_CLKN_A DDR3_CLKN LPDDR3_CLKN
AC25 DDR4_CS0N LPDDR4_CS0N_A DDR3_ODT1 LPDDR3_ODT0
AC26 DDR4_CS1N LPDDR4_CS1N_A DDR3_CS1N LPDDR3_ODT1
AC27 DDR4_ODT0 LPDDR4_CS1N_B DDR3_ODT0 LPDDR3_CS1N
AC28 DDR4_ODT1 LPDDR4_CS0N_B DDR3_CS0N LPDDR3_CS0N
AC29 DDR4_RESETN LPDDR4_RESETN DDR3_RESETN -

Segmented DDR3/DDR4 and ECC routing tables

English PCB pages 32–43 separate data, control and command routing. DDR3/DDR4 and their ECC data tables share the data rules below, but the M region in ECC control topology is 43Ω±10%, not the ordinary 50Ω. Interpret M, L1, L2a and L2b using the corresponding diagram; applying a limit to the wrong branch is invalid. The source requires short control/command routes and CA spacing ≥2W.

Mode Impedance Source length constraints
DDR3 / DDR3 ECC / DDR4 / DDR4 ECC: data 50Ω±10% / 100Ω±10% DQ–DQS <600mil; DM–DQS <600mil; DQS–CLK <1500mil; P/N <12mil
DDR3 control 50Ω±10% / 100Ω±10% CSn/CKE/ODT–CLK <30mil; L2a–L2b ≤20mil; L2a(CSn/CKE/ODT/CLK) ≤600mil
DDR4 control 50Ω±10% / 100Ω±10% CSn/CKE/ODT–CLK <30mil; L2a–L2b ≤20mil; L2a(CSn/CKE/ODT) ≤600mil
DDR3 / DDR4 command 50Ω±10% L1(command–CLK) <600mil; L2a–L2b ≤20mil; L2a(command) ≤600mil
DDR3 ECC / DDR4 ECC control M:43Ω±10%; outside M:50Ω±10%; differential:100Ω±10% CSn/CKE/ODT–CLK <60mil
DDR3 ECC / DDR4 ECC command M:50Ω±10%; outside M:50Ω±10% command–CLK <600mil

Source parameters and constraints

Item Source reference
LPDDR3 CA–CLK / DQS–CLK <30mil / <1500mil
LPDDR4/4X CA–CLK / DQS–CLK <500mil / <1200mil
DQ/DM–DQS <600mil
DQS P/N; CLK P/N <12mil

Source figures

The source-page screenshots preserve circuit labels and context; article text and parameter tables remain editable. No matching English edition of the main Chinese guide was supplied, so its figures remain Chinese in all four languages. Images from the separate English PCB guide are labeled accordingly. Page references are physical PDF pages.

RK3568 DDR design: devices, topology, ECC and routing constraints — Chinese hardware guide, PDF 31

Chinese hardware guide · PDF 31

RK3568 DDR design: devices, topology, ECC and routing constraints — Chinese hardware guide, PDF 34

Chinese hardware guide · PDF 34

RK3568 DDR design: devices, topology, ECC and routing constraints — English high-speed PCB guide, PDF 44

English high-speed PCB guide · PDF 44

RK3568 DDR design: devices, topology, ECC and routing constraints — English high-speed PCB guide, PDF 33

English high-speed PCB guide · PDF 33

RK3568 DDR design: devices, topology, ECC and routing constraints — English high-speed PCB guide, PDF 34

English high-speed PCB guide · PDF 34

RK3568 DDR design: devices, topology, ECC and routing constraints — English high-speed PCB guide, PDF 36

English high-speed PCB guide · PDF 36

RK3568 DDR design: devices, topology, ECC and routing constraints — English high-speed PCB guide, PDF 37

English high-speed PCB guide · PDF 37

Further reading and development resources

Explore this topic → · Learning paths →