13. DDR subsystem architecture (DDRSS)

13.1 DDRS introduction

The DDR subsystem (DDRSS) includes:

Caution: DDRCTRL and DDRPHYC are configured to support multiple ranks (dual rank), however it is strongly recommended to use single rank LPDDR4 devices.
Dual rank implementation is susceptible to signal integrity (SI) limitations due to unterminated lanes inside the DRAM which can restrict its frequency range.

13.2 DDRSS block diagram

Figure 37. DDRSS top-level diagram

Figure 37: DDRSS top-level diagram showing DDRCTRL, DDRPERFM, DDRPHYC, AHB2APB, RISAF with AES, and clock/reset generation blocks with AXI, APB, AHB, and clock signals connected to DRAM interface.

78 functional pins at DRAM interface

Legend:

MSv68388V1

Figure 37: DDRSS top-level diagram showing DDRCTRL, DDRPERFM, DDRPHYC, AHB2APB, RISAF with AES, and clock/reset generation blocks with AXI, APB, AHB, and clock signals connected to DRAM interface.

13.3 DDRSS interfaces

The DDRSS connects to the system bus through the following interfaces:

Note: The RIF protection is detailed in Section 21: Reset and clock control (RCC) (not RIFSC) and pointer towards RCC (for access rights and low-power status), and Section 6.2: Resource isolation framework (RIF) (pointer to RIF) for access rights.

RM0457 DDR subsystem architecture (DDRSS)

RM0457 Rev 5 427/5881

13.4 DDRSS embedded fractional PLL2

The DDRSS embeds locally a fractional PLL2 provided with a spread-spectrum modulator. While physically located in the DDRSS, this PLL2 is under the RCC control. Especially, registers controlling the different PLL2 tuning are RCC registers.

The clock delivered by the PLL2 is configurable in a range from 16 MHz to 3200 MHz, and addresses the DDRCTRL core part and the DDRPHYC. The DDRPHYC relies on this clock for the DDR interface transactions.

The spread-spectrum modulator connected to the PLL2 allows modulating the DRAM clock frequency (triangular down-spread modulation) in order to reduce EMI at DRAM interface.

Depending on the requested data rate, the clock distribution to the DDRPHYC varies as follows.

Note: Enabling BypassPclk_enable also drives to 1 the PLL2 Foutpostdiven input to enable the FOUT2 output.

The table below presents, depending on the configured data rate, the various frequency values in the DDRSS.

Table 56. Frequency values for the DDRSS clocks versus data rate versus DDR JEDEC standard

ConditionsBypass Pclk_enablePLL2 delivered clock (MHz)PLL2 divided by 4 delivered clock (MHz)DDRCTRL core clock (MHz)DDRPHYC DFI clock (MHz)DDRPHYC bypass Pclk (MHz)DDR_CLK (MHz)
Data rate < 667 MT/sLPDDR41Up to 666Up to 166Up to 166Up to 166Up to 166Up to 333
DDR3L1Up to 666Up to 166Up to 166Up to 166Up to 166Up to 333
DDR4DDR4 DLL-on mode only possible starting from 625 MHz

Table 56. Frequency values for the DDRSS clocks versus data rate versus DDR JEDEC standard (continued)

ConditionsBypass Pclk_enablePLL2 delivered clock (MHz)PLL2 divided by 4 delivered clock (MHz)DDRCTRL core clock (MHz)DDRPHYC DFI clock (MHz)DDRPHYC bypass Pclk (MHz)DDR_CLK (MHz)
Data rate > 667 MT/sLPDDR40Up to 600Gated downUp to 600Up to 600Gated downUp to 1200
DDR3L0Up to 533Gated downUp to 533Up to 533Gated downUp to 933
DDR40Up to 600Gated downUp to 600Up to 600Gated downUp to 1200

The figure below presents a high-level view of the ClkSwitcher logic.

Figure 38. ClkSwitcher architecture view

Figure 38: ClkSwitcher architecture view. This block diagram shows the internal logic of the ClkSwitcher. It receives 'From DDRDBG DDRDBG_BYPASS_PCLKEN' and 'Foutpostdiven' as inputs. The 'Foutpostdiven' signal goes into a 'FRAC PLL' block, which outputs 'Foutdiv4' and 'Fout'. These two signals are fed into a 2-to-1 multiplexer. The multiplexer's output is 'int_dfi_clk'. The 'Fout' signal also goes to an AND gate along with 'From RCC Phydcg_cken'. The output of the AND gate is 'Enable', which goes to a 'CGcell' block. The 'Fout' signal also goes to the 'Clock' input of the 'CGcell'. The 'CGcell' output is 'Clock gated', which leads to 'dphy_ker_byp_ck'. The diagram is labeled 'MSv68391V2' in the bottom right corner.
Figure 38: ClkSwitcher architecture view. This block diagram shows the internal logic of the ClkSwitcher. It receives 'From DDRDBG DDRDBG_BYPASS_PCLKEN' and 'Foutpostdiven' as inputs. The 'Foutpostdiven' signal goes into a 'FRAC PLL' block, which outputs 'Foutdiv4' and 'Fout'. These two signals are fed into a 2-to-1 multiplexer. The multiplexer's output is 'int_dfi_clk'. The 'Fout' signal also goes to an AND gate along with 'From RCC Phydcg_cken'. The output of the AND gate is 'Enable', which goes to a 'CGcell' block. The 'Fout' signal also goes to the 'Clock' input of the 'CGcell'. The 'CGcell' output is 'Clock gated', which leads to 'dphy_ker_byp_ck'. The diagram is labeled 'MSv68391V2' in the bottom right corner.

13.5 DDRSS top-level features

13.5.1 Filtering and AES encryption

Incoming data transfers to the DDRSS are first checked against security rules. The RISAF4 performs this security checking. The security rules are defined per SDRAM memory subregions, and programmed into the RISAF through its AHB interface (see Section 11.5: RISAF registers more details on programming rules).

The DDRSS is dual port, as the RISAF and the DDCRTL. The security rules are set identically for all these access ports.

The read transactions that do not comply to the security rules result as read-as-zeros (RAZ).

The write transactions that do not comply to the defined security rules result in non-effective writes: the write transaction is forwarded downstream but nothing is written in the SDRAM array.

At reset, the RISAF is configured with a single region covering the whole SDRAM memory space, and accepting only trusted domain (secure and privilege) traffic.

On top of security defined rules, some regions can be AES-128 encrypted. Encrypted regions are programmed through the RISAF registers. The AES encryption/decryption engine is embedded in the RISAF. While the RISAF is dual port, the AES encryption/decryption engine can be applied only on RISAF port 1.

The STM32MP23/25xx bus interconnect is set so that the following initiator list is candidate for encryption: CPU1, CPU2, HPDMA1/2/3 AHB traffic, HPDMA 1/2/3 AXI traffic, and LTDC secure traffic.

At DDRSS initialization time, the 128-bit encryption key must be written in the RISAF registers before any data transfer occurs.

13.5.2 DDR3/4 AC-swizzling

The DDRPHYC natively allows swapping address pad connections for LPDDR4. This is especially helpful when the PCB routing requires to swap the AC ball connections (see Section 15.2: DDRPHYC block diagram for more details).

The DDRPHYC does not natively support the same feature for DDR3 and DDR4. At the DFI interface between the DDRCTRL and the DDRPHYC, a set of multiplexers enables this functionality. These multiplexers driving inputs are programmable through DDRSS DDRDBG registers. The figure below presents this muxing stage.

Any of the 25 input signals can be swapped to match the remapping performed downstream of the DDRPHYC. By default, these signals are not remapped.

Figure 39. AC-swizzling muxing stage

Block diagram of the AC-swizzling muxing stage. It shows inputs from DDRDBG (ddr34_acswizzling_add0 to ddr34_acswizzling_wen) and DFI (dfi_address_0 to dfi_wen) entering a central block. The block contains multiplexers and routing logic. Outputs are dfi_address_0_out, dfi_address_1_out, dfi_rasn_out, and dfi_wen_out. A reference ID MSv68390V2 is in the bottom right corner.

The diagram illustrates the AC-swizzling muxing stage. At the top, a box labeled 'DDRDBG' provides 16 5-bit control signals: ddr34_acswizzling_add0, ddr34_acswizzling_add1, ..., ddr34_acswizzling_add15, ddr34_acswizzling_actn, ddr34_acswizzling_bk0, ddr34_acswizzling_bk1, ddr34_acswizzling_bk2, ddr34_acswizzling_bg0, ddr34_acswizzling_bg1, ddr34_acswizzling_casn, ddr34_acswizzling_rasn, and ddr34_acswizzling_wen. On the left, a group of inputs includes -dfi_address_0, -dfi_address_1, -dfi_address_2, ..., -dfi_address_15, -dfi_actn, -dfi_bank_0, -dfi_bank_1, -dfi_bank_2, -dfi_bg_0, -dfi_bg_1, -dfi_casn, -dfi_rasn, and -dfi_wen. These inputs feed into a central grey block containing several multiplexers (represented by parallelograms) and routing paths. The outputs on the right are dfi_address_0_out, dfi_address_1_out, ..., dfi_rasn_out, and dfi_wen_out. A reference ID 'MSv68390V2' is located in the bottom right corner of the diagram area.

Block diagram of the AC-swizzling muxing stage. It shows inputs from DDRDBG (ddr34_acswizzling_add0 to ddr34_acswizzling_wen) and DFI (dfi_address_0 to dfi_wen) entering a central block. The block contains multiplexers and routing logic. Outputs are dfi_address_0_out, dfi_address_1_out, dfi_rasn_out, and dfi_wen_out. A reference ID MSv68390V2 is in the bottom right corner.

13.5.3 Mode register read

The LPDDR4 standard is provided with a mode register read command. The DDR4 is provided with a multi-purpose register read command. The DDRCTRL supports these commands but does not register the resulting read value.

The DDRSS is then enhanced with registers to store these values, to monitor the status, and to clear them.

Addresses to these registers are the following:

The sequence to perform a mode read register (LPDDR4) or a multi-purpose register read (DDR4) is detailed below:

  1. 1. Program the mode register read through the DDRCTRL APB interface:
    1. a) The DDRCTRL performs the command sequence for reading the mode register value.
    2. b) When the read value comes back on the hif_mrr_data interface and is valid, it is stored in the DDRDBG MRR read value.
    3. c) The DDRDBG MRR status indicates a valid data is present in the register.
  2. 2. Poll on the DDRDBG MRR status register through the DDRSS DDRDBG APB interface.
  3. 3. When the DDRDBG MRR status register indicates a valid data is present in the read value register, read it from the DDRDBG APB interface.
  4. 4. Clear the read data and the status bit writing the clear register bit through the DDRDBG APB interface.

13.5.4 Observability

The DDRSS reports 16 parallel signals to the HDP (hardware debug port):

The 12 signals directly assigned to an observability port of the HDP are listed in the following table.

Table 57. List of observable signals sent directly to HDP

#SignalSourceMeaning
0ddrss_lpiddrc_csysreqRCCcsysreq signal from the DDRCTRL core low-power interface
1ddrss_lpiddrc_csysackDDRCTRLcsysack signal from the DDRCTRL core low-power interface
2ddrss_lpiddrc_cactiveDDRCTRLcactive signal from the DDRCTRL core low power interface
3ddrss_mcdcg_enRCCcken signal from the RCC to the MCDCG block
4ddrss_dphycg_enRCCcken signal from the RCC to the PHYDCG block
5dfi0_init_startDDRCTRLdfi interface signal, used for initialization and going into LP2/LP3 low-power mode
6dfi0_init_completeDDRPHYCdfi interface signal, used for initialization and going into LP2/LP3 low-power mode
7dfi0_ctrlupd_reqDDRCTRLUpdate request from the controller that the DDRPHYC updates the delay-line values from the master delay line
8dfi0_phyupd_reqDDRPHYCDDRPHYC requests to the DDRCTRL to hold traffic for the time the DDRPHYC performs a VT compensation of its internal delay line.
9dfi0_phymstr_reqDDRPHYCDDRPHYC requests control over the DRAM bus.
10dfi0_lp_reqDDRCTRLThere is no opportunity for low-power mode entry.
11dfi0_freq[0]DDRCTRLUsed, in STM32MP23/25xx, to switch to LP2/LP3 low-power mode

The pool of 16 signals among which four can be selected to be routed to the HDP are listed in the table below.

Table 58. List of observable signals selectable and sent to HDP

#SignalSourceMeaning
0ddrctrl_reg_selfref_type[0]DDRCTRLBit 0 of the reg_selfref_type DDRCTRL register
1ddrctrl_reg_selfref_type[1]DDRCTRLBit 1 of the reg_selfref_type DDRCTRL register
2pll2_div_10Frac_PLLMain output of the Frac_PLL, divided by 10
3pll2_lockFrac_PLLLock of the frac_PLL
4dwc_ddrphy_dto_div_10DDRPHYCDDRPHYC internal PLL output divided by 10
5dwc_ddrphy_dtoDDRPHYCDDRPHYC internal PLL lock
6lpi_cactive_n_1DDRCTRLcactive from AXI port 1, allowing to shut down port clock
7lpi_cactive_n_2DDRCTRLcactive from AXI port 2, allowing to shut down port clock
8ddrss_phy_pwok_tcrPWRCTRLPWROKIN provided to the DDRPHYC by the PWRCTRL
9um_ddrss_axi1_awpoison
and um_ddrss_axi1_awvalid
RISAFAt the output of the RISAF, write poison bit sent to DDRCTRL
10um_ddrss_axi1_arpoison and
um_ddrss_axi1_arvalid
RISAFAt the output of the RISAF, read poison bit sent to DDRCTRL
11um_ddrss_axi1_ruser[0] and
um_ddrss_axi1_rvalid
DDRCTRLRead transaction must be decrypted by RISAF
12um_perf_op_is_enter_selfrefDDRCTRLAssert for every entry into self-refresh
13um_lpr_credit_cnt == 0b0
0b1: 0b0
DDRCTRLSignal asserted when there is no more space in the low priority read cam
14um_hpr_credit_cnt == 0b0
0b1: 0b0
DDRCTRLSignal asserted when there is no more space in the high priority read cam
15um_wr_credit_cnt == 0b0
0b1: 0b0
DDRCTRLSignal asserted when there is no more space in the write cam

The figure below presents the observability signals sent to HDP from the DDRSS.

Figure 40. Observability infrastructure organization

Block diagram of DDRDBG observability infrastructure showing registers (OBSP_CTRL, OBSP3_SEL[4:0], etc.), multiplexers, and signal paths to HDP[15:0].

The diagram illustrates the DDRDBG (Debug) infrastructure. At the top, a row of registers is shown: OBSP_CTRL (debug) (R/W, 0x0C), followed by two empty registers, then 0x480500C, 0x0000_0000, and four selection registers: OBSP3_SEL[4:0], OBSP2_SEL[4:0], OBSP1_SEL[4:0], and OBSP0_SEL[4:0]. Below these, four multiplexers (represented by triangles) are connected to the selection registers. The outputs of these multiplexers feed into a set of 16 internal signals (labeled 16 internal signals (1)). These signals are then multiplexed to provide outputs to HDP[15], HDP[14], HDP[13], and HDP[12]. Additionally, 12 internal signals (labeled 12 internal signals (2)) are shown as direct connections to HDP[11:0]. The entire infrastructure is enclosed in a dashed box labeled DDRDBG. The version number MSv68389V2 is located at the bottom right of the diagram.

Block diagram of DDRDBG observability infrastructure showing registers (OBSP_CTRL, OBSP3_SEL[4:0], etc.), multiplexers, and signal paths to HDP[15:0].

13.5.5 DDRSS low power

The DDRSS low-power strategy is a complex joint work involving the RCC, the PWR, the DDRCTRL, and the DDRPHYC. At DDRSS level, registers are used to control two low-power strategy features.

DDRCTRL XPI port clock gating

The DDRCTRL XPI ports (AXI ports) can be clocked down if there are no traffic going through for a programmable amount of time. This duration is programmable in DDRCTRL registers. The clock gating logic however is outside of the DDRCTRL. The DDRDBG

register lp_disable bitfield lpi_xpi_disable can be used to disable this clock gating feature for both xpi ports simultaneously.

Automatic self-refresh involving DDRCTRL clock gating

The STM32MP23/25xx supports three ways to set the SRAM in self-refresh: automatic, hardware, and software self-refreshes.

An automatic self-refresh relies on DDRCTRL internal counters programmed by software. When the DDRCTRL is idle for an expired counter period, it can set the SDRAM in self-refresh. Once the SDRAM is in self-refresh, the DDRCTRL asserts an external signal (stat_ddrc_reg_selfref_type). A glue logic in the DDRSS relies on this signal to gate down the clock delivered to the DDRCTRL core part, as depicted in the figure below.

Figure 41. Clock gating the DDRCTRL core clk in automatic self-refresh

Block diagram of clock gating logic for DDRCTRL core clock in automatic self-refresh. The diagram shows inputs from DDRDBG (ddrc_auto_sr_delay), RCC (mcdcg_cken), DDR_PLL (int_dfi_clk), and DDRDBG (lpi_ddrc_disable). These inputs feed into a logic block containing a counter (auto_sr_cnt), a comparator (auto_sr_cnt == ddrc_aut_sr_delay), and a condition check (cactive_ddrc=1 || stat_ddrc_reg_selfref_type != 0b11). The logic output controls a CG cell which produces the ddrck_ker_ck signal. The label 'MCDCG' is also present within the logic block.
Block diagram of clock gating logic for DDRCTRL core clock in automatic self-refresh. The diagram shows inputs from DDRDBG (ddrc_auto_sr_delay), RCC (mcdcg_cken), DDR_PLL (int_dfi_clk), and DDRDBG (lpi_ddrc_disable). These inputs feed into a logic block containing a counter (auto_sr_cnt), a comparator (auto_sr_cnt == ddrc_aut_sr_delay), and a condition check (cactive_ddrc=1 || stat_ddrc_reg_selfref_type != 0b11). The logic output controls a CG cell which produces the ddrck_ker_ck signal. The label 'MCDCG' is also present within the logic block.

At DDRSS top level, the registers are used:

Note: DDRCTRL registers are in the gated-down clock domain. The delay must let any ongoing transaction on the DDRCTRL registers complete.

13.5.6 DFI errors

The DDRPHYC uses the dfi_error signal at the DFI interface to report two kind of errors to the system:

asserts the dfi_error_signal with dfi_error_info = 0b0000. In this case, the DDRPHYC compensation time is over and correct memory operation is no longer guaranteed.

The dfi_error is reported at the top of the DDRSS as an interrupt, and status is logged in the DDRSS DDRDBG.

13.5.7 LPDDR4 AC copy

The DDRPHYC exhibits two DFI interfaces. The LPDDR4 SDRAM JEDEC standard makes use of only six AC bits. LPDDR4 is natively dual channel, meaning that an LPDDR4 device natively exhibits two AC interfaces: one for channel A, and one for channel B. On the PCB, the LPDDR4 requires then to “route in T” AC outputs of the STM32MP23/25xx to the LPDDR4 SDRAM device.

Alternatively, leveraging the reduced number of AC bits for LPDDR4, an STM32MP23/25xx device exhibit twice the AC bits on its balls, allowing a point-to-point routing from the STM32MP23/25xx to the LPDDR4 SDRAM device.

This is achieved by copying, at the DFI interface, the address bit output of the DDRCTRL on each of the DDRPHYC DFI interface, and specifically by configuring the DDRPHYC to use both copies on its AC balls for LPDDR4.

This feature is embedded in the DDRSS hardware, and does not require any software management at this level.

13.6 DDRSS registers

13.6.1 DDRDBG low-power disable register (DDRDBG_LP_DISABLE)

Address offset: 0x000

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.LPI_DDRC_DISABLERes.Res.Res.Res.Res.Res.Res.LPI_XPI_DISABLE
rwrw

Bits 31:9 Reserved, must be kept at reset value.

Bit 8 LPI_DDRC_DISABLE:

0: No effect

1: Disable automatic clock gating of DDRC when idle.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 LPI_XPI_DISABLE:

0: No effect

1: Disable automatic clock gating of XPIs when idle.

13.6.2 DDRDBG bypass PCLKEN register (DDRDBG_BYPASS_PCLKEN)

Address offset: 0x004

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ENABL
E
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 ENABLE:

0: No effect

1: The DDRPHYC Bypass_Pclken is active. The targeted data rate is less than 666 MT/s.

The clock fed to the SDRAM interface is the one coming directly from the interfan frac pll, and the DDRPHYC does not alter it.

13.6.3 DDRDBG DDRC auto SR delay register (DDRDBG_DDRC_AUTO_SR_DELAY)

Address offset: 0x008

Reset value: 0x0000 0020

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.DELAY_CYCLES[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 DELAY_CYCLES[7:0]: Number of delay cycles to wait before to gate down the DDRC clock when in auto self-refresh

This delay allows any ongoing register access to be completed before gating the DDRC clock.

13.6.4 DDRDBG OBSP control register (DDRDBG_OBSP_CTRL)

Address offset: 0x00C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.OBSP3_SEL[4:0]Res.Res.Res.OBSP2_SEL[4:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.OBSP1_SEL[4:0]Res.Res.Res.OBSP0_SEL[4:0]
rwrwrwrwrwrwrwrwrwrw

Bits 31:29 Reserved, must be kept at reset value.

Bits 28:24 OBSP3_SEL[4:0]:

Selects which of the input observable signal is forwarded to the HDP on selectable observability line 3.

Bits 23:21 Reserved, must be kept at reset value.

Bits 20:16 OBSP2_SEL[4:0]:

Selects which of the input observable signal is forwarded to the HDP on selectable observability line 2.

Bits 15:13 Reserved, must be kept at reset value.

Bits 12:8 OBSP1_SEL[4:0]:

Selects which of the input observable signal is forwarded to the HDP on selectable observability line 1.

Bits 7:5 Reserved, must be kept at reset value.

Bits 4:0 OBSP0_SEL[4:0]:

Selects which of the input observable signal is forwarded to the HDP on selectable observability line 0.

13.6.5 DDRDBG FRAC PLL lock register (DDRDBG_FRAC_PLL_LOCK)

Address offset: 0x010

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LOCK
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 LOCK:

0: No effect

1: PLL lock, direct copy of ddrss_pll2_lock

13.6.6 DDRDBG DTO output register (DDRDBG.DTO_OUTPUT)

Address offset: 0x014

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DTO
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 DTO:

0: No effect

1: DDRPHYC DTO output is stored in this register. Among other signals of interests, the DDRPHYC PLL lock can be observed in this register.

13.6.7 DDRDBG DFI error control register (DDRDBG.DFI_ERRORS_CTRL)

Address offset: 0x030

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.DFI_ERROR1_SETDFI_ERROR1_CLEARRes.Res.Res.Res.Res.Res.DFI_ERROR0_SETDFI_ERROR0_CLEAR
rwrwrwrw

Bits 31:10 Reserved, must be kept at reset value.

Bit 9 DFI_ERROR1_SET:

0: No effect

1: Trigger the interrupt linked with dfi_error.

Bit 8 DFI_ERROR1_CLEAR:

0: No effect

1: Clear the interrupt linked with dfi_error1.

Bits 7:2 Reserved, must be kept at reset value.

Bit 1 DFI_ERROR0_SET:

0: No effect

1: Trigger the interrupt linked with dfi_error0.

Bit 0 DFI_ERROR0_CLEAR:

0: No effect

1: Clear the interrupt linked with dfi_error0.

13.6.8 DDRDBG DFI error status register
(DDRDBG_DFI_ERROR_STATUS)

Address offset: 0x034

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.DFI_ERROR1_STATUSRes.Res.Res.Res.Res.Res.Res.DFI_ERROR0_STATUS
rwrw

Bits 31:9 Reserved, must be kept at reset value.

Bit 8 DFI_ERROR1_STATUS : Status bit for dfi_error1

0: No effect

1: Clear the interrupt linked with dfi_error1.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 DFI_ERROR0_STATUS : Status bit for dfi_error0

0: No effect

1: Clear the interrupt linked with dfi_error0.

13.6.9 DDRDBG DFI error mask register
(DDRDBG_DFI_ERROR_MSK)

Address offset: 0x38

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.DFI_ERROR1_MASKRes.Res.Res.Res.Res.Res.Res.DFI_ERROR0_MASK
rwrw

Bits 31:9 Reserved, must be kept at reset value.

Bit 8 DFI_ERROR1_MASK :

0: No effect

1: Interrupt linked to dfi_error1 is masked. Clear the interrupt linked with dfi_error1.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 DFI_ERROR0_MASK :

0: No effect

1: Interrupt linked to dfi_error0 is masked. Clear the interrupt linked with dfi_error0.

13.6.10 DDRDBG DDR34 AC swizzle ADD3_0 register (DDRDBG_DDR34_AC_SWIZZLE_ADD3_0)

Address offset: 0x100

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.DDR34_AC_SWIZZLING_ADD3[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD2[4:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DDR34_AC_SWIZZLING_ADD1[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD0[4:0]
rwrwrwrwrwrwrwrwrwrw

Bits 31:29 Reserved, must be kept at reset value.

Bits 28:24 DDR34_AC_SWIZZLING_ADD3[4:0]: Remapping input bit on add3 DDRPHYC input at the DFI interface (remapping defined in Table 59)

Bits 23:21 Reserved, must be kept at reset value.

Bits 20:16 DDR34_AC_SWIZZLING_ADD2[4:0]: Remapping input bit on add2 DDRPHYC input at the DFI interface (remapping defined in Table 59)

Bits 15:13 Reserved, must be kept at reset value.

Bits 12:8 DDR34_AC_SWIZZLING_ADD1[4:0]: Remapping input bit on add1 DDRPHYC input at the DFI interface (remapping defined in Table 59)

Bits 7:5 Reserved, must be kept at reset value.

Bits 4:0 DDR34_AC_SWIZZLING_ADD0[4:0]: Remapping input bit on add0 DDRPHYC input at the DFI interface (remapping defined in Table 59)

Table 59. Detailed AC swizzling register values

Register value (binary format)Selected remapping (selected input signal)Register value (binary format)Selected remapping (selected input signal)
00000No remapping01110DFI_ADDRSS_13
00001DFI_ADDRSS_001111DFI_ADDRSS_14 (DDR3 only)
00010DFI_ADDRSS_110000DFI_ADDRSS_15 (DDR3 only)
00011DFI_ADDRSS_210001Reserved
00100DFI_ADDRSS_310010DFI_ACTN (DDR4 only)
00101DFI_ADDRSS_410011DFI_BANK_0
00110DFI_ADDRSS_510100DFI_BANK_1
00111DFI_ADDRSS_610101DFI_BANK_2
01000DFI_ADDRSS_710110DFI_BANK_0
01001DFI_ADDRSS_810111DFI_BANK_1
01010DFI_ADDRSS_911000DFI_CASN
01011DFI_ADDRSS_1011001DFI_RASN

Table 59. Detailed AC swizzling register values (continued)

Register value
(binary format)
Selected remapping
(selected input signal)
Register value
(binary format)
Selected remapping
(selected input signal)
01100DFI_ADDRSS_1111010DFI_WEN
01101DFI_ADDRSS_1211011 to 11111Reserved

13.6.11 DDRDBG DDR34 AC swizzle ADD7_4 register
(DDRDBG_DDR34_AC_SWIZZLE_ADD7_4)

Address offset: 0x104

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.DDR34_AC_SWIZZLING_ADD7[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD6[4:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DDR34_AC_SWIZZLING_ADD5[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD4[4:0]
rwrwrwrwrwrwrwrwrwrw

Bits 31:29 Reserved, must be kept at reset value.

Bits 28:24 DDR34_AC_SWIZZLING_ADD7[4:0] : Remapping input bit on add7 DDRPHYC input at the DFI interface (remapping is defined in Table 59 )

Bits 23:21 Reserved, must be kept at reset value.

Bits 20:16 DDR34_AC_SWIZZLING_ADD6[4:0] : Remapping input bit on add6 DDRPHYC input at the DFI interface (remapping defined in Table 59 )

Bits 15:13 Reserved, must be kept at reset value.

Bits 12:8 DDR34_AC_SWIZZLING_ADD5[4:0] : Remapping input bit on add5 DDRPHYC input at the DFI interface (remapping defined in Table 59 )

Bits 7:5 Reserved, must be kept at reset value.

Bits 4:0 DDR34_AC_SWIZZLING_ADD4[4:0] : Remapping input bit on add4 DDRPHYC input at the DFI interface (remapping defined in Table 59 )

13.6.12 DDRDBG DDR34 AC swizzle ADD11_8 register
(DDRDBG_DDR34_AC_SWIZZLE_ADD11_8)

Address offset: 0x108

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.DDR34_AC_SWIZZLING_ADD11[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD10[4:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DDR34_AC_SWIZZLING_ADD9[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD8[4:0]
rwrwrwrwrwrwrwrwrwrw

13.6.13 DDRDBG DDR34 AC swizzle ADD15_12 register
(DDRDBG_DDR34_AC_SWIZZLE_ADD15_12)

Address offset: 0x10C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.DDR34_AC_SWIZZLING_ADD15[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD14[4:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DDR34_AC_SWIZZLING_ADD13[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD12[4:0]
rwrwrwrwrwrwrwrwrwrw

13.6.14 DDRDBG DDR34 AC swizzle BK2 0 ACTN register
(DDRDBG_DDR34_AC_SWIZZLE_BK2_0_ACTN)

Address offset: 0x110

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.DDR34_AC_SWIZZLING_BK3[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_BK2[4:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DDR34_AC_SWIZZLING_BK1[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ACTN[4:0]
rwrwrwrwrwrwrwrwrwrw

Bits 31:29 Reserved, must be kept at reset value.

Bits 28:24 DDR34_AC_SWIZZLING_BK3[4:0]: Remapping input bit on bk3 DDRPHYC input at the DFI interface (remapping defined in Table 59)

Bits 23:21 Reserved, must be kept at reset value.

Bits 20:16 DDR34_AC_SWIZZLING_BK2[4:0]: Remapping input bit on bk2 DDRPHYC input at the DFI interface (remapping defined in Table 59)

Bits 15:13 Reserved, must be kept at reset value.

Bits 12:8 DDR34_AC_SWIZZLING_BK1[4:0]: Remapping input bit on bk1 DDRPHYC input at the DFI interface (remapping defined in Table 59)

Bits 7:5 Reserved, must be kept at reset value.

Bits 4:0 DDR34_AC_SWIZZLING_ACTN[4:0]: Remapping input bit on actn DDRPHYC input at the DFI interface (remapping defined in Table 59)

13.6.15 DDRDBG DDR34 AC swizzle RASN CASN BG1_0 register
(DDRDBG_DDR34_AC_SWIZZLE_RASN_CASN_BG1_0)

Address offset: 0x114

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.DDR34_AC_SWIZZLING_RASN[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_CASN[4:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DDR34_AC_SWIZZLING_BG1[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_BG0[4:0]
rwrwrwrwrwrwrwrwrwrw

Bits 31:29 Reserved, must be kept at reset value.

Bits 28:24 DDR34_AC_SWIZZLING_RASN[4:0]: Remapping input bit on rasn DDRPHYC input at the DFI interface (remapping defined in Table 59)

Bits 23:21 Reserved, must be kept at reset value.

Bits 20:16 DDR34_AC_SWIZZLING_CASN[4:0]: Remapping input bit on casn DDRPHYC input at the DFI interface (remapping defined in Table 59)

Bits 15:13 Reserved, must be kept at reset value.

Bits 12:8 DDR34_AC_SWIZZLING_BG1[4:0]: Remapping input bit on bg1 DDRPHYC input at the DFI interface (remapping defined in Table 59)

Bits 7:5 Reserved, must be kept at reset value.

Bits 4:0 DDR34_AC_SWIZZLING_BG0[4:0]: Remapping input bit on bg0 DDRPHYC input at the DFI interface (remapping defined in Table 59)

13.6.16 DDRDBG DDR34 AC swizzle WEN register (DDRDBG_DDR34_AC_SWIZZLE_WEN)

Address offset: 0x118

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DDR34_AC_SWIZZLING_WEN[4:0]
rwrwrwrwrw

Bits 31:5 Reserved, must be kept at reset value.

Bits 4:0 DDR34_AC_SWIZZLING_WEN[4:0]: Remapping input bit on wen DDRPHYC input at the DFI interface (remapping defined in Table 59)

13.6.17 DDRSS register map

Table 60. DDRSS register map and reset values

offsetRegister name313029282726252423222120191817161514131211109876543210
0x000DDRDBG_LP_DISABLERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00
0x004DDRDBG_BYPASS_PCLKENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.0
Reset value0
0x008DDRDBG_DDRC_AUTO_SR_DELAYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DELAY_CYCLES[7:0]
Reset value00100000
0x00CDDRDBG_OBPS_CTRLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000000000000000000
0x010DDRDBG_FRAC_PLL_LOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.0
Reset value0
0x014DDRDBG_DTO_OUTPUTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.0
Reset value0

Table 60. DDRSS register map and reset values (continued)

offsetRegister name313029282726252423222120191817161514131211109876543210
0x018-0x02CReservedReserved
0x030DDRDBG_DFI_ERRORS_CTRLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DFI_ERROR1_SETDFI_ERROR1_CLEARRes.Res.Res.Res.Res.Res.Res.
Reset value00
0x034DDRDBG_DFI_ERROR_STATUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DFI_ERROR1_STATUSDFI_ERROR0_STATUSRes.Res.Res.Res.Res.Res.Res.
Reset value000
0x038DDRDBG_DFI_ERROR_MSKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DFI_ERROR1_MASKDFI_ERROR0_MASKRes.Res.Res.Res.Res.Res.Res.
Reset value000
0x03C-0x0FCReservedReserved
0x100DDRDBG_DDR34_AC_SWIZZLE_ADD3_0Res.Res.Res.DDR34_AC_SWIZZLING_ADD3[4:0]Res.Res.Res.
Reset value00000
0x104DDRDBG_DDR34_AC_SWIZZLE_ADD7_4Res.Res.Res.DDR34_AC_SWIZZLING_ADD7[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD6[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD5[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD4[4:0]Res.Res.Res.
Reset value0000000000000000000000
0x108DDRDBG_DDR34_AC_SWIZZLE_ADD11_8Res.Res.Res.DDR34_AC_SWIZZLING_ADD11[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD10[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD9[4:0]Res.Res.Res.DDR34_AC_SWIZZLING_ADD8[4:0]Res.Res.Res.
Reset value0000000000000000000000

Table 60. DDRSS register map and reset values (continued)

offsetRegister name313029282726252423222120191817161514131211109876543210
0x10CDDRDBG_DDR34_AC_SWIZZLE_ADD15_12Res.Res.Res.DDR34_AC_SWIZZLING_ADD15[4:0]Res.DDR34_AC_SWIZZLING_ADD14[4:0]Res.DDR34_AC_SWIZZLING_ADD13[4:0]Res.DDR34_AC_SWIZZLING_ADD12[4:0]
Reset value00000000000000000000
0x110DDRDBG_DDR34_AC_SWIZZLE_BK2_0_ACTNRes.Res.Res.DDR34_AC_SWIZZLING_BK3[4:0]Res.DDR34_AC_SWIZZLING_BK2[4:0]Res.DDR34_AC_SWIZZLING_BK1[4:0]Res.DDR34_AC_SWIZZLING_ACTN[4:0]
Reset value00000000000000000000
0x114DDRDBG_DDR34_AC_SWIZZLE_RASN_CASN_BG1_0Res.Res.Res.DDR34_AC_SWIZZLING_RASN[4:0]Res.DDR34_AC_SWIZZLING_CASN[4:0]Res.DDR34_AC_SWIZZLING_BG1[4:0]Res.DDR34_AC_SWIZZLING_BG0[4:0]
Reset value00000000000000000000
0x118DDRDBG_DDR34_AC_SWIZZLE_WENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DDR34_AC_SWIZZLING_WEN[4:0]
Reset value00000
Refer to Section 2.4 for the register boundary addresses.