13. DDR3L/DDR4/LPDDR4 controller (DDRCTRL)

13.1 DDCRTL introduction

The DDCRTL is a DDR-SDRAM controller. Combined with the DDRPHYC (DDR PHY with PUBL block), it provides a complete memory interface solution for the DDR memory subsystem.

13.2 DDCRTL features

13.3 DDRCTRL block diagram

A simplified DDRCTRL block diagram is shown in the figure below.

Figure 38. DDRCTRL block diagram

Figure 38: DDRCTRL block diagram. The diagram shows the internal architecture of the DDRCTRL. AXI port 0 and AXI port 1 feed into XPI blocks. The XPI blocks are connected to a Command mux, a Data mux, and a Response demux. A Port Arbiter (PA) feeds into the Command mux. The Command mux outputs to a HIF, which feeds into the Scheduler. The Data mux feeds into the Scheduler. The Response demux feeds into a Response engine. The Scheduler and Response engine are part of the DDRC block. The DDRC block outputs to the DFI. The APB interface connects to Registers, which are connected to the XPI blocks and the Response demux. The entire assembly is labeled DDRCTRL. A reference ID MSv68385V1 is at the bottom right.
Figure 38: DDRCTRL block diagram. The diagram shows the internal architecture of the DDRCTRL. AXI port 0 and AXI port 1 feed into XPI blocks. The XPI blocks are connected to a Command mux, a Data mux, and a Response demux. A Port Arbiter (PA) feeds into the Command mux. The Command mux outputs to a HIF, which feeds into the Scheduler. The Data mux feeds into the Scheduler. The Response demux feeds into a Response engine. The Scheduler and Response engine are part of the DDRC block. The DDRC block outputs to the DFI. The APB interface connects to Registers, which are connected to the XPI blocks and the Response demux. The entire assembly is labeled DDRCTRL. A reference ID MSv68385V1 is at the bottom right.

13.4 DDRCTRL architecture overview

The DDRCTRL block diagram in Figure 38 shows:

The read data are handled by the response engine in the DDRC, and returned in the order of scheduled read commands on the HIF (host interface). the read data are stored in the read reorder buffer (local to XPI), and returned in order to the AXI ports.

13.4.1 AXI port interface (XPI)

The XPI processes the AXI information: address, burst size, burst length, and burst type. It converts the AXI burst into read/write requests which are forwarded to the PA.

In the opposite direction, the XPI converts the responses from the DDRC into appropriate AXI responses.

Read address channel features

Note: The device interconnect performs the realignment to a memory burst boundary. It may cause some data beats to be discarded (affecting bandwidth), and introduce additional latency on the read data and response channel.

Write address channel features

Read data and response channels

13.4.2 Port arbiter (PA)

The PA arbitrates command requests from the two AXI ports to the HIF of the DDR controller. The PA is comprised of multiple tiers of arbitration stages which include:

Note: The port aging refers to counting down the time when a port has a request, but is not granted access to the DDRC.

The port timeout refers to when the port age becomes 0, which is also referred as the highest priority -priority0.

The expired-VPR refers to variable priority read commands whose counter has expired. Read/write credits refer to the DDRC 'Credit Mechanism' employed at the HIF interface.

13.4.3 Host interface (HIF)

The HIF is an internal interface to the DDRCTRL (AXI port interface and PA handle all signals on this interface). It is only described for the sake of understanding QoS and of multi-tier arbitration.

The read/write requests and write data are transferred from PA to DDRC using HIF.

The requests are throttled by:

The read data are sent back via a common response interface

Credit mechanism

The DDRC uses a credit mechanism to ensure that buffers do not overflow. The interface making the request to the DDRC, can only request commands for which it has been granted credits to issue.

The credits are tracked separately for the following three command types:

The interface logic includes counters to track the number of credits. The credit count increments every time the DDRC issues a credit. VPR commands are counted in the LPR credit bucket. VPW commands are counted in the WR credit bucket.

Read requests

When the LPR or HPR credit count is greater than zero, the interface can issue read requests to the DDRC.

Write requests

When the WR credit count is greater than zero, the interface can issue write requests to the DDRC.

13.4.4 DDR scheduler (DDRC)

The DDRC queues commands for scheduling and for the SDRAM command generation unit. The DDRC includes the following stores:

Both CAMs are 16 entries. HPR/LPR split is software programmable.

The DDRC allows the user to manage the TSC (transaction service control) according to QoS and timeouts.

13.5 DDRCTRL functional description

13.5.1 Transaction service control (TSC) and quality of service (QoS)

The TSC allows the user to carefully manage:

This functionality is implemented in a simple 2-state machine for each traffic type, with completely configurable controls. The states of the 2-state machine determine when reads/writes are serviced, and the relative priority (high-priority versus low-priority reads) at any time.

The transactions are separated into the following read/write classes:

These traffic classes are determined according to AXI QoS values (AxQOS[3:0]) set by the device AXI interconnect (AXIM) and QoS region settings.

HPR and VPR/LPR are stored in a common read CAM which is split according to LPR_NUM_ENTRIES in DDRCTRL_REGS_SCHED.

VPR commands move to the expired-VPR after a timeout set by RQOS_MAP_TIMEOUTB in DDRCTRL_MP_PCFGQOS1_x. The expired-VPR goes to highest priority (Priority0).

VPW and NPW are stored in a common write CAM. VPW commands go to the expired-VPR after timeout set by WQOS_MAP_TIMEOUT2 in DDRCTRL_MP_PCFGWQOS1_x. Expired-VPW commands go to highest priority (Priority0).

The following registers are related to TSC and QoS control:

13.5.2 Paging policy options

Open page policy is set by PAGECLOSE = 0 in DDRCTRL_REGS_SCHED. Any bank remains open until there is a need to close it because of a page miss or refresh timeout.

Intelligent precharge is a mid way between open- and close-page policies, set by PAGECLOSE = 1 in DDRCTRL_REGS_SCHED. PAGECLOSE_TIMER value in DDRCTRL_REGS_SCHED1 gives the time waited when there are no page hits to a bank in the CAM, before the auto-precharge or the explicit precharge is scheduled.

This timer allows the page to be kept open for a configurable number of clock cycles after there are no more commands pending in the CAM to a bank. Intelligent precharge is an option between open page and closed page

13.5.3 Power saving features

The DDRCTRL supports various methods to save power within the system using power saving opportunities in the SDRAM, the DDRPHYC, and the device.

Precharge power down (PDN)

The DDRCTRL automatically puts the SDRAM in PDN under the control of following parameters:

Note: During PDN, refresh commands are performed and clocks must be maintained. The DDRCTRL precharges all banks before PDE.

DDR3L slow power down (with MR0[12] =1) is not supported.

Self-refresh (SR)

The SR is a significant power saving opportunity for the SDRAM. During SR, the DDRPHYC provides additional power savings, and the DDRCTRL/DDRPHYC clocks can be stopped.

The DDRCTRL puts the SDRAM in SR in the following cases:

Maximum power saving mode (MPSM)

DDR3L/DDR4 DLL off mode

The DDR3L and DDR4 DLL off modes are not supported.

13.5.4 Address mapper

The DDRCTRL address mapper converts the AXI port read/write request into row, bank, column (rank if any) SDRAM address at XPI level. The address mapping is very flexible and

defined according to DDRCTRL_REGS_ADDRMAP1 to DDRCTRL_REGS_ADDRMAP11 settings.

13.5.5 DRAM timing parameters

The DDRCTRL schedule commands to the SDRAM according to multiple timing constraints, as programmed in DDRCTRL_REGS_DRAMTMGx, according to SDRAM JEDEC timing parameters versus frequency.

The following registers are related to timings constrains:

13.5.6 SDRAM initialization sequence

The initialization is controlled by the DDRPHYC supporting a PUBL built-in initialization sequence for each DDR type, and triggered by PIR registers (see Section 14: DDR physical interface control (DDRPHYC) for more details).

13.5.7 Refresh controls

The refresh can be issued using one of the following method:

Refresh using the direct software request of refresh command

Follow these steps:

  1. 1. Set DIS_AUTO_REFRESH = 1. DDRCTRL checks for any pending refreshes. Any pending refreshes are issued right away using the 'critical refresh' feature inside the DDRCTRL. After these refreshes are issued, all refresh timers inside the DDRCTRL are reset to 0. They are re-activated only when the auto-refresh feature is enabled.
  2. 2. The device core must keep track of the refresh requirements of the SDRAM.
  3. 3. The refresh command can be issued by setting RANK0_REFRESH to 1 in DDRCTRL_REGS_DBGCMD. When the refresh request is stored, the corresponding bit is automatically cleared. The device core can initiate a refresh operation only if RANK0_REFRESH_BUSY = 0 in DDRCTRL_REGS_DBGSTAT. The DDRCTRL issues refresh to the SDRAM at the earliest.
  4. 4. Software-driven refresh commands are loaded into a 9-entry buffer, and are issued by the DDRCTRL on the DFI as soon as it is legal to do so. If the buffer saturates, RANK0_REFRESH_BUSY remains asserted to prevent software from initiating further refreshes.

Refresh using the auto-refresh feature inside DDRCTRL

The DDRCTRL provides advanced refresh controls. Besides fully-configurable refresh constraints (\(t_{RFC(min)}\) and \(t_{REFI}\)), it can also be programmed to gather refreshes to each rank of the SDRAM, to reduce the bandwidth consumed by refreshes, and to increase the

likelihood that refreshes can be serviced during an idle period. The following registers are related to refresh controls:

The purposes of refresh control are the following:

For more information, refer to each register description. Beside issuing refresh at regular intervals according to \(t_{RFC(min)}\) and \(t_{REFI}\), several optimization options are possible: burst refresh, speculative refresh, and per-bank refresh (applicable to LPDDR4).

13.5.8 ZQ calibration

This feature is applicable to all DDR types. The DDRCTRL can use the ZQ calibration command to calibrate SDRAM RON (resistor on) and ODT (on-die termination) values over PVT (process, voltage, temperature).

The DDRPHYC supports RON and ODT calibration at initialization (see Section 14: DDR physical interface control (DDRPHYC) for more details).

The DDRCTRL can issue periodic calibrations which take less time at regular interval (ZQCS). The DDRCTRL can also issue a long calibration (ZQCL) after SR exit.

The following registers are related to ZQ calibration controls:

For more information on ZQ Calibration, refer to JEDEC specifications of the corresponding SDRAM.

13.5.9 Register programming

Most registers are static and must be programmed only when DDRCTRL is under reset.

Dynamic registers can be programmed at any time.

Refresh related registers are dynamic registers but the following steps are needed to update them:

Quasi-dynamic parameters can be programmed following the flow described in Figure 39, with the group as listed in the bitfield programming mode:

Figure 39. Quasi-dynamic register programming

Flowchart for Quasi-dynamic register programming. It shows three parallel paths for Groups 1, 2, and 3, each with a condition check (Pipeline empty, Self refresh, Controller empty). If any condition is met, it proceeds to set SW_DONE = 0, program registers, and then set SW_DONE = 1. A final check for sw_done_ack == 1 leads to resetting the parameters for Groups 1, 2, and 3, and an arrow for Group 4.
graph TD
    subgraph Group1
        G1_1([DDRCTRL_DBG1
DIS_DQ = 1]) G1_2{Pipeline
empty} G1_2 -- Yes --> G1_3 end subgraph Group2 G2_1([DDRCTRL_PWRCTRL
SELREF_SW = 1]) G2_2{Self
refresh} G2_2 -- Yes --> G2_3 end subgraph Group3 G3_1([DDRCTRL_PCTRL_x
PORT_EN = 0]) G3_2{Controller
empty} G3_2 -- Yes --> G3_3 end G1_3 --> G4_1 G2_3 --> G4_1 G3_3 --> G4_1 G4_1([DDRCTRL_REGS_SWCTL
SW_DONE = 0]) G4_1 --> G4_2[Program registers] G4_2 --> G4_3([DDRCTRL_REGS_SWCTL
SW_DONE = 1]) G4_3 --> G4_4{sw_done_ack
== 1} G4_4 -- Yes --> G4_5 subgraph G4_5 G4_5_1([DDRCTRL_DBG1
DIS_DQ = 0]) G4_5_2([DDRCTRL_PWRCTRL
SELREF_SW = 0]) G4_5_3([DDRCTRL_PCTRL_x
PORT_EN = 0]) end G4_5 --> G4_6[ ] style G4_6 fill:none,stroke:none

MSv70499V1

Flowchart for Quasi-dynamic register programming. It shows three parallel paths for Groups 1, 2, and 3, each with a condition check (Pipeline empty, Self refresh, Controller empty). If any condition is met, it proceeds to set SW_DONE = 0, program registers, and then set SW_DONE = 1. A final check for sw_done_ack == 1 leads to resetting the parameters for Groups 1, 2, and 3, and an arrow for Group 4.

13.6 DDRCTRL configuration

The DDRCTRL is configured with these major hardware options:

13.7 DDCRTL registers

The following variables are considered with fixed values:

13.7.1 DDCRTL master0 register (DDRCTRL_REGS_MSTR)

Address offset: 0x000

Reset value: 0x0304 0001

31302928272625242322212019181716
DEVICE_CONFIG[1:0]Res.Res.Res.Res.ACTIVE_RANKS[1:0]Res.Res.Res.Res.BURST_RDWR[3:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
DLL_OFFSET_MODERes.DATA_BUS_WIDTH[1:0]Res.EN_2T_TIMING_MODEBURST CHOPRes.Res.Res.LPDDR4DDR4Res.Res.Res.DDR3L
rwrwrwrwrwrwrwrw

Bits 31:30 DEVICE_CONFIG[1:0]: Device configuration

Note: Programming mode: Static.

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

Bits 25:24 ACTIVE_RANKS[1:0]: Only present for multi-rank configurations

Each bit represents one rank. For two-rank configurations, only bits[25:24] are present.

LSB is the lowest rank number. For two ranks, the following combinations are legal:

Note: Programming mode: Static.

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

Bits 19:16 BURST_RDWR[3:0]: SDRAM burst length

This bitfield controls the burst size used to access the SDRAM. This must match the burst length mode register setting in the SDRAM. For DDR3L, DDR4, this must be set to 0x0100 (BL8).

For LPDDR4, this must be set to 0x1000 (BL16).

Note: Programming mode: Static.

13.7.2 DDRCTRL operating mode status register (DDRCTRL_REGS_STAT)

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.SELFREF_CAM_NOT_EMPTYRes.Res.SELFREF_STATE[1:0]Res.Res.SELFREF_TYPE[1:0]Res.OPERATING_MODE[2:0]
rrrrrrrr

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

Bit 12 SELFREF_CAM_NOT_EMPTY: Self-refresh (SR) with CAMs not empty

Set to 1 when SR is entered but CAMs are not drained. Cleared after exiting SR.

Note: Programming mode: Static.

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

Bits 9:8 SELFREF_STATE[1:0]: SR or SRPD (SR power-down) for LPDDR4

This bitfield is used for frequency change and MRR/MRW access during SR.

00: SDRAM not in SR

01: SR 1

10: SRPD

11: SR 2

Note: Programming mode: Static.

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

Bits 5:4 SELFREF_TYPE[1:0]: Flags if SR (except LPDDR4), or SRPD (LPDDR4) is entered, and if it is under automatic SR control only or not

00: SDRAM is not in SR (except LPDDR4) or SRPD (LPDDR4).

11: SDRAM is in SR (except LPDDR4) or SRPD(LPDDR4), which was caused by automatic SR only. If retry is enabled, this ensures that the SR entry (SRE) command is executed correctly without parity error.

10: SDRAM is in SR (except LPDDR4) or SRPD (LPDDR4), which was not caused solely under automatic SR control. It may have been caused by hardware low-power interface and/or software (SELFREF_SW in DDCCTRL_REGS_PWRCTL). If retry is enabled, this ensures that the SRE command is executed correctly without parity error.

01: SDRAM is in SR, which is caused by PHY master request.

Note: Programming mode: Static.

Bit 3 Reserved, must be kept at reset value.

Bits 2:0 OPERATING_MODE[2:0]:

13.7.3 DDCRTL mode read/write control 0 register (DDRCTRL_REGS_MRCTRL0)

Address offset: 0x010

Reset value: 0x0000 0030

Note: Do not enable more than one of the following bitfields simultaneously: SW_INIT_INT, PDA_EN, and MPR_EN

31302928272625242322212019181716
MR_W
R
PBA_M
ODE
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rsrw
1514131211109876543210
MR_ADDR[3:0]Res.Res.Res.Res.Res.Res.MR_RANK[1:0]SW_INI
T_INT
PDA_E
N
MPR_E
N
MR_TY
PE
rrrrrwrwrwrwrwrw

Bit 31 MR_WR: Mode register (MR) read or write

Note: Programming mode: Dynamic.

ST logo
ST logo

Bit 30 PBA_MODE: PBA access execution

When setting this bit to 1 along with setting PDA_EN to 1, the DDRCTRL initiates PBA (per buffer addressability) access instead of PDA (per DRAM addressability) access.

The completion of PBA access is confirmed by PODA_DONE in DDRCTRL_REGS_MRSTAT in the same way as PDA.

0: PDA

1: PBA

Note: Programming mode: Dynamic.

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

Bits 15:12 MR_ADDR[3:0]: MR address to be written to

0000: MR0

0001: MR1

0010: MR2

0011: MR3

0100: MR4

0101: MR5

0110: MR6

0111: MR7

Don't care for LPDDR4 (see MR_DATA in DDRCTRL_REGS_MRCTRL1 for mode register addressing in LPDDR4).

Note: Programming mode: Dynamic.

Bits 11:6 Reserved, must be kept at reset value.

Bits 5:4 MR_RANK[1:0]: Rank accessed by MR_WR in this register

For multi-rank UDIMMs/RDIMMs/LRDIMMs, which implement address mirroring, it may be necessary to access ranks individually.

Examples (assuming DDRCTRL is configured for four ranks):

0x1: Select rank 0 only

0x2: Select rank 1 only

0x5: Select ranks 0 and 2

0xA: Select ranks 1 and 3

0xF: Select ranks 0, 1, 2, and 3

Note: Programming mode: Dynamic.

Bit 3 SW_INIT_INT: Software intervention enable

This bit indicates whether a software intervention is allowed through

DDRCTRL_REGS_MRCTRL0/1 before automatic SDRAM initialization routine or not.

For DDR4, this bit can be used to initialize the DDR4 RCD (MR7) before automatic SDRAM initialization.

For LPDDR4, this bit can be used to program additional mode registers before automatic SDRAM initialization if necessary. In LPDDR4 dual channel mode, this bit must be programmed to both channels beforehand.

This bit must be cleared to 0 after completing software operation. Otherwise, the SDRAM initialization routine does not restart.

0: Software intervention not allowed

1: Software intervention allowed

Note: Programming mode: Dynamic.

13.7.4 DDRCTRL mode read/write control 1 register (DDRCTRL_REGS_MRCTRL1)

Address offset: 0x014

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MR_DATA[17:16]
rwrw
1514131211109876543210
MR_DATA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

13.7.5 DDRCTRL mode register read/write status register (DDRCTRL_REGS_MRSTAT)

Address offset: 0x018

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.PDA_DONERes.Res.Res.Res.Res.Res.Res.MR_WR_BUSY
rr

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

Bit 8 PDA_DONE: Initiate an MR write operation in PDA/PBA mode only if this bit is low

This bit goes high when three consecutive MRS commands related to the PDA/PBA mode are issued to the SDRAM.

This bit goes low when PDA_EN becomes 0 in DDRCTRL_REGS_MRCTRL0.

It is recommended to write 0 to PDA_EN after PDA_DONE bit goes high in order to prepare to perform PDA operation next time.

0: Mode register write operation related to PDA/PBA is in progress or has not started yet.

1: Mode register write operation related to PDA/PBA has competed.

Note: Programming mode: Dynamic.

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

Bit 0 MR_WR_BUSY: Initiate an MR write operation only if this bit is low

This bit goes high in the clock after the DDRCTRL accepts the MRW/MRR request.

This bit is low when the MRW/MRR command is issued to the SDRAM.

It is recommended not to perform MRW/MRR commands when this bit is high.

0: The device can initiate a mode register write operation.

1: Mode register write operation is in progress.

Note: Programming mode: Dynamic.

13.7.6 DDRCTRL mode register read/write control 2 register (DDRCTRL_REGS_MRCTRL2)

Address offset: 0x01C

Reset value: 0x0000 0000

31302928272625242322212019181716
MR_DEVICE_SEL[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MR_DEVICE_SEL[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 MR_DEVICE_SEL[31:0]: Device selection during the MRS that happens in PDA mode
Each bit is associated with one device (bit[0] corresponds to device 0, bit[1] to device 1 and so on). For each bit:
1: MRS command must be applied to that device.
0: MRS commands must be skipped for that device.
Note: Programming mode: Dynamic.

13.7.7 DDRCTRL temperature derate enable register (DDRCTRL_REGS_DERATEEN)

Address offset: 0x020

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.DERATE_MR4_PAUSE_FCDERATE_MR4_TUF_DISRes.RC_DERATE_VALUE[2:0]DERATE_BYTE[3:0]Res.DERATE_VALUE[1:0]DERATE_ENABLE
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 13 DERATE_MR4_PAUSE_FC: Pauses MR4 reads
Must only be set to 1 as part of frequency change procedures, if DERATE_ENABLE = 1 in this register.
Note: Programming mode: Dynamic.

Bit 12 DERATE_MR4_TUF_DIS: Disables use of MR4 TUF flag (MR4[7])
For LPDDR4, it is recommended to set this bit to 1. This affects both the periodic derate logic (DERATE_ENABLE) and DDCRTL_REGS_DERATE_TEMP_LIMIT_INTR in DDCRTL_REGS_DERATESTAT.
0: Use MR4 TUF flag (MR4[7]).
1: Do not use MR4 TUF Flag (MR4[7]).
Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bit 11 Reserved, must be kept at reset value.

Bits 10:8 RC_DERATE_VALUE[2:0]: Derate value of tRC for LPDDR4
The required cycles for derating can be determined by dividing 3.75 ns by the core_ddrc_core_clk period, and rounding it up to the next integer.
This bitfield must be set to the previous value - 1.
000: Derating uses +1.
001: Derating uses +2.
010: Derating uses +3.
011: Derating uses +4.
100: Derating uses +5.
101: Derating uses +6.
110: Derating uses +7.
111: Derating uses +8.
Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bits 7:4 DERATE_BYTE[3:0]: MRR data used for derating

Note: Programming mode: Static.

Bit 3 Reserved, must be kept at reset value.

Bits 2:1 DERATE_VALUE[1:0]: Derate value

The required cycles for derating can be determined by dividing 1.875 ns by the core_ddrc_core_clk period, and rounding it up to the next integer.

This bitfield must be set to the previous value - 1.

00: Derating uses +1.

01: Derating uses +2.

10: Derating uses +3.

11: Derating uses +4.

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bit 0 DERATE_ENABLE: Enables derating

This bit must be set to 0 for non-LPDDR4 mode.

0: Timing parameter derating is disabled.

1: Timing parameter derating is enabled using MR4 read value.

Note: Programming mode: Dynamic.

13.7.8 DDRCTRL temperature derate interval register (DDRCTRL_REGS_DERATEINT)

Address offset: 0x024

Reset value: 0x0080 0000

31302928272625242322212019181716
MR4_READ_INTERVAL[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MR4_READ_INTERVAL[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 MR4_READ_INTERVAL[31:0]: Interval between two MR4 reads

This bitfield value is used to derate the timing parameters.

This register must not be set to zero. Unit: DFI clock cycles

Note: Programming mode: Static.

13.7.9 DDRCTRL temperature derate control register (DDRCTRL_REGS_DERATECTL)

Address offset: 0x02C

Reset value: 0x0000 0001

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.DERATE_TEMP_LIMIT_INTR_FORCEDERATE_TEMP_LIMIT_INTR_CLRDERATE_TEMP_LIMIT_INTR_EN
rc_w1rc_w1rw

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

Bit 2 DERATE_TEMP_LIMIT_INTR_FORCE: Interrupt force bit for DERATE_TEMP_LIMIT_INTR
Setting this bit to 1 causes the DERATE_TEMP_LIMIT_INTR output pin to be asserted.
At the end of the interrupt force operation, the DDRCTRL automatically clears this bit.
Note: Programming mode: Dynamic.

Bit 1 DERATE_TEMP_LIMIT_INTR_CLR: Interrupt clear bit for DERATE_TEMP_LIMIT_INTR
At the end of the interrupt clear operation, the DDRCTRL automatically clears this bit.
Note: Programming mode: Dynamic.

Bit 0 DERATE_TEMP_LIMIT_INTR_EN: Interrupt enable bit for DERATE_TEMP_LIMIT_INTR
1: Enabled
0: Disabled
Note: Programming mode: Dynamic.

13.7.10 DDRCTRL low-power control register (DDRCTRL_REGS_PWRCTL)

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.Res.LPDDR4_SR_ALLOWEDDIS_CAM_DRAM_SELFREFSTAY_IN_SEL_FREFSELFREF_SWRes.EN_DFIDRAM_CLK_DISABLERes.POWEDOWN_ENSELFREF_EN
rwrwrwrwrwrwrw

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

13.7.11 DDRCTRL low-power timing register (DDRCTRL_REGS_PWRTMG)

Address offset: 0x034

Reset value: 0x0040 2010

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.SELFREF_TO_X32[7:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.POWERDOWN_TO_X32[4:0]
rwrwrwrwrw

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

Bits 23:16 SELFREF_TO_X32[7:0]: Maximum idle clocks before SR

After this number of clocks of the DDRC command channel being idle, the DDRCTRL automatically puts the SDRAM into SR.

The DDRC command channel is considered idle when there are no HIF commands outstanding. This must be enabled by PWRCTL.SELFREF_EN in DDRCTRL_REGS.

Unit: multiples of 32 DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 4.

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

Bits 4:0 POWERDOWN_TO_X32[4:0]: Maximum idle clocks before PDN

After this number of clocks of the DDRC command channel being idle, the DDRCTRL automatically puts the SDRAM into PDN.

The DDRC command channel is considered idle when there are no HIF commands outstanding. This must be enabled by POWERDOWN_EN in DDRCTRL_REGS_PWRCTL.

Unit: multiples of 32 DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 4.

13.7.12 DDRCTRL hardware low-power control register (DDRCTRL_REGS_HWLPCCTL)

Address offset: 0x038

Reset value: 0x0000 0003

31302928272625242322212019181716
Res.Res.Res.Res.HW_LP_IDLE_X32[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HW_LP_EXIT_IDLE_ENHW_LP_EN
rwrw

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

Bits 27:16 HW_LP_IDLE_X32[11:0]: Hardware idle period

The CACTIVE_DDRC output is driven low if the DDRC command channel is idle for the number of cycles defined in this bitfield, if not in init operating mode.

The DDRC command channel is considered idle when there are no HIF commands outstanding.

The hardware idle function is disabled when this bitfield = 0 (1 is an illegal value).

Unit: multiples of 32 DFI clock cycles

Note: Programming mode: Static.

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

Bit 1 HW_LP_EXIT_IDLE_EN: CACTIVE_IN_DDRC pin enable

When this bit is set to 1, the CACTIVE_IN_DDRC pin of the DDRC can be used to exit from the automatic clock stop, automatic power down, or automatic SR.

This does not cause exit of SR that was caused by hardware low-power interface, and/or software (see SELREF_SW in DDRCTRL_REGS_PWRCTL).

Note: Programming mode: Static.

Bit 0 HW_LP_EN: Hardware low-power interface enable

Note: Programming mode: Quasi-dynamic Group 2.

13.7.13 DDRCTRL refresh control 0 register (DDRCTRL_REGS_RFSHCTL0)

Address offset: 0x050

Reset value: 0x8021 0000

31302928272625242322212019181716
REFRESH_TO_AB_X32[4:0]Res.Res.Res.REFRESH_MARGIN[3:0]Res.Res.Res.REFRESH_TO_X1_X32[4]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
REFRESH_TO_X1_X32[3:0]Res.Res.REFRESH_BURST[5:0]Res.PER_BANK_REFRESH_HAUTO_REFAB_EN[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:27 REFRESH_TO_AB_X32[4:0]: When the DDRCTRL switches automatically from per-bank to all-bank refresh (if enabled by AUTO_REFAB_EN[1:0]), it will use this register to determine when to perform speculative all-bank refreshes.

If the refresh timer (\(t_{RFCnom}\), also known as \(t_{REFI}\)) has expired at least once, then a speculative refresh may be performed.

A speculative refresh is a refresh performed at a time when refresh would be useful. When the SDRAM bus is idle for a period of time determined by REFRESH_TO_AB_X32[4:0] and the refresh timer has expired at least once since the last refresh, then a speculative refresh is performed.

Speculative refreshes continues successively until there are no refreshes pending or until new reads or writes are issued to the DDRCTRL.

FOR PERFORMANCE ONLY.

Unit: multiples of 32 DFI clock cycles.

Note: Programming mode: Dynamic - Refresh related.

Bits 26:24 Reserved, must be kept at reset value.

Bits 23:20 REFRESH_MARGIN[3:0]: DFI clock cycles before the critical refresh or page timer expires

A critical refresh must be issued before this threshold is reached. It is recommended not to change from the default value 0x2. It must always be less than internally used \(t_{rfc\_nom}/32n\) that is equal to:

Unit: multiples of 32 DFI clock cycles

Note: Programming mode: Dynamic - Refresh related.

Bits 19:17 Reserved, must be kept at reset value.

Bits 16:12 REFRESH_TO_X1_X32[4:0]:

If the refresh timer (\(t_{RFCnom}\), also known as \(t_{REFI}\)) has expired at least once, a speculative refresh can be performed.

A speculative refresh is a refresh performed at a time when refresh is useful. When the SDRAM bus is idle for a period of time determined by this field, and the refresh timer has expired at least once since the last refresh, then a speculative refresh is performed.

Speculative refreshes continues successively until there are no refreshes pending or until new reads or writes are issued to the DDRCTRL.

Unit: DFI clock cycles or multiples of 32 DFI clock cycles, depending on \(T_{RFC\_NOM\_X1\_SEL}\) in DDRCTRL_REGS_RFSHTMG.

Note: Programming mode: Dynamic - Refresh related.

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

Bits 9:4 REFRESH_BURST[5:0]:

This bitfield + 1 is the number of refresh timeouts that can be accumulated before traffic is blocked, and refreshes are forced to execute.

Closing pages to perform a refresh is a one-time penalty that must be paid for each group of refreshes. Performing refreshes in a burst reduces then the per-refresh penalty of these page closings.

Higher numbers for this bitfield slightly increase utilization. Lower numbers decrease the worst-case latency associated with refreshes.

00000: Single refresh

00001: Burst-of-2 refresh

...

00111: Burst-of-8 refresh

Note: Programming mode: Dynamic - Refresh related.

Bit 3 Reserved, must be kept at reset value.

Bit 2 PER_BANK_REFRESH:

Per bank refresh allows traffic to flow to other banks (supported by all LPDDR4 devices).

1: Per bank refresh

0: All bank refresh

Note: Programming mode: Static.

Bits 1:0 AUTO_REFAB_EN[1:0]: Enables automatic switching from per-bank to all-bank refresh when the derated refresh period is small.

Automatically switches back to per-bank refresh when the derated refresh period is no longer small.

This register should be programmed to 00 if PER_BANK_REFRESH = 0.

This register should be programmed to 00 for LPDDR4 2Gb and 4Gb.

0x0: Disable automatic switching

0x3: Reserved

0x1: Enable automatic switching when the derated refresh period is \(t_{REFI}/2\) or lower

0x2: Enable automatic switching when the derated refresh period is \(t_{REFI}/4\)

Note: Programming mode: Static.

13.7.14 DDRCTRL refresh control 1 register (DDRCTRL_REGS_RFSHCTL1)

Address offset: 0x054

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.REFRESH_TIMER1_START_VALUE_X32[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.REFRESH_TIMER0_START_VALUE_X32[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 27:16 REFRESH_TIMER1_START_VALUE_X32[11:0]: Refresh timer start for rank 1 (only present in multirank configurations)

This is useful in staggering the refreshes to multiple ranks to help traffic to proceed.

Unit: multiples of 32 DFI clock cycles

Note: Programming mode: Dynamic - Refresh related.

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

Bits 11:0 REFRESH_TIMER0_START_VALUE_X32[11:0]: Refresh timer start for rank 0 (only present in multirank configurations)

This is useful in staggering the refreshes to multiple ranks to help traffic to proceed.

Unit: multiples of 32 DFI clock cycles.

Note: Programming mode: Dynamic - Refresh related.

13.7.15 DDRCTRL refresh control 3 register (DDRCTRL_REGS_RFSHCTL3)

Address offset: 0x060

ST logo
ST logo

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.REFRESH_MODE[2:0]Res.Res.REFRESH_UPDATE_LEVELDIS_AUTO_REFRESH
rwrwrwrwrw

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

Bits 6:4 REFRESH_MODE[2:0]: Fine granularity refresh mode

This bitfield must be set up while the controller is in reset, or while the controller is in SR mode. Changing this during normal operation is not allowed.

Only fixed 1x mode is supported if DIS_AUTO_REFRESH = 1 in this register.

This bitfield has effect only if a DDR4 SDRAM device is in use (DDR4 = 1 in DDRCCTRL_REGS_MSTR).

000: Fixed 1x (normal mode)

001: Fixed 2x

010: Fixed 4x

101: Enable on-the-fly 2x (not supported)

110: Enable on-the-fly 4x (not supported)

Others: reserved

Note: Programming mode: Quasi-dynamic Group 2.

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

Bit 1 REFRESH_UPDATE_LEVEL: Refresh register update

Toggle this bit (either from 0 to 1 or from 1 to 0) to indicate that the refresh registers have been updated.

This bit must not be toggled when the DDRC is in reset (core_ddrc_rstn = 0).

The refresh registers are automatically updated when exiting reset.

Note: Programming mode: Dynamic.

Bit 0 DIS_AUTO_REFRESH: Auto-refresh disable

When this bit is 1, the auto-refresh generated by the DDRCCTRL is disabled. In this case, the device must generate refreshes using RANKx_REFRESH in DDRCCTRL_REGS_DBGCMD.

When this bit transitions from 0 to 1, any pending refreshes are immediately scheduled by the DDRCCTRL. For DDR4 only, if the FGR mode is enabled (REFRESH_MODE > 0 in DDRCCTRL_REGS_RFSHCTL3), DISABLE AUTO-REFRESH is not supported, and this bit must be set to 0.

This bit can be changed on-the-fly.

Note: Programming mode: Dynamic - Refresh related.

13.7.16 DDRCTRL refresh timing register (DDRCTRL_REGS_RFSHTMG)

Address offset: 0x064

Reset value: 0x0062 008C

31302928272625242322212019181716
T_RFC_NOM_X1_SELRes.Res.Res.T_RFC_NOM_X1_X32[11:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.T_RFC_MIN[9:0]
rwrwrwrwrwrwrwrwrwrw

Bit 31 T_RFC_NOM_X1_SEL:

This bit specifies whether values of T_RFC_NOM_X1_X32 in this register and REFRESH_TO_X1_X32 in DDRCTRL_REGS_RFSHCTL0 are x1 or x32. This applies only when per-bank refresh is enabled (PER_BANK_REFRESH = 1 in DDRCTRL_REGS_RFSHCTL0). Otherwise, x32 register values are used, and this bit is ignored.
0: x32 register values
1: x1 register values

Note: Programming mode: Dynamic - Refresh related.

Bits 30:28 Reserved, must be kept at reset value.

Bits 27:16 T_RFC_NOM_X1_X32[11:0]: Average time interval between refreshes per rank (7.8 µs for DDR3L and DDR4, see JEDEC specification for LPDDR4)

If DDRCTRL operates in 1:2 mode, set this bitfield to \(\text{RoundDown}(\text{RoundDown}(t_{\text{REFI}} / t_{\text{CK}}) / 2)\).
In previous cases, if T_RFC_NOM_X1_SEL = 0 in this register, divide the previous result by 32 and round down.

For LPDDR4:

For DDR4 mode, \(t_{\text{REFI}}\) value is different depending on the refresh mode. The appropriate value must be programmed from the specification based on the value programmed in the refresh-mode register.

Notes:

Note: Programming mode: Dynamic - Refresh related.

ST logo
ST logo

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

Bits 9:0 T_RFC_MIN[9:0]: \(t_{RFCmin}\), minimum time from refresh to refresh or activate

If the DDRCTRL operates in 1:2 mode, set this bitfield to \(RoundUp(RoundUp(t_{RFCmin} / t_{CK}) / 2)\).

In LPDDR4 mode:

In DDR4 mode, \(t_{RFCmin}\) in previous equations is different depending on the refresh mode (fixed 1x, 2x, 4x) and device density. The appropriate value must be programmed from the specification based on refresh mode and device density used.

Unit: DFI clock cycles.

Note: Programming mode: Dynamic - Refresh related.

13.7.17 DDRCTRL refresh timing1 register (DDRCTRL_REGS_RFSHTMG1)

Address offset: 0x068

Reset value: 0x008C 0000

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

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

Bits 23:16 T_PBR2PBR[7:0]: \(t_{pbR2pbR}\) for LPDDR4

Per-bank refresh to per-bank refresh different bank time.

If DDRCTRL operates in 1:2 mode, set this bitfield to \(RoundUp(RoundUp(t_{pbR2pbR} / t_{CK}) / 2)\).

\(t_{pbR2pbR}\) in previous equations is different depending on the device density.

The appropriate value must be programmed from the specification.

This bitfield is valid only in LPDDR4 per-bank refresh mode

(PER_BANK_REFRESH_MODE = 1 in DDRCTRL_REGS_RFSHCTL0).

Note: Programming mode: Dynamic - Refresh related.

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

13.7.18 DDRCTRL SDRAM initialization 0 register (DDRCTRL_REGS_INIT0)

Address offset: 0x0D0

Reset value: 0x0002 004E

31302928272625242322212019181716
SKIP_DRAM_INIT[1:0]Res.Res.Res.Res.POST_CKE_X1024[9:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.PRE_CKE_X1024[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 SKIP_DRAM_INIT[1:0]: SDRAM initialization routine

If the lower bit of this bitfield is 1, the SDRAM initialization routine is skipped. The upper bit decides in which state the controller starts up when a reset is removed.

00: The SDRAM initialization routine is run after power-up.

01: The SDRAM initialization routine is skipped after power-up. The controller starts up in normal mode.

11: The SDRAM initialization routine is skipped after power-up. The controller starts up in SR mode

Others: Reserved

Note: Programming mode: Quasi-dynamic Group 2.

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

Bits 25:16 POST_CKE_X1024[9:0]: Number of cycles to wait after driving CKE high to start the SDRAM initialization sequence

LPDDR4 typically requires this bitfield to be programmed for a delay of 2 µs.

If the DDRCTRL operates in 1:2 mode, set this bitfield to JEDEC spec value divided by 2, and round it up to the next integer value.

Unit: multiples of 1024 DFI clock cycles.

Note: Programming mode: Static.

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

Bits 11:0 PRE_CKE_X1024[11:0]: Number of cycles to wait after reset before driving CKE high to start the SDRAM initialization sequence

LPDDR4: \(t_{INIT3}\) of 2 ms (min)

If the DDRCTRL operates in 1:2 mode, set this bitfield to JEDEC spec value divided by 2, and round it up to the next integer value.

Unit: multiples of 1024 DFI clock cycles.

Note: Programming mode: Static.

13.7.19 DDRCTRL SDRAM initialization 1 register (DDRCTRL_REGS_INIT1)

Address offset: 0x0D4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.DRAM_RSTN_X1024[8:0]
rwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRE_OCD_X32[3:0]
rwrwrwrw

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

Bits 24:16 DRAM_RSTN_X1024[8:0]: Number of cycles to assert SDRAM reset signal during the init sequence

This bitfield must be set to a minimum of 1. If the DDCRTL operates in 1:2 mode, set this bitfield to JEDEC spec value divided by 2, and round it up to the next integer value.

Unit: multiples of 1024 DFI clock cycles.

Note: Programming mode: Static.

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

Bits 3:0 PRE_OCD_X32[3:0]: Wait period before driving the OCD complete command to SDRAM

Set this bitfield to zero, except if any specific requirement.

Unit: multiples of 32 DFI clock cycles.

Note: Programming mode: Static.

13.7.20 DDRCTRL SDRAM initialization 3 register (DDRCTRL_REGS_INIT3)

Address offset: 0x0DC

Reset value: 0x0000 0510

31302928272625242322212019181716
MR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
EMR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 MR[15:0]:

DDR3L/DDR4: Value loaded into MR0 register

LPDDR4: Value to write to MR1 register

Note: Programming mode: Quasi-dynamic Group 1, Group 4.

Bits 15:0 EMR[15:0]:

DDR3L/DDR4: Value to write to MR1 register (set bit 7 to 0)

LPDDR4: Value to write to MR2 register

Note: Programming mode: Quasi-dynamic Group 4.

13.7.21 DDRCTRL SDRAM initialization 4 register (DDRCTRL_REGS_INIT4)

Address offset: 0x0E0

Reset value: 0x0000 0000

31302928272625242322212019181716
EMR2[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
EMR3[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 EMR2[15:0]:

DDR3L/DDR4: Value to write to MR2 register

LPDDR4: Value to write to MR3 register

Note: Programming mode: Quasi-dynamic Group 4.

Bits 15:0 EMR3[15:0]:

DDR3L/DDR4: Value to write to MR3 register

LPDDR4: Value to write to MR13 register

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.22 DDRCTRL SDRAM initialization 5 register (DDRCTRL_REGS_INIT5)

Address offset: 0x0E4

Reset value: 0x0010 0004

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

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

Bits 23:16 DEV_ZQINIT_X32[7:0]: \(t_{ZQINIT}\), ZQ initial calibration

DDR3L typically requires 512 SDRAM clock cycles.

DDR4 requires 1024 SDRAM clock cycles.

If the DDRCTRL operates in 1:2 mode, set this bitfield to JEDEC spec value divided by 2, and round it up to the next integer value.

Unit: multiples of 32 DFI clock cycles.

Note: Programming mode: Static.

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

13.7.23 DDRCTRL SDRAM initialization 6 register (DDRCTRL_REGS_INIT6)

Address offset: 0x0E8

Reset value: 0x0000 0000

31302928272625242322212019181716
MR4[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MR5[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 MR4[15:0]:

DDR4: Value to be loaded into SDRAM MR4 registers

LPDDR4: Value to be loaded into SDRAM MR11 registers

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bits 15:0 MR5[15:0]:

DDR4: Value to be loaded into SDRAM MR5 registers

LPDDR4: Value to be loaded into SDRAM MR12 registers

Note: Programming mode: Quasi-dynamic Group 1, Group 4.

13.7.24 DDRCTRL SDRAM initialization 7 register (DDRCTRL_REGS_INIT7)

Address offset: 0x0EC

Reset value: 0x0000 0000

31302928272625242322212019181716
MR22[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MR6[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 MR22[15:0]:

LPDDR4: Value to be loaded into SDRAM MR22 registers

Note: Programming mode: Quasi-dynamic Group 4.

Bits 15:0 MR6[15:0]:

DDR4: Value to be loaded into SDRAM MR6 registers

LPDDR4: Value to be loaded into SDRAM MR14 registers

Note: Programming mode: Quasi-dynamic Group 4.

13.7.25 DDRCTRL rank control register (DDRCTRL_REGS_RANKCTL)

Address offset: 0x0F4

Reset value: 0x0000 066F

31302928272625242322212019181716
Res.Res.Res.Res.Res.DIFF_RANK_WR_GAP_MSBRes.DIFF_RANK_RD_GAP_MSBRes.Res.Res.Res.Res.Res.Res.Res.
rwrw
1514131211109876543210
MAX_RANK_WR[3:0]DIFF_RANK_WR_GAP[3:0]DIFF_RANK_RD_GAP[3:0]MAX_RANK_RD[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 26 DIFF_RANK_WR_GAP_MSB:

1-bit extension to be used when DIFF_RANK_WR_GAP in this register needs to be set to a value greater than 0xF. Only present for multirank configurations

Note: Programming mode: Quasi-dynamic Group 2.

Bit 25 Reserved, must be kept at reset value.

Bit 24 DIFF_RANK_RD_GAP_MSB:

1-bit extension to be used when DIFF_RANK_RD_GAP in this register needs to be set to a value greater than 0xF. Only present for multi-rank configurations

Note: Programming mode: Quasi-dynamic Group 2.

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

Bits 15:12 MAX_RANK_WR[3:0]: Maximum number of writes that can be scheduled consecutively to the same rank (only present for multirank configurations)

Writes to the same rank can be performed back-to-back. Writes to different ranks require additional gap dictated by DIFF_RANK_WR_GAP in this register. This avoids possible data bus contention, and gives PHY enough time to switch the delay when changing ranks.

The DDRCTRL arbitrates bus accesses on a cycle-by-cycle basis: after a write is scheduled, there are few clock cycles (determined by DIFF_RANK_WR_GAP) in which only writes from the same rank can be scheduled. This prevents writes from other ranks from having fair access to the data bus.

After this number is reached, a delay equal to DIFF_RANK_WR_GAP is inserted by the scheduler to give all ranks a fair opportunity to be scheduled. Higher numbers increase bandwidth utilization. Lower numbers increase fairness.

This feature can be disabled by setting this bitfield to 0. In this case, the DDRCTRL stays on the same rank as long as commands are available for it.

Note: Programming mode: Static.

Bits 11:8 DIFF_RANK_WR_GAP[3:0]: Number of clocks of gap in data responses when performing consecutive writes to different ranks (only present for multirank configurations)

This bitfield is used to switch the delays in the PHY to match the rank requirements.

This value must consider both PHY requirement and ODT requirement.

Note: Programming mode: Quasi-dynamic Group 2.

Bits 7:4 DIFF_RANK_RD_GAP[3:0]: Number of clocks of gap in data responses when performing consecutive reads to different ranks (only present for multi-rank configurations)

This bitfield is used to switch the delays in the PHY to match the rank requirements.

This value must consider both PHY requirement and ODT requirement.

Note: Programming mode: Quasi-dynamic Group 2.

Bits 3:0 MAX_RANK_RD[3:0]: Maximum number of reads that can be scheduled consecutively to the same rank (only present for multirank configurations)

Reads to the same rank can be performed back-to-back. Reads to different ranks require additional gap dictated by DIFF_RANK_RD_GAP in this register. This avoids possible data bus contention, and gives PHY enough time to switch the delay when changing ranks.

The DDRCTRL arbitrates bus accesses on a cycle-by-cycle basis: after a read is scheduled, there are few clock cycles (determined by DIFF_RANK_WR_GAP) in which only reads from the same rank can be scheduled. This prevents reads from other ranks from having fair access to the data bus.

After this number is reached, a delay equal to DIFF_RANK_RD_GAP is inserted by the scheduler to give all ranks a fair opportunity to be scheduled. Higher numbers increase bandwidth utilization. Lower numbers increase fairness.

This feature can be disabled by setting this bitfield to 0. In this case, the DDRCTRL stays on the same rank as long as commands are available for it.

Note: Programming mode: Static.

13.7.26 Rank control 1 register (DDRCTRL_REGS_RANKCTL1)

Address offset: 0x0F8

Reset value: 0x0000 0008

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.WR2RD_DR[5:0]
rwrwrwrwrwrw

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

Bits 5:0 WR2RD_DR[5:0]: Minimum time from write command to read command on different physical ranks.

This must include time for bus turn-around between ranks and all PHY and system requirements.

After the PHY has completed training, the value programmed may need to be increased.

The following calculations are minimum values, and do not include the PHY/system requirements: \(WL + BL/2 - RL + WR\_POSTAMBLE + RD\_PREAMBLE\)

If using DDR4-LRDIMM, the following has to be satisfied: \(t_{RPRE}/2 + BL/2 + 2.7 - (CL - CWL)\)

If the calculated value is less than BL/2 (including negative values), the value should be BL/2.

When the controller is operating in 1:2 frequency ratio mode, divide the value calculated using the above equation by 2, and round it up to next integer.

For DDR4, this register value must be smaller than or equal to WR2RD_S[5:0].

For other protocols, this register value must be smaller than or equal to WR2RD[5:0].

Note: Programming mode: Quasi-dynamic Group 1, Group 2, Group 4.

13.7.27 DDCRTL SDRAM timing 0 register (DDRCTRL_REGS_DRAMTMG0)

Address offset: 0x100

Reset value: 0x0F10 1B0F

31302928272625242322212019181716
Res.WR2PRE[6:0]Res.Res.T_FAW[5:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.T_RAS_MAX[6:0]Res.Res.T_RAS_MIN[5:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:24 WR2PRE[6:0]: Minimum time between write and precharge to same bank

Specifications: \(WL + BL / 2 + t_{WR} = \text{approximately 8 cycles} + 15 \text{ ns} = 14 \text{ clocks @400MHz}\) and less for lower frequencies.

where:

Add one extra cycle for LPDDR4 for this parameter.

If the DDCRTL operates in 1:2 mode, 1T mode, divide the previous value by 2 (no round-up).

If the DDCRTL operates in 1:2 mode, 2T mode or LPDDR4 mode, divide the previous value by 2, and round it up to the next integer value.

For DDR4, LPDDR4, use nWR (WR) instead of \(t_{WR}\) to calculate the value of this bitfield.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 1, Group 2, Group 4.

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

Bits 21:16 T_FAW[5:0]: \(t_{FAW}\), valid only when 8 or more banks (or banks x bank groups) are present

In 8-bank design, at most 4 banks must be activated in a rolling window of \(t_{FAW}\) cycles.

If the DDCRTL operates in 1:2 mode, set this bitfield to \(t_{FAW} / 2\), and round up to next integer value. In a 4-bank design, set this bitfield to 0x1.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bit 15 Reserved, must be kept at reset value.

Bits 14:8 T_RAS_MAX[6:0]: \(t_{RASmax}\), max time between activate and precharge to same bank

This is the maximum time that a page can be kept open. This bitfield minimum value is 1 (0 is invalid).

If the DDCRTL operates in 1:2 mode, this bitfield must be set to

\(\text{RoundDown}((\text{RoundDown}(t_{RASmax} / t_{CK} / 1024) - 1) / 2)\).

Unit: multiples of 1024 DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 5:0 T_RAS_MIN[5:0]: \(t_{RASmin}\), minimum time between activate and precharge to same bank
If the DDRCCTRL operates in 1:2 mode, 1T mode, set this bitfield to \(\text{RoundDown}(\text{RoundUp}(t_{RASmin} / t_{CK}) / 2)\).
If the DDRCCTRL operates in 1:2 mode, 2T mode or LPDDR4 mode, set this bitfield to \(\text{RoundUp}(\text{RoundUp}(t_{RASmin} / t_{CK}) / 2)\).
Unit: DFI clock cycles.

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.28 DDRCCTRL SDRAM timing 1 register (DDRCCTRL_REGS_DRAMTMG1)

Address offset: 0x104

Reset value: 0x0008 0414

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_XP[4:0]
rwrwrwrwrw
1514131211109876543210
Res.Res.RD2PRE[5:0]Res.T_RC[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 20:16 T_XP[4:0]: \(t_{XP}\), minimum time after PDN exit to any operation
For DDR3L, this bitfield must be set to \(t_{XPDLL}\) if slow PDN exit is selected in MR0[12].
If C/A parity for DDR4 is used, set this bitfield to \((t_{XP+PL})\).
For LPDDR4 with \(t_{CKELPD}\) specified, set this bitfield to the larger of \(t_{XP}\) and \(t_{CKELPD}\).
If the DDRCCTRL operates in 1:2 mode, set this bitfield to \((t_{XP} / 2)\), and round it up to the next integer value.
Units: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 13:8 RD2PRE[5:0]: \(t_{RTP}\), minimum time from read to precharge of same bank
For DDR3L: \(t_{AL} + \max(\text{RoundUp}(t_{RTP} / t_{CK}), 4)\)
For DDR4: \(\text{Max of } [t_{AL} + \max(\text{RoundUp}(t_{RTP} / t_{CK}), 4)] \text{ or } [RL + BL / 2 - t_{RP}]\).
For LPDDR4: \(BL / 2 + \max(\text{RoundUp}(t_{RTP} / t_{CK}), 8) - 8\)
If the DDRCCTRL operates in 1:2 mode, 1T mode, divide the previous value by 2 (no round-up).
If the DDRCCTRL operates in 1:2 mode, 2T mode or LPDDR4 mode, divide the previous value by 2, and round it up to the next integer value.
For DDR4, use RTP instead of \(t_{RTP}\) to calculate the value of this parameter.
Unit: DFI clock cycles
Programming mode: Quasi-dynamic Group 1, Group 2, Group 4.

Bit 7 Reserved, must be kept at reset value.

Bits 6:0 T_RC[6:0]: \(t_{RC}\), minimum time between activates to same bank
If the DDRCCTRL operates in 1:2 mode, set this bitfield to \((t_{RC} / 2)\), and round up to next integer value. Unit: DFI clock cycles
Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.29 DDRCTRL SDRAM timing 2 register (DDRCTRL_REGS_DRAMTMG2)

Address offset: 0x108

Reset value: 0x0305 060D

31302928272625242322212019181716
Res.Res.WRITE_LATENCY[5:0]Res.Res.READ_LATENCY[5:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.RD2WR[5:0]Res.Res.WR2RD[5:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 29:24 WRITE_LATENCY[5:0]: Time from write command to write data on SDRAM interface

This bitfield must be set to WL.

If the DDRCTRL operates in 1:2 mode, divide the value calculated using the previous equation by two, and round it up to next integer.

This bitfield is not required for DDR3L, as the DFI read and write latencies defined in DFITMG0 and DFITMG1 are sufficient for this protocol.

For all protocols, in addition to programming this bitfield, it is necessary to program DFITMG0 and DFITMG1 to control the read and write latencies.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 1, Group 2, Group 4.

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

Bits 21:16 READ_LATENCY[5:0]: Time from read command to read data on SDRAM interface

This bitfield must be set to RL.

If the DDRCTRL operates in 1:2 mode, divide the value calculated using the previous equation by two, and round it up to next integer.

This bitfield is not required for DDR3L, as the DFI read/write latencies defined in DDRCTRL_REGS_DFITMG0/1 registers are sufficient for this protocol.

For all protocols, in addition to setting this bitfield, DDRCTRL_REGS_DFITMG0/1 must be programmed to control the read and write latencies.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 1, Group 2, Group 4.

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

Bits 13:8 RD2WR[5:0]: Minimum time from read command to write command

This bitfield must include time for bus turnaround (both within ranks and between ranks), and all PHY and system requirements.

After the PHY has completed training, this bitfield may need to be increased.

The following calculations give minimum values (not including PHY/system requirements):

For DDR3L: RL+BL/2+2-WL

For DDR4: RL+BL/2+1+WR_PREAMBLE-WL

For LPDDR4 (DQ ODT disabled):

\(RL + BL/2 + \text{RoundUp}(t_{DQSCKmax} / t_{CK}) + WR\_PREAMBLE + RD\_POSTAMBLE - WL\)

For LPDDR4 (DQ ODT enabled): \(RL + BL/2 + \text{RoundUp}(t_{DQSCKmax} / t_{CK}) +\)

\(RD\_POSTAMBLE - ODTLon - \text{RoundUp}(t_{ODTonmin} / t_{CK}) + 1\),

where:

For LPDDR4, if derating is enabled (DERATEEN.derate_enable = 1), derated \(t_{DQSCKmax}\) must be used.

If the DDCRTL operates in 1:2 mode, divide the value calculated using the previous equation by two, and round it up to next integer.

Depending on the PHY, if using LRDIMM, it may be necessary to adjust the value of this parameter to compensate for the extra cycle of latency through the LRDIMM.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 1, Group 2, Group 4.

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

Bits 5:0 WR2RD[5:0]:

In DDR4, minimum time from write command to read command for same bank group.
In other protocols, minimum time from write command to read command. This must include time for bus turnaround and all PHY and system requirements.

After the PHY has completed training, the value programmed may need to be increased.
The following calculations give minimum values (not including PHY/system requirements):

DDR4: \(CWL + PL + BL / 2 + t_{WTR\_L}\)

LPDDR4: \(WL + BL / 2 + t_{WTR} + 1\)

Others: \(CWL + BL / 2 + t_{WTR}\)

Where:

WTR_L must be increased by one if DDR4 2tCK write preamble is used.

If the DDCRTL operates in 1:2 mode, divide the value calculated using the previous equation by two, and round it up to next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 1, Group 2, Group 4.

13.7.30 DDCRTL SDRAM timing 3 register (DDRCTRL_REGS_DRAMTMG3)

Address offset: 0x10C

Reset value: 0x0050 400C

31302928272625242322212019181716
ResResT_MRW[9:0]ResResT_MRD[5:4]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
T_MRD[3:0]Res.Res.T_MOD[9:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 29:20 T_MRW[9:0]: Time to wait after a mode register write or read (MRW or MRR)

LPDDR4: Set this to the larger of \(t_{MRW}\) and \(t_{MRWCKEL}\).

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bits 19:18 Reserved, must be kept at reset value.

Bits 17:12 T_MRD[5:0]: \(t_{MRD}\), number of cycles to wait after a mode register write or read
Depending on the connected SDRAM, \(t_{MRD}\) represents:

If the DDRCTRL operates in 1:2 mode, set this bitfield to \((t_{MRD} / 2)\), and round it up to the next integer value.
If CAL mode is enabled (DFI_T_CMD_LAT > 0 in DDRCTRL_REGS_DFITMG1), \(t_{CAL}\) (= DFI_CMD_LAT in DDRCTRL_REGS_DFITMG1) must be added to the previous calculations.
Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 9:0 T_MOD[9:0]: \(t_{MOD}\), number of cycles between load mode command and following non-load mode command (only in DDR3L and DDR4)
If CAL mode is enabled (DFI_T_CMD_LAT > 0 in DDRCTRL_REGS_DFITMG1), \(t_{CAL}\) (= DFI_CMD_LAT in DDRCTRL_REGS_DFITMG1) must be added to the previous calculations.
If the DDRCTRL operates in 1:2, set this bitfield to \((t_{MOD} / 2)\), and round it up to the next integer value.
Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.31 DDRCTRL SDRAM timing 4 register (DDRCTRL_REGS_DRAMTMG4)

Address offset: 0x110

Reset value: 0x0504 0405

31302928272625242322212019181716
Res.Res.Res.T_RCD[4:0]Res.Res.Res.Res.T_CCD[3:0]
rwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.T_RRD[3:0]Res.Res.Res.T_RP[4:0]
rwrwrwrwrwrwrwrwrw

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

Bits 28:24 T_RCD[4:0]: \(t_{RCD} - t_{AL}\), minimum time from activate to read or write command to same bank
If the DDRCTRL operates in 1:2 mode, set this bitfield to \(((t_{RCD} - t_{AL}) / 2)\), and round it up to the next integer value.
Minimum value allowed for this register is 1, which implies minimum \((t_{RCD} - t_{AL})\) value to be two when the DDRCTRL operates in 1:2 mode.
Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 1, Group 2, Group 4.

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

Bits 19:16 T_CCD[3:0]:

For DDR4, \(t_{CCD\_L}\), minimum time between two reads or two writes for same bank group.
For other protocols, \(t_{CCD}\), minimum time between two reads or two writes.
If the DDCRTL operates in 1:2 mode, set this bitfield to \((t_{CCD\_L} / 2 \text{ or } t_{CCD} / 2)\), and round it up to the next integer value.
Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 11:8 T_RRD[3:0]:

For DDR4, \(t_{RRD\_L}\), minimum time between activates from bank a to bank b for same bank.
For other protocols, \(t_{RRD}\), minimum time between activates from bank a to bank b.
If the DDCRTL operates in 1:2 mode, set this bitfield to \((t_{RRD\_L} / 2 \text{ or } t_{RRD} / 2)\), and round it up to the next integer value.
Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 4:0 T_RP[4:0]: \(t_{RP}\), minimum time from single-bank precharge to activate of same bank

If the DDCRTL operates in 1:2 mode, set this bitfield to \(\text{RoundDown}(\text{RoundUp}(t_{RP} / t_{CK}) / 2) + 1\).
If the DDCRTL operates in 1:2 mode in LPDDR4, set this bitfield to \(\text{RoundUp}(\text{RoundUp}(t_{RP} / t_{CK}) / 2)\).
Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.32 DDCRTL SDRAM timing 5 register (DDRCTRL_REGS_DRAMTMG5)

Address offset: 0x114

Reset value: 0x0505 0403

31302928272625242322212019181716
Res.Res.Res.Res.T_CKSRX[3:0]Res.T_CKSRE[6:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.T_CKESR[5:0]Res.Res.Res.T_CKE[4:0]
rwrwrwrwrwrwrwrwrwrwrw

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

Bits 27:24 T_CKSRX[3:0]: Time before SR exit that CK is maintained as a valid clock before issuing SRX
This bitfield specifies the clock stable time before SRX. The recommended settings are:

If the DDCRTL operates in 1:2 mode, set this bitfield to recommended value divided by two, and round it up to next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bit 23 Reserved, must be kept at reset value.

13.7.33 DDRCTRL SDRAM timing 6 register (DDRCTRL_REGS_DRAMTMG6)

Address offset: 0x118

Reset value: 0x0202 0005

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.T_CKCSX[3:0]
rwrwrwrw

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

ST logo
ST logo

Bits 3:0 T_CKCSX[3:0]: time before clock Stop exit that CK is maintained as a valid clock before issuing clock Stop exit

This bitfield specifies the clock stable time before next command after clock Stop exit.

The recommended settings for LPDDR4 is \(t_{XP} + 2\).

If the DDCRTL operates in 1:2 mode, set this bitfield to recommended value divided by two, and round it up to next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.34 DDCRTL SDRAM timing 7 register (DDRCTRL_REGS_DRAMTMG7)

Address offset: 0x11C

Reset value: 0x0000 0202

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.T_CKPDE[3:0]Res.Res.Res.Res.T_CKPDx[3:0]
rwrwrwrwrwrwrwrw

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

Bits 11:8 T_CKPDE[3:0]: Time after PDN entry that CK is maintained as a valid clock

This bitfield specifies the clock disable delay after PDE. The recommended settings are:

If the DDCRTL operates in 1:2 mode, set this bitfield to recommended value divided by two, and round it up to next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 3:0 T_CKPDx[3:0]: Time before PDN exit that CK is maintained as a valid clock before issuing PDX

This bitfield specifies the clock stable time before PDX. The recommended settings are:

If the DDCRTL operates in 1:2 mode, set this bitfield to recommended value divided by two, and round it up to next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.35 DDRCTRL SDRAM timing 8 register (DDRCTRL_REGS_DRAMTMG8)

Address offset: 0x120

Reset value: 0x0303 4405

31302928272625242322212019181716
Res.T_XS_FAST_X32[6:0]Res.T_XS_ABORT_X32[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.T_XS_DLL_X32[6:0]Res.T_XS_X32[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:24 T_XS_FAST_X32[6:0]: \(t_{XS\_FAST}\), exit SR to ZQCL, ZQCS and MRS (only CL, WR, RTP mode)

This is applicable to only ZQCL/ZQCS commands. Ensure this bitfield ≤ T_XS_X32.

If the DDRCTRL operates in 1:2 mode, set this bitfield to the previous value divided by two, and round it up to next integer.

Unit: multiples of 32 DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bit 23 Reserved, must be kept at reset value.

Bits 22:16 T_XS_ABORT_X32[6:0]: \(t_{XS\_ABORT}\), exit SR to commands not requiring a locked DLL in SR abort

Ensure this bitfield ≤ T_XS_X32.

If the DDRCTRL operates in 1:2 mode, set this bitfield to the previous value divided by two, and round it up to next integer.

Unit: multiples of 32 DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bit 15 Reserved, must be kept at reset value.

Bits 14:8 T_XS_DLL_X32[6:0]: \(t_{XSDLL}\), exit SR to commands requiring a locked DLL (only for DDR3L and DDR4 SDRAMs)

If the DDRCTRL operates in 1:2 mode, set this bitfield to the previous value divided by two, and round it up to next integer.

Unit: multiples of 32 DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bit 7 Reserved, must be kept at reset value.

Bits 6:0 T_XS_X32[6:0]: \(t_{XS}\), exit SR to commands not requiring a locked DLL (only for DDR3L and DDR4 SDRAMs)

If the DDRCTRL operates in 1:2 mode, set this bitfield to the previous value divided by two, and round it up to next integer.

Unit: Multiples of 32 DFI clock cycles.

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.36 DDRCTRL SDRAM timing 9 register (DDRCTRL_REGS_DRAMTMG9)

Address offset: 0x124

Reset value: 0x0004 040D

31302928272625242322212019181716
Res.DDR4_WR_PREAMBLERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_CCD_S[2:0]
rwrwrwrw
1514131211109876543210
Res.Res.Res.Res.T_RRD_S[3:0]Res.Res.WR2RD_S[5:0]
rwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bit 30 DDR4_WR_PREAMBLE: DDR4 write preamble mode

0: 1tCK preamble

1: 2tCK preamble

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 18:16 T_CCD_S[2:0]: tCCD_S, minimum time between two reads/writes for different bank group

If the DDRCTRL operates in 1:2 mode, set this bitfield to (tCCD_S / 2), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 11:8 T_RRD_S[3:0]: tRRD_S, minimum time between activates for different bank group

If the DDRCTRL operates in 1:2 mode, set this bitfield to (tRRD_S / 2), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 5:0 WR2RD_S[5:0]: Minimum time from write command to read command for different bank group

This must include time for bus turn-around and all PHY and system requirements.

After the PHY has completed training, the value programmed may need to be increased.

The following calculations gives minimum values (not including PHY/system requirements):

\(CWL + PL + BL / 2 + t_{WTR\_S}\)

Where:

\(t_{WTR\_S}\) must be increased by one if DDR4 2\(t_{CK}\) write preamble is used.

If the DDRCCTRL operates in 1:2 mode, divide the value calculated using the previous equation by two, and round it up to next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 1, Group 2, Group 4.

13.7.37 DDRCCTRL SDRAM timing 10 register (DDRCCTRL_REGS_DRAMTMG10)

Address offset: 0x128

Reset value: 0x001C 180A

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_SYNC_GEAR[4:0]
rwrwrwrwrw
1514131211109876543210
Res.Res.Res.T_CMD_GEAR[4:0]Res.Res.Res.Res.T_GEAR_SETUP[1:0]T_GEAR_HOLD[1:0]
rwrwrwrwrwrwrwrwrw

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

Bits 20:16 T_SYNC_GEAR[4:0]: Time between MRS command and the sync pulse time

This must be even number of clocks.

For DDR4-2666 and DDR4-3200, this parameter is defined as \(t_{MOD(min)} + 4nCK\),

with \(t_{MOD(min)} = \text{Max}(24nCK, 15 \text{ ns})\). The maximum value for this register is 24+4 = 28.

If the DDRCCTRL operates in 1:2 mode, set this bitfield to \((t_{SYNC\_GEAR} / 2)\), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 12:8 T_CMD_GEAR[4:0]: sync pulse to first valid command

For DDR4-2666 and DDR4-3200, this parameter is defined as

\(t_{MOD(min)} = \text{Max}(24nCK, 15 \text{ ns})\). The maximum value for this bitfield is 24.

If the DDRCCTRL operates in 1:2 mode, set this bitfield to \((t_{CMD\_GEAR} / 2)\), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 3:2 T_GEAR_SETUP[1:0]: Geardown setup time

Minimum value of this bitfield is 1 (0 is invalid).

For DDR4-2666 and DDR4-3200, this parameter is defined as 2 clocks.

If the DDCRTL operates in 1:2 mode, set this bitfield to \((t_{GEAR\_setup} / 2)\), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bits 1:0 T_GEAR_HOLD[1:0]: Geardown hold time

Minimum value of this bitfield is 1 (0 is invalid).

For DDR4-2666 and DDR4-3200, this parameter is defined as 2 clocks.

If the DDCRTL operates in 1:2 mode, set this bitfield to \((t_{GEAR\_hold} / 2)\), and round it up to the next integer value.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.38 DDCRTL SDRAM timing 11 register (DDRCTRL_REGS_DRAMTMG11)

Address offset: 0x12C

Reset value: 0x440C 021C

31302928272625242322212019181716
Res.POST_MPSM_GAP_X32[6:0]Res.Res.Res.T_MPX_LH[4:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.T_MPX_S[1:0]Res.Res.Res.T_CKMPE[4:0]
rwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:24 POST_MPSM_GAP_X32[6:0]: \(t_{XMPDLL}\), minimum exit MPSM to commands requiring a locked DLL

If the DDCRTL operates in 1:2 mode, set this bitfield to \((t_{XMPDLL} / 2)\), and round it up to the next integer.

Unit: multiples of 32 DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 20:16 T_MPX_LH[4:0]: \(t_{MPX\_LH}\), minimum CS_n low hold time to CKE rising edge

If the DDCRTL operates in 1:2 mode, set this bitfield to \(RoundUp(t_{MPX\_LH} / 2) + 1\).

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 9:8 T_MPX_S[1:0]: \(t_{MPX\_S}\), minimum time CS setup time to CKE

If the DDCRTL operates in 1:2 mode, set this bitfield to \((t_{MPX\_S} / 2)\), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 4:0 T_CKMPE[4:0]: \(t_{CKMPE}\), minimum valid clock requirement after MPSM entry

If the DDRCTRL operates in 1:2 mode, set this bitfield to \((t_{CKMPE} / 2)\), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.39 DDRCTRL SDRAM timing 12 register (DDRCTRL_REGS_DRAMTMG12)

Address offset: 0x130

Reset value: 0x1A02 0010

31302928272625242322212019181716
Res.Res.T_WR_MPR[5:0]Res.Res.Res.Res.Res.Res.T_CMDCKE[1:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_MRD_PDA[4:0]
rwrwrwrwrw

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

Bits 29:24 T_WR_MPR[5:0]: Cycles between MPR write and other commands (DDR4 only)

Set this bitfield to \(t_{MOD} + AL\).

If the DDRCTRL operates in 1:2 mode, set this bitfield to \((t_{WR\_MPR} / 2)\), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 17:16 T_CMDCKE[1:0]: \(t_{CMDCKE}\), delay from valid command to CKE input low

Set this bitfield to \(\text{Max}(t_{ESCKE}, t_{CMDCKE})\).

If the DDRCTRL operates in 1:2 mode, divide this value by two, and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 4:0 T_MRD_PDA[4:0]: \(t_{MRD\_PDA}\), cycle time of mode register set command in PDA mode

If the DDRCTRL operates in 1:2 mode, set this bitfield to \((t_{MRD\_PDA} / 2)\), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.40 DDRCTRL SDRAM timing 13 register
(DDRCTRL_REGS_DRAMTMG13)

Address offset: 0x134

Reset value: 0x1C20 0004

31302928272625242322212019181716
Res.ODTLOFF[6:0]Res.Res.T_CCD_MW[5:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_PPD[2:0]
rwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:24 ODTLOFF[6:0]: ODTLOff, latency from CAS-2 command to ODTOff reference (only LPDDR4)
If the DDRCTRL operates in 1:2 mode, set this bitfield to (ODTLOff / 2), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 21:16 T_CCD_MW[5:0]: \(t_{CCDMW}\), minimum time from write or masked write to masked write command for same bank (only LPDDR4)

If the DDRCTRL operates in 1:2 mode, set this bitfield to (\(t_{CCDMW}\) / 2), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 2:0 T_PPD[2:0]: \(t_{PPD}\), minimum time from precharge to precharge command (only LPDDR4)

If the DDRCTRL operates in 1:2 mode, set this bitfield to (\(t_{PPD}\) / 2), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.41 DDRCTRL SDRAM timing 14 register
(DDRCTRL_REGS_DRAMTMG14)

Address offset: 0x138

Reset value: 0x0000 00A0

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.T_XSR[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 11:0 T_XSR[11:0]: \(t_{XSR}\), exit SR time to any command (only LPDDR4)
If the DDCRTL operates in 1:2 mode, divide the previous value by two, and round it up to the next integer. The 0xFFF value is illegal for this bitfield.
Unit: DFI clock cycles
Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.42 DDCRTL SDRAM timing 15 register (DDRCTRL_REGS_DRAMTMG15)

Address offset: 0x13C

Reset value: 0x0000 0000

31302928272625242322212019181716
EN_DF
I_LP_T
_STAB
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.T_STAB_X32[7:0]
rwrwrwrwrwrwrwrw

Bit 31 EN_DFI_LP_T_STAB:
1: Enable using \(t_{STAB}\) when exiting DFI LP. This must be set when the PHY stops the clock during DFI LP to save the maximum power.
0: Disable using \(t_{STAB}\) when exiting DFI LP.
Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 7:0 T_STAB_X32[7:0]: \(t_{STAB}\), stabilization time
It is required in the following cases for DDR3L and DDR4 RDIMM:
• when exiting power saving mode, if the clock is stopped. After reenabling it, the clock must be stable for a time specified by \(t_{STAB}\).
• when an input clock frequency change (DDR4)
• after issuing control words that refer to clock timing (spec: 6 μs for DDR3L, 5 μs for DDR4)
If the DDCRTL operates in 1:2 mode, set this bitfield to recommended value divided by two, and round it up to next integer.
Unit: multiples of 32 DFI clock cycles
Note: Programming mode: Quasi-dynamic Group 2, Group 4.

ST logo
ST logo

13.7.43 DDRCTRL ZQ control 0 register (DDRCTRL_REGS_ZQCTL0)

Address offset: 0x180

Reset value: 0x0200 0040

31302928272625242322212019181716
DIS_A
UTO_Z
Q
DIS_S
RX_ZQ
CL
ZQ_RE
SISTO
R_SHA
RED
DIS_M
PSMX_
ZQCL
Res.T_ZQ_LONG_NOP[10:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.T_ZQ_SHORT_NOP[9:0]
rwrwrwrwrwrwrwrwrwrw

Bit 31 DIS_AUTO_ZQ:

Note: Programming mode: Dynamic.

Bit 30 DIS_SRX_ZQCL:

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

Bit 29 ZQ_RESISTOR_SHARED:

Note: Programming mode: Static.

Bit 28 DIS_MPSMX_ZQCL: Only for DDR4

Caution: The software can send ZQCS after exiting MPS mode.

Note: Programming mode: Static.

Bit 27 Reserved, must be kept at reset value.

Bits 26:16 T_ZQ_LONG_NOP[10:0]: DFI clock cycles of NOP required after ZQCL (ZQ calibration long)

\(t_{ZQoper}\) for DDR3L/DDR4, \(t_{ZQCAL}\) for LPDDR4. MPC(ZQ Start) command is issued to the SDRAM.

If the DDRCTRL operates in 1:2 mode, set this bitfield to \((t_{ZQoper} / 2 \text{ or } t_{ZQCAL} / 2)\), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Static.

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

Bits 9:0 T_ZQ_SHORT_NOP[9:0]: DFI clock cycles of NOP required after ZQCS (ZQ calibration short)
\(t_{ZQCS}\) for DDR3L/DDR4, \(t_{ZQLAT}\) for LPDDR4. MPC(ZQ Latch) command is issued to SDRAM.
If the DDCRTL operates in 1:2 mode, set this bitfield to \((t_{ZQCS} / 2 \text{ or } t_{ZQLAT} / 2)\), and round it up to the next integer.
Unit: DFI clock cycles

Note: Programming mode: Static.

13.7.44 DDCRTL ZQ control 1 register (DDRCTRL_REGS_ZQCTL1)

Address offset: 0x184

Reset value: 0x0200 0100

31302928272625242322212019181716
Res.Res.T_ZQ_RESET_NOP[9:0]T_ZQ_SHORT_INTERVAL_X1024[19:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
T_ZQ_SHORT_INTERVAL_X1024[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 29:20 T_ZQ_RESET_NOP[9:0]: \(t_{ZQReset}\), DFI clock cycles of NOP required after ZQReset (ZQ calibration reset) command is issued to SDRAM

If the DDCRTL operates in 1:2 mode, set this bitfield to \((t_{ZQReset} / 2)\), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Static.

Bits 19:0 T_ZQ_SHORT_INTERVAL_X1024[19:0]: Average interval to wait between automatically issuing ZQCS (ZQ calibration short) and MPC(ZQ calibration) commands to DDR3L/DDR4/LPDDR4 devices

Meaningless if DIS_AUTO_ZQ = 1 in DDCRTL_REGS_ZQCTL0.

Unit: multiples of 1024 DFI clock cycles

Note: Programming mode: Static.

13.7.45 DDCRTL ZQ control 2 register (DDRCTRL_REGS_ZQCTL2)

Address offset: 0x188

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.ZQ_RESET
rs

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

Bit 0 ZQ_RESET: ZQ Reset operation

Setting this bit to 1 triggers a ZQ Reset operation.

When the ZQ Reset operation is complete, the DDCRTL automatically clears this bit.

It is recommended NOT to set this bit if in init, SR (except LPDDR4), SRPD (LPDDR4), or DPD operating modes.

For SR (except LPDDR4) or SRPD (LPDDR4), ZQ Reset is scheduled after SR (except LPDDR4) or SPRD(LPDDR4) has been exited.

For DPN, ZQ Reset is not scheduled, although ZQ_RESET_BUSY is deasserted in DDCRTL_REGS_ZQSTAT.

Note: Programming mode: Dynamic.

13.7.46 DDCRTL ZQ status register (DDRCTRL_REGS_ZQSTAT)

Address offset: 0x18C

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.ZQ_RESET_BUSY
r

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

Bit 0 ZQ_RESET_BUSY: ZQ Reset operation possible only if this bit is low

This bit goes high in the clock after the DDCRTL accepts the ZQ Reset request.

It goes low when the ZQ Reset command is issued to the SDRAM, and the associated NOP period is over. It is recommended not to perform ZQ Reset commands when this bit is high.

0: AZQ Reset operation can be initiated.

1: A ZQ Reset operation is in progress.

Note: Programming mode: Dynamic.

ST logo
ST logo

13.7.47 DDRCTRL DFI timing 0 register (DDRCTRL_REGS_DFITMG0)

Address offset: 0x190

Reset value: 0x0702 0002

31302928272625242322212019181716
Res.Res.Res.DFI_T_CTRL_DELAY[4:0]DFI_RDDATA_USE_DFI_PHY_CLKDFI_T_RDDATA_EN[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DFI_WRDATA_USE_DFI_PHY_CLKRes.DFI_TPHY_WRDATA[5:0]Res.Res.DFI_TPHY_WRLAT[5:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 28:24 DFI_T_CTRL_DELAY[4:0]: DFI clock cycles after an assertion or deassertion of DFI control signals

Control signals at the PHY-DRAM interface reflect this assertion or deassertion.

If the DFI clock and the memory clock are not phase-aligned, this timing parameter must be rounded up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 4.

Bit 23 DFI_RDDATA_USE_DFI_PHY_CLK: dfi_rddata_en, dfi_rddata, or dfi_rddata_valid generated

This bit selects whether DFI_T_RDDATA_EN value in this register is in terms of HDR (DFI clock) or SDR (DFI PHY clock) cycles:

0: HDR (DFI clock) cycles

1: SDR (DFI PHY clock) cycles

If a Synopsys DWC gen2 multiPHY is used, this bit must be 0.

Note: Programming mode: Static.

Bits 22:16 DFI_T_RDDATA_EN[6:0]: Time from the assertion of a read command on the DFI interface to the assertion of dfi_rddata_en

Refer to Section 14: DDR physical interface control (DDRPHYC) for correct value.

This bitfield corresponds to the DFI parameter trddata_en.

Unit: DFI clock cycles or DFI PHY clock cycles, depending on DFI_RDDATA_USE_DFI_PHY_CLK in this register

Note: Programming mode: Quasi-dynamic Group 1, Group 4.

Bit 15 DFI_WRDATA_USE_DFI_PHY_CLK: dfi_wrdata_en, dfi_wrdata, or dfi_wrdata_mask generated

This bit selects whether DFI_TPHY_WRLAT and DFI_TPHY_WRDATA values in this register are in terms of HDR (DFI clock) or SDR (DFI PHY clock) cycles.

0: HDR (DFI clock) cycles

1: SDR (DFI PHY clock) cycles

If a Synopsys DWC gen2 multiPHY is used, this bit must be 0.

Note: Programming mode: Static.

Bit 14 Reserved, must be kept at reset value.

Bits 13:8 DFI_TPHY_WRDATA[5:0]: \(t_{PHY\_WRDATA}\), number of clock cycles between dfi_wrdata_en assertion and associated write data driven on dfi_wrdata

Refer to Section 14: DDR physical interface control (DDRPHYC) for correct value.

The maximum supported value is 8.

Unit: DFI clock cycles or DFI PHY clock cycles, depending on DFI_WRDATA_USE_DFI_PHY_CLK in this register

Note: Programming mode: Quasi-dynamic Group 4.

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

Bits 5:0 DFI_TPHY_WRLAT[5:0]: \(t_{PHY\_WRLAT}\), write latency

Number of clocks from write command to write data enable (dfi_wrdata_en).

For LPDDR4, DFI_TPHY_WRLAT > 60 is not supported.

Unit: DFI clock cycles or DFI PHY clock cycles, depending on DFI_WRDATA_USE_DFI_PHY_CLK in this register

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.48 DDRCTRL DFI timing 1 register (DDRCTRL_REGS_DFITMG1)

Address offset: 0x194

Reset value: 0x0000 0404

31302928272625242322212019181716
DFI_T_CMD_LAT[3:0]Res.Res.Res.Res.Res.Res.Res.DFI_T_WRDATA_DELAY[4:0]
rwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DFI_T_DRAM_CLK_DISABLE[4:0]Res.Res.Res.DFI_T_DRAM_CLK_ENABLE[4:0]
rwrwrwrwrwrwrwrwrwrw

Bits 31:28 DFI_T_CMD_LAT[3:0]: Number of DFI PHY clock cycles between when dfi_cs assertion and when the associated command is driven

This bitfield is used for CAL mode, and must be set to 0 or \(t_{CAL}\), which matches the CAL mode register setting in the DRAM (valid range: 0 to 8).

If the PHY can add the latency for CAL mode, this bitfield must be set to 0.

Unit: DFI PHY clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 20:16 DFI_T_WRDATA_DELAY[4:0]: \(t_{WRDATA\_DELAY}\), DFI clock cycles between dfi_wrdata_en assertion, and when the corresponding write data transfer is completed on the DRAM bus

For more information on correct value, see PHY specification.

For DFI 3.0 PHY, set this bitfield to \(t_{WRDATA\_DELAY}\) (new parameter introduced in DFI 3.0).

For DFI 2.1 PHY, set this bitfield to \(t_{PHY\_WRDATA}\) + (delay of DFI write data to the DRAM).

Value to be programmed is in terms of DFI clocks, not PHY clocks.

In FREQ_RATIO = 2, divide recommended value by two, and round it up to next integer.

If DFI_WRDATA_USE_DFI_PHY_CLK = 1 in DDCRTL_REGS_DFITMG0, add 1 to the value.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 4.

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

Bits 12:8 DFI_T_DRAM_CLK_DISABLE[4:0]: DFI clock cycles from dfi_dram_clk_disable assertion on the DFI until the clock to the DRAM memory devices, at the PHY-DRAM boundary

This bitfield maintains a low value on CLK. If the DFI clock and the memory clock are not phase-aligned, this timing parameter must be rounded up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 4.

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

Bits 4:0 DFI_T_DRAM_CLK_ENABLE[4:0]: DFI clock cycles from dfi_dram_clk_disable deassertion on the DFI until the first valid rising edge of the clock to the DRAM memory devices, at the PHY-DRAM boundary

If the DFI clock and the memory clock are not phase aligned, this timing parameter must be rounded up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Quasi-dynamic Group 4.

13.7.49 DDRCTRL DFI low-power configuration 0 register (DDRCTRL_REGS_DFILPCFG0)

Address offset: 0x198

Reset value: 0x0700 0000

31302928272625242322212019181716
Res.Res.Res.DFI_TLP_RESP[4:0]Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrw
1514131211109876543210
DFI_LP_WAKEUP_SR[3:0]Res.Res.Res.DFI_LP_EN_S
R
DFI_LP_WAKEUP_PD[3:0]Res.Res.Res.DFI_LP_EN_P
D
rwrwrwrwrwrwrwrwrwrw

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

Bits 28:24 DFI_TLP_RESP[4:0]: \(t_{LP\_RESP}\), DFI clock cycles setting for DFI
Same value is used for both PDN, SR, DPD, and MPS modes.

Unit: DFI clock cycles

Note: Programming mode: Static.

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

Bits 15:12 DFI_LP_WAKEUP_SR[3:0]: \(t_{LP\_WAKEUP}\), DFI clock cycles to drive on dfi_lp_wakeup signal when SR is entered

0000: 16 cycles
0001: 32 cycles
0010: 64 cycles
0011: 128 cycles
0100: 256 cycles
0101: 512 cycles
0110: 1024 cycles
0111: 2048 cycles
1000: 4096 cycles
1001: 8192 cycles
1010: 16384 cycles
1011: 32768 cycles
1100: 65536 cycles
1101: 131072 cycles
1110: 262144 cycles
1111: Unlimited
Unit: DFI clock cycles

Note: Programming mode: Static.

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

Bit 8 DFI_LP_EN_SR: DFI low-power interface handshaking during SR entry/exit

0: Disabled
1: Enabled

Note: Programming mode: Static.

Bits 7:4 DFI_LP_WAKEUP_PD[3:0]: \(t_{LP\_WAKEUP}\), DFI clock cycles to drive on dfi_lp_wakeup signal when PDN is entered

0000: 16 cycles
0001: 32 cycles
0010: 64 cycles
0011: 128 cycles
0100: 256 cycles
0101: 512 cycles
0110: 1024 cycles
0111: 2048 cycles
1000: 4096 cycles
1001: 8192 cycles
1010: 16384 cycles
1011: 32768 cycles
1100: 65536 cycles
1101: 131072 cycles
1110: 262144 cycles
1111: Unlimited
Unit: DFI clock cycles

Note: Programming mode: Static.

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

Bit 0 DFI_LP_EN_PD: DFI low-power interface handshaking during PDN entry/exit
0: Disabled
1: Enabled

Note: Programming mode: Static.

13.7.50 DDRCTRL DFI update 0 register (DDRCTRL_REGS_DFIUPD0)

Address offset: 0x1A0

Reset value: 0x0040 0003

31302928272625242322212019181716
DIS_A
UTO_C
TRLUP
D
DIS_A
UTO_C
TRLUP
D_SRX
CTRLU
PD_PR
E_SRX
Res.Res.Res.DFI_T_CTRLUP_MAX[9:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.DFI_T_CTRLUP_MIN[9:0]
rwrwrwrwrwrwrwrwrwrw

Bit 31 DIS_AUTO_CTRLUPD:
1: Disable the automatic DFI_CTRLUPD_REQ generation. The DDRCTRL must issue this signal using CTRLUPD in DDRCTRL_REGS_DBGCMD.
0: DDRCTRL issues DFI_CTRLUPD_REQ periodically.
Note: Programming mode: Quasi-dynamic Group 3.

Bit 30 DIS_AUTO_CTRLUPD_SRX:
1: Disable the automatic DFI_CTRLUPD_REQ generation by the DDRCTRL at SR exit.
0: DDRCTRL issues a DFI_CTRLUPD_REQ before or after exiting SR, depending on CTRLUPD_PRE_SRX in this register.
Note: Programming mode: Static.

Bit 29 CTRLUPD_PRE_SRX: DFI_CTRLUPD_REQ requirements at SRX
0: Send DFI_CTRLUPD_REQ after SRX.
1: Send DFI_CTRLUPD_REQ before SRX.
If DIS_AUTO_CTRLUPD_SRX = 1, this bit has no impact (no DFI_CTRLUPD_REQ issued).
For STM32MP21xx, keep the default value 0x0.
Note: Programming mode: Static.

Bits 28:26 Reserved, must be kept at reset value.

Bits 25:16 DFI_T_CTRLUP_MAX[9:0]: Maximum number of DFI clock cycles that DFI_CTRLUPD_REQ signal can assert
The lowest value to assign to this bitfield is 0x40.
Unit: DFI clock cycles
Note: Programming mode: Static.

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

Bits 9:0 DFI_T_CTRLUPD_MIN[9:0]: Minimum number of DFI clock cycles to which the DFI_CTRLUPD_REQ signal must be asserted

The DDDRCTRL expects the PHY to respond within this time. If the PHY does not respond, the DDDRCTRL deasserts DFI_CTRLUPD_REQ after DFI_T_CTRLUPD_MIN + 2 cycles.

The lowest value to assign to this variable is 0x1.

Unit: DFI clock cycles

Note: Programming mode: Static.

13.7.51 DDDRCTRL DFI update 1 register (DDRCTRL_REGS_DFIUPD1)

Address offset: 0x1A4

Reset value: 0x0001 0001

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.DFI_T_CTRLUPD_INTERVAL_MIN_X1024[7:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.DFI_T_CTRLUPD_INTERVAL_MAX_X1024[7:0]
rwrwrwrwrwrwrwrw

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

Bits 23:16 DFI_T_CTRLUPD_INTERVAL_MIN_X1024[7:0]: Minimum amount of time between DDDRCTRL initiated DFI update requests (which is executed whenever the DDDRCTRL is idle)

Set this bitfield higher to reduce the frequency of update requests, which can have a small impact on the latency of the first read request when the DDDRCTRL is idle.

The minimum allowed value for this bitfield is 1.

Unit: multiples of 1024 DFI clock cycles

Note: Programming mode: Static.

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

Bits 7:0 DFI_T_CTRLUPD_INTERVAL_MAX_X1024[7:0]: Maximum amount of time between DDDRCTRL initiated DFI update requests

This timer resets with each update request. When the timer expires, DFI_CTRLUPD_REQ is sent, and the traffic is blocked until the DFI_CTRLUPD_ACKx is received.

The PHY can use this idle time to recalibrate the delay lines to the DLLs. The DFI controller update is also used to reset PHY FIFO pointers in case of data capture errors.

Updates are required to maintain calibration over PVT, but frequent updates may impact performance. The minimum allowed value for this bitfield is 1.

This bitfield must be greater than DFI_T_CTRLUPD_INTERVAL_MIN_X1024.

Unit: multiples of 1024 DFI clock cycles

Note: Programming mode: Static.

13.7.52 DDRCTRL DFI update 2 register (DDRCTRL_REGS_DFIUPD2)

Address offset: 0x1A8

Reset value: 0x8000 0000

31302928272625242322212019181716
DFI_PHYUPD_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bit 31 DFI_PHYUPD_EN: Enables the support for acknowledging PHY-initiated updates

0: Disabled

1: Enabled

Note: Programming mode: Static

Bits 30:0 Reserved, must be kept at reset value.

13.7.53 DDRCTRL DFI miscellaneous control register (DDRCTRL_REGS_DFIMISC)

Address offset: 0x1B0

Reset value: 0x0000 0041

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.DFI_FREQUENCY[4:0]LP_OPTIMIZE_WRITEDIS_DYN_ADRTRIDFI_INIT_STARTCTL_IDLE_ENRes.DFI_DATACS_POLARITYPHY_DBI_MODEDFI_INIT_COMPLETE_EN
rwrwrwrwrwrwrwrwrwrwrw

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

Bits 12:8 DFI_FREQUENCY[4:0]: System operating frequency

The number of supported frequencies and the mapping of signal values to clock frequencies are defined by the PHY.

Note: Programming mode: Quasi-dynamic Group 1

Bit 7 LP_OPTIMIZED_WRITE:

1: LPDDR4 write DQ is set to 0xF8 if masked write with enabling DBI.

0: LPDDR4 write DQ is set to 0xFF.

Note: Programming mode: Quasi-dynamic Group 3

13.7.54 DDRCTRL DFI timing 2 register (DDRCTRL_REGS_DFITMG2)

Address offset: 0x1B4

Reset value: 0x0000 0202

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.DFI_TPHY_RDCSLAT[6:0]Res.Res.DFI_TPHY_WRCSLAT[5:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 14:8 DFI_TPHY_RDCSLAT[6:0]: \(t_{PHY\_RDCSLAT}\), DFI PHY clock cycles between read command sent on the DFI control interface, and associated dfi_rddata_cs signal asserted
Refer to Section 14: DDR physical interface control (DDRPHYC) for the correct value.
Unit: DFI PHY clock cycles
Note: Programming mode: Quasi-dynamic Group 2, Group 4.

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

Bits 5:0 DFI_TPHY_WRCSLAT[5:0]: \(t_{PHY\_WRCSLAT}\), DFI PHY clock cycles between write command sent on the DFI control interface, and associated dfi_wrdata_cs signal asserted.

Refer to Section 14: DDR physical interface control (DDRPHYC) for the correct value.

Unit: DFI PHY clock cycles

Note: Programming mode: Quasi-dynamic Group 2, Group 4.

13.7.55 DDRCTRL DFI timing 3 register (DDRCTRL_REGS_DFITMG3)

Address offset: 0x1B8

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.DFI_T_GEARDOWN_DELAY[4:0]
rwrwrwrwrw

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

Bits 4:0 DFI_T_GEARDOWN_DELAY[4:0]: Delay from dfi_geardown_en assertion to the time of the PHY being ready to receive commands

Refer to Section 14: DDR physical interface control (DDRPHYC) for the correct value.

If the DDCRTL operates in 1:2 mode, set this bitfield to \((t_{geardown\_delay} / 2)\), and round it up to the next integer.

Unit: DFI clock cycles

Note: Programming mode: Static

13.7.56 DDRCTRL DFI status register (DDRCTRL_REGS_DFISTAT)

Address offset: 0x1BC

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.DFI_LP_ACKDFI_INIT_COMPLETE
rr

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

Bit 1 DFI_LP_ACK:

Stores the value of dfi_lp_ack input to the controller

Note: Programming mode: Dynamic

Bit 0 DFI_INIT_COMPLETE: Status flag that announces when DFI initialization is completed
The DFI INIT is triggered by dfi_init_start signal. This flag is polled to know when the initialization is done.

Note: Programming mode: Dynamic

13.7.57 DDRCTRL DM/DBI control register (DDRCTRL_REGS_DBICTL)

Address offset: 0x1C0

Reset value: 0x0000 0001

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.RD_DB
I_EN
WR_D
BI_EN
DM_EN
rwrwrw

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

Bit 2 RD_DB_I_EN: Read DBI enable signal in DDRC

This bit must be set at the same value as DRAM mode register.

Note: Programming mode: Quasi-dynamic Group 1

Bit 1 WR_DB_I_EN: Write DBI enable signal in DDRC

This bit must be set at the same value as DRAM mode register.

Note: Programming mode: Quasi-dynamic Group 1

Bit 0 DM_EN: DM enable signal in DDRC

This bit must be set at the same logical value as DRAM mode register.

Note: Programming mode: Static

13.7.58 DDRCTRL DFI PHY master register (DDRCTRL_REGS_DFIPHYMSTR)

Address offset: 0x1C4

Reset value: 0x8000 0001

31302928272625242322212019181716
DFI_PHYMSTR_BLK_REF_X32[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DFI_P
HYMST
R_EN
rw

Bits 31:24 DFI_PHYMSTR_BLK_REF_X32[7:0]: Maximum number of DFI clock cycles that are needed to send pending refreshes before starting SR entry process

This bitfield must be used at default value (0x80) unless Synopsys suggests to change it.

00000000: 0 DFI clock cycles (no delay)

00000001: 32 DFI clock cycles

...

11111111: 8160 DFI clock cycles

Unit: multiples of 32 DFI clock cycles

Note: Programming mode: Static

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

Bit 0 DFI_PHYMSTR_EN: PHY master interface enable

0: Disabled

1: Enabled

Note: Programming mode: Static

13.7.59 DDRCTRL address map 0 register (DDRCTRL_REGS_ADDRMAP0)

Address offset: 0x200

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.ADDRMAP_CS_BIT0[4:0]
rwrwrwrwrw

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

Bits 4:0 ADDRMAP_CS_BIT0[4:0]:

This bitfield selects the HIF address bit used as rank address bit 0.

Valid range: 0 to 29, and 31

Internal base: 6

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, this bitfield is set to 31: rank address bit 0 is set to 0.

Note: Programming mode: Static

13.7.60 DDRCTRL address map 1 register (DDRCTRL_REGS_ADDRMAP1)

Address offset: 0x204

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADDRMAP_BANK_B2[5:0]
rwrwrwrwrwrw
1514131211109876543210
Res.Res.ADDRMAP_BANK_B1[5:0]Res.Res.ADDRMAP_BANK_B0[5:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 21:16 ADDRMAP_BANK_B2[5:0]:

This bitfield selects the HIF address bit used as bank address bit 2.

Valid range: 0 to 31, and 63

Internal base: 4

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, this bitfield is set to 63: bank address bit 2 is set to 0.

Note: Programming mode: Static

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

Bits 13:8 ADDRMAP_BANK_B1[5:0]:

This bitfield selects the HIF address bits used as bank address bit 1.

Valid range: 0 to 32, and 63

Internal base: 3

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, this bitfield is set to 63: bank address bit 1 is set to 0.

Note: Programming mode: Static

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

Bits 5:0 ADDRMAP_BANK_B0[5:0]:

This bitfield selects the HIF address bits used as bank address bit 0.

Valid range: 0 to 32, and 63

Internal base: 2

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, this bitfield is set to 63: bank address bit 0 is set to 0.

Note: Programming mode: Static

13.7.61 DDRCTRL address map 2 register (DDRCTRL_REGS_ADDRMAP2)

Address offset: 0x208

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.ADDRMAP_COL_B5[3:0]Res.Res.Res.Res.ADDRMAP_COL_B4[3:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.ADDRMAP_COL_B3[4:0]Res.Res.Res.Res.ADDRMAP_COL_B2[3:0]
rwrwrwrwrwrwrwrwrw

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

Bits 27:24 ADDRMAP_COL_B5[3:0]:

Valid range: 0 to 7, and 15

Internal base: 5

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, this bitfield is set to 15: the column address bit is set to 0.

Note: Programming mode: Static

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

Bits 19:16 ADDRMAP_COL_B4[3:0]:

Valid range: 0 to 7, and 15

Internal base: 4

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, this bitfield is set to 15: the column address bit is set to 0.

Note: Programming mode: Static

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

Bits 12:8 ADDRMAP_COL_B3[4:0]:

Valid range: 0 to 7

Internal base: 3

The selected HIF address bit is determined by adding the internal base to this bitfield value.

Note: Programming mode: Static

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

Bits 3:0 ADDRMAP_COL_B2[3:0]:

Valid range: 0 to 7

Internal base: 2

The selected HIF address bit is determined by adding the internal base to this bitfield value.

Note: Programming mode: Static

13.7.62 DDRCTRL address map 3 register (DDRCTRL_REGS_ADDRMAP3)

Address offset: 0x20C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.ADDRMAP_COL_B9[4:0]Res.Res.Res.ADDRMAP_COL_B8[4:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.ADDRMAP_COL_B7[4:0]Res.Res.Res.ADDRMAP_COL_B6[4:0]
rwrwrwrwrwrwrwrwrwrw

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

Bits 28:24 ADDRMAP_COL_B9[4:0]:

Valid range: 0 to 7 and 31

Internal base: 9

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, set this bitfield to 31: the column address bit is set to 0.

Note: Programming mode: Static

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

Bits 20:16 ADDRMAP_COL_B8[4:0]:

Valid range: 0 to 7, and 31

Internal base: 8

The selected HIF address bit is determined by adding the internal base to this bitfield value.

Note: Programming mode: Static

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

Bits 12:8 ADDRMAP_COL_B7[4:0]:

Valid range: 0 to 7, and 31

Internal base: 7

The selected HIF address bit is determined by adding the internal base to this bitfield value.

Note: Programming mode: Static

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

Bits 4:0 ADDRMAP_COL_B6[4:0]:

Valid range: 0 to 7 and 31

Internal base: 6

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, set this bitfield to 31: the column address bit is set to 0.

Note: Programming mode: Static

13.7.63 DDRCTRL address map 4 register (DDRCTRL_REGS_ADDRMAP4)

Address offset: 0x210

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.ADDRMAP_COL_B11[4:0]Res.Res.Res.ADDRMAP_COL_B10[4:0]
rwrwrwrwrwrwrwrwrwrw

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

Bits 12:8 ADDRMAP_COL_B11[4:0]:

Valid range: 0 to 7 and 31

Internal base: 11

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, set this bitfield to 31: the column address bit is set to 0.

Note: Programming mode: Static

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

ST logo
ST logo

Bits 4:0 ADDRMAP_COL_B10[4:0]:

Note: Programming mode: Static

13.7.64 DDRCTRL address map 5 register (DDRCTRL_REGS_ADDRMAP5)

Address offset: 0x214

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.ADDRMAP_ROW_B11[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B2_10[3:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.ADDRMAP_ROW_B1[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B0[3:0]
rwrwrwrwrwrwrwrw

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

Bits 27:24 ADDRMAP_ROW_B11[3:0]:

Note: Programming mode: Static

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

Bits 19:16 ADDRMAP_ROW_B2_10[3:0]:

Note: Programming mode: Static

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

Bits 11:8 ADDRMAP_ROW_B1[3:0]:

This bitfield selects the HIF address bits used as row address bit 1.

Valid range: 0 to 11

Internal base: 7

The selected HIF address bit is determined by adding the internal base to this bitfield value.

Note: Programming mode: Static

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

Bits 3:0 ADDRMAP_ROW_B0[3:0]:

This bitfield selects the HIF address bits used as row address bit 0.

Valid range: 0 to 11

Internal base: 6

The selected HIF address bit is determined by adding the internal base to this bitfield value.

Note: Programming mode: Static

13.7.65 DDRCTRL address map 6 register (DDRCTRL_REGS_ADDRMAP6)

Address offset: 0x218

Reset value: 0x0000 0000

31302928272625242322212019181716
LPDDR34_3GB_6GB_12GB[2:0]Res.ADDRMAP_ROW_B15[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B14[3:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.ADDRMAP_ROW_B13[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B12[3:0]
rwrwrwrwrwrwrwrw

Bits 31:29 LPDDR34_3GB_6GB_12GB[2:0]: Density size/channel for LPDDR4 SDRAM device in use

When LPDDR4 device is used:

000: No LPDDR4 SDRAM 3-, 6, or 12-Gbyte device. All addresses are valid.

001: LPDDR4 SDRAM 3-Gbyte device with x16 mode. Every address having row[14:13] = 0b11 is considered as invalid.

010: LPDDR4 SDRAM 6-Gbyte device with x16 mode, or 3-Gbyte device with byte mode. Every address having row[15:14] = 0b11 is considered as invalid.

011: LPDDR4 SDRAM 12-Gbyte device with x16 mode, or 6-Gbyte device with byte mode. Every address having row[16:15] = 0b11 is considered as invalid.

101: LPDDR4 SDRAM 12-Gbyte device with byte mode. Every address having row[17:16] = 0b11 is considered as invalid.

Note: Programming mode: Static

Bit 28 Reserved, must be kept at reset value.

Bits 27:24 ADDRMAP_ROW_B15[3:0]:

This bitfield selects the HIF address bit used as row address bit 15.

Valid range: 0 to 11, and 15

Internal base: 21

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, set this bitfield to 15: the row address bit 15 is set to 0.

Note: Programming mode: Static

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

Bits 19:16 ADDRMAP_ROW_B14[3:0]:

This bitfield selects the HIF address bit used as row address bit 14.
Valid range: 0 to 11, and 15
Internal base: 20
The selected HIF address bit is determined by adding the internal base to this bitfield value.
If unused, set this bitfield to 15: the row address bit 14 is set to 0.

Note: Programming mode: Static

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

Bits 11:8 ADDRMAP_ROW_B13[3:0]:

This bitfield selects the HIF address bit used as row address bit 13.
Valid range: 0 to 11, and 15
Internal base: 19
The selected HIF address bit is determined by adding the internal base to this bitfield value.
If unused, set this bitfield to 15: the row address bit 13 is set to 0.

Note: Programming mode: Static

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

Bits 3:0 ADDRMAP_ROW_B12[3:0]:

This bitfield selects the HIF address bit used as row address bit 12
Valid range: 0 to 11, and 15
Internal base: 18
The selected HIF address bit is determined by adding the internal base to this bitfield value.
If unused, set this bitfield to 15: the row address bit 12 is set to 0.

Note: Programming mode: Static

13.7.66 DDRCTRL address map 7 register (DDRCTRL_REGS_ADDRMAP7)

Address offset: 0x21C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
ResResResResADDRMAP_ROW_B17[3:0]ResResResResADDRMAP_ROW_B16[3:0]
rwrwrwrwrwrwrwrw

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

Bits 11:8 ADDRMAP_ROW_B17[3:0]:

This bitfield selects the HIF address bit used as row address bit 17.
Valid range: 0 to 11, and 15
Internal base: 23
The selected HIF address bit is determined by adding the internal base to this bitfield value.
If unused, set this bitfield to 15: the row address bit 17 is set to 0 for DDR4, or set to 1 for LPDDR4 backward compatibility.

Note: Programming mode: Static

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

ST logo
ST logo

Bits 3:0 ADDRMAP_ROW_B16[3:0]:

This bitfield selects the HIF address bit used as row address bit 16.

Valid range: 0 to 11, and 15

Internal base: 22

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, set this bitfield to 15: the row address bit 16 is set to 0.

Note: Programming mode: Static

13.7.67 DDRCTRL address map 8 register (DDRCTRL_REGS_ADDRMAP8)

Address offset: 0x220

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.ADDRMAP_BG_B1[5:0]Res.Res.ADDRMAP_BG_B0[5:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 13:8 ADDRMAP_BG_B1[5:0]:

This bitfield selects the HIF address bits used as bank group address bit 1.

Valid range: 0 to 32, and 63

Internal base: 3

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, set this bitfield to 63: the bank group address bit 1 is set to 0.

Note: Programming mode: Static

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

Bits 5:0 ADDRMAP_BG_B0[5:0]:

This bitfield selects the HIF address bits used as bank group address bit 0

Valid range: 0 to 32, and 63

Internal base: 2

The selected HIF address bit is determined by adding the internal base to this bitfield value.

If unused, set this bitfield to 63: the bank group address bit 0 is set to 0.

Note: Programming mode: Static

13.7.68 DDRCTRL address map 9 register (DDRCTRL_REGS_ADDRMAP9)

Address offset: 0x224

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.ADDRMAP_ROW_B5[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B4[3:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.ADDRMAP_ROW_B3[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B2[3:0]
rwrwrwrwrwrwrwrw
ST logo
ST logo

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

Bits 27:24 ADDRMAP_ROW_B5[3:0]:

This bitfield selects the HIF address bits used as row address bit 5.

Valid range: 0 to 11

Internal base: 11

The selected HIF address bit is determined by adding the internal base to this bitfield value.

This bitfield is used only when ADDRMAP_ROW_B2_10 = 15
in DDRCTRL_REGS_ADDRMAP5.

Note: Programming mode: Static

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

Bits 19:16 ADDRMAP_ROW_B4[3:0]:

This bitfield selects the HIF address bits used as row address bit 4

Valid range: 0 to 11

Internal base: 10

The selected HIF address bit is determined by adding the internal base to this bitfield value.

This bitfield is used only when ADDRMAP_ROW_B2_10 = 15
in DDRCTRL_REGS_ADDRMAP5.

Note: Programming mode: Static

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

Bits 11:8 ADDRMAP_ROW_B3[3:0]:

This bitfield selects the HIF address bits used as row address bit 3

Valid range: 0 to 11

Internal base: 9

The selected HIF address bit is determined by adding the internal base to this bitfield value.

This bitfield is used only when ADDRMAP_ROW_B2_10 = 15
in DDRCTRL_REGS_ADDRMAP5.

Note: Programming mode: Static

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

Bits 3:0 ADDRMAP_ROW_B2[3:0]:

This bitfield selects the HIF address bits used as row address bit 2

Valid range: 0 to 11

Internal base: 8

The selected HIF address bit is determined by adding the internal base to this bitfield value.

This bitfield is used only when ADDRMAP_ROW_B2_10 = 15
in DDRCTRL_REGS_ADDRMAP5.

Note: Programming mode: Static

13.7.69 DDRCTRL address map 10 register (DDRCTRL_REGS_ADDRMAP10)

Address offset: 0x228

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.ADDRMAP_ROW_B9[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B8[3:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.ADDRMAP_ROW_B7[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B6[3:0]
rwrwrwrwrwrwrwrw

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

Bits 27:24 ADDRMAP_ROW_B9[3:0]:

This bitfield selects the HIF address bits used as row address bit 9

Valid range: 0 to 11

Internal base: 15

The selected HIF address bit is determined by adding the internal base to this bitfield value.

This bitfield is used only when ADDRMAP_ROW_B2_10 = 15

in DDRCTRL_REGS_ADDRMAP5.

Note: Programming mode: Static

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

Bits 19:16 ADDRMAP_ROW_B8[3:0]:

This bitfield selects the HIF address bits used as row address bit 8

Valid range: 0 to 11

Internal base: 14

The selected HIF address bit is determined by adding the internal base to this bitfield value.

This bitfield is used only when ADDRMAP_ROW_B2_10 = 15

in DDRCTRL_REGS_ADDRMAP5.

Note: Programming mode: Static

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

Bits 11:8 ADDRMAP_ROW_B7[3:0]:

This bitfield selects the HIF address bits used as row address bit 7

Valid range: 0 to 11

Internal base: 13

The selected HIF address bit is determined by adding the internal base to this bitfield value.

This bitfield is used only when ADDRMAP_ROW_B2_10 = 15

in DDRCTRL_REGS_ADDRMAP5.

Note: Programming mode: Static

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

Bits 3:0 ADDRMAP_ROW_B6[3:0]:

This bitfield selects the HIF address bits used as row address bit 6
Valid range: 0 to 11
Internal base: 12
The selected HIF address bit is determined by adding the internal base to this bitfield value.
This bitfield is used only when ADDRMAP_ROW_B2_10 = 15
in DDRCTRL_REGS_ADDRMAP5.

Note: Programming mode: Static

13.7.70 DDRCTRL address map 11 register (DDRCTRL_REGS_ADDRMAP11)

Address offset: 0x22C

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.ADDRMAP_ROW_B10[3:0]
rwrwrwrw

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

Bits 3:0 ADDRMAP_ROW_B10[3:0]:

This bitfield selects the HIF address bits used as row address bit 10
Valid range: 0 to 11
Internal base: 16
The selected HIF address bit is determined by adding the internal base to this bitfield value.
This bitfield is used only when ADDRMAP_ROW_B2_10 = 15
in DDRCTRL_REGS_ADDRMAP5.

Note: Programming mode: Static

13.7.71 DDRCTRL ODT configuration register (DDRCTRL_REGS_ODTCFG)

Address offset: 0x240

Reset value: 0x0400 0400

31302928272625242322212019181716
Res.Res.Res.Res.WR_ODT_HOLD[3:0]Res.Res.Res.WR_ODT_DELAY[4:0]
rwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.RD_ODT_HOLD[3:0]Res.RD_ODT_DELAY[4:0]Res.Res.
rwrwrwrwrwrwrwrwrw

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

ST logo
ST logo

13.7.72 DDRCTRL ODT/rank map register (DDRCTRL_REGS_ODTMAP)

Address offset: 0x244

Reset value: 0x0000 2211

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.RANK1_RD_ODT[1:0]Res.Res.RANK1_WR_ODT[1:0]Res.Res.RANK0_RD_ODT[1:0]Res.Res.RANK0_WR_ODT[1:0]
rwrwrwrwrwrwrwrw

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

Bits 13:12 RANK1_RD_ODT[1:0]: Remote ODTs to turn on during a read from rank 1

Each rank has a remote ODT (in the SDRAM), which can be turned on by setting the appropriate bit in this bitfield.

Rank 0 is controlled by the LSB. Rank 1 is controlled by the MSB.

For each rank, set its bit to 1 to enable its ODT.

Note: Programming mode: Static.

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

Bits 9:8 RANK1_WR_ODT[1:0]: Remote ODTs to turn on during a write to rank 1

Each rank has a remote ODT (in the SDRAM), which can be turned on by setting the appropriate bit in this bitfield.

Rank 0 is controlled by the LSB; rank 1 is controlled by bit next to the LSB, and so on.

For each rank, set its bit to 1 to enable its ODT.

Note: Programming mode: Static.

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

Bits 5:4 RANK0_RD_ODT[1:0]: Remote ODTs to turn on during a read from rank 0

Each rank has a remote ODT (in the SDRAM), which can be turned on by setting the appropriate bit in this bitfield.

Rank 0 is controlled by the LSB; rank 1 is controlled by bit next to the LSB, and so on.

For each rank, set its bit to 1 to enable its ODT.

Note: Programming mode: Static.

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

Bits 1:0 RANK0_WR_ODT[1:0]: Remote ODTs to turn on during a write to rank 0

Each rank has a remote ODT (in the SDRAM), which can be turned on by setting the appropriate bit in this bitfield.

Rank 0 is controlled by the LSB; rank 1 is controlled by bit next to the LSB, and so on.

For each rank, set its bit to 1 to enable its ODT.

Note: Programming mode: Static.

13.7.73 DDRCTRL scheduler control register (DDRCTRL_REGS_SCHED)

Address offset: 0x250

Reset value: 0x8000 101C

31302928272625242322212019181716
OPT_VPRW_SCHRDWR_IDLE_GAP[6:0]GO2CRITICAL_HYSTERESIS[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
LPDDR4_OPT_ACT_TIMINGRes.Res.LPR_NUM_ENTRIES[4:0]AUTOPRE_RMWRes.Res.OPT_WRCAM_FILL_LEVELRDWR_SWITCH_POLICY_SELPAGECLOSEPREFER_WRITERes.
rwrwrwrwrwrwrwrwrwrwrw

Bit 31 OPT_VPRW_SCH: Optimize exVPR/exVPW scheduling.
Program to 1 can improve utilization as other traffic class can utilize bandwidth while pages for exVPR/exVPW are being prepared or ranks/banks for exVPR/exVPW are being refreshed, but it can delay execution of exVPR/exVPW due to delay of Activate by read/write command of other traffic class.
Programming Mode: Static.
0: When any exVPR/exVPW are pending on CAM, read/write command of all other traffic class are masked to be scheduled
1: When any exVPR/exVPW are pending as page-hit, read/write command of all other traffic class are masked to be scheduled.

Note: Programming mode: Static.

Bits 30:24 RDWR_IDLE_GAP[6:0]:
When the preferred transaction store is empty for these many clock cycles, switch to the alternate transaction store if it is non-empty.
The read transaction store (both high and low priority) is the default preferred transaction store. The write transaction store is the alternative store. When prefer write over read is set, this is reversed.
0x0: The transaction store switching happens immediately when the switching conditions become true.
Unit: DFI clock cycles

Note: Programming mode: Static.

Bits 23:16 GO2CRITICAL_HYSTERESIS[7:0]: Not used
Note: Programming mode: Static.

Bit 15 LPDDR4_OPT_ACT_TIMING: Optimized ACT timing control for LPDDR4
In LPDDR4, RD/WR/ACT takes 4 cycles. To stream read/write, there is only a 4-cycle space between reads and writes.
If ACT is scheduled out after RD/WR with 1-, 2-, or 3-cycle gap, the next RD/WR may be pushed by 1, 2, or 3 cycles, and create a gap on DQ.
When this bit is set, ACT is not scheduled out with the 1-, 2-, and 3-cycle gap.
If enabled, there may be performance impact especially for random traffic (latency/utilization).
1: Enable this feature.
0: Disable this feature.
This bit is ignored when LPDDR4 = 0 in DDRCTRL_REGS_MSTR.

Note: Programming mode: Static.

ST logo
ST logo

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

Bits 12:8 LPR_NUM_ENTRIES[4:0]: Number of entries in the low-priority transaction store
This bitfield value + 1 gives the number of entries in the low-priority transaction store.
(1 - this bitfield) is the number of entries available in the high-priority transaction store.
Setting this bitfield to the maximum value allocates all entries to the low-priority transaction store. Setting this bitfield to 0 allocates one entry to the low-priority transaction store, and the rest to the high-priority transaction store.

Note: Programming mode: Static.

Bit 7 AUTOPRE_RMW: Selection of the hif_cmd_autopre behavior if a RMW is received on HIF with hif_cmd_autopre = 1

Note: Programming mode: Static.

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

Bit 4 OPT_WRCAM_FILL_LEVEL: Enable the feature of optimized write CAM fill level by switching to write when write CAM reaches certain fill level set in DDRCTRL_REGS_SCHED3.WRCAM_HIGHTHRESH.

When it is enabled, write starvation timer and write transaction counter automatically are not used. They are only active when the feature is disabled.

If RDWR_SWITCH_POLICY_SEL = 0, this register is ignored.

Note: Programming mode: Static.

Bit 3 RDWR_SWITCH_POLICY_SEL: Selects read write switching policy.

Note: Programming mode: Static.

Bit 2 PAGECLOSE:

1: The bank is kept open only while there are page hit transactions available in the CAM to this bank. The last read or write command in the CAM with a bank and page hit is executed with auto-precharge if PAGECLOSE_TIMER = 0 in DDRCTRL_REGS_SCHED1.

Even if this bit is set to 1 and PAGECLOSE_TIMER = 0, an explicit precharge (and not auto-precharge) may be issued in some cases where there is a mode switch between write and read, or between LPR and HPR.

0: The bank remains open until there is a need to close it (to open a different page, or for page timeout or refresh timeout). This is also known as open-page policy, which can be overridden by setting the per-command-autopre bit on the HIF interface (hif_cmd_autopre).

This provides a midway between open- and close-page policies.

Note: Programming mode: Quasi-dynamic Group 3.

Bit 1 PREFER_WRITE:

If this bit is set, the bank selector prefers writes over reads. For debug purpose only.

Note: Programming mode: Static.

Bit 0 Reserved, must be kept at reset value.

13.7.74 DDRCTRL scheduler control 1 register (DDRCTRL_REGS_SCHED1)

Address offset: 0x254

Reset value: 0x0000 2000

31302928272625242322212019181716
OPT_HIT_GT_HPRPAGE_HIT_LIMIT_RD[2:0]Res.PAGE_HIT_LIMIT_WR[2:0]Res.VISIBLE_WINDOW_LIMIT_RD[2:0]Res.VISIBLE_WINDOW_LIMIT_WR[2:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DELAY_SWITCH_WRITE[3:0]Res.Res.Res.Res.PAGECLOSE_TIMER[7:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 OPT_HIT_GT_HPR: Optimize the priority between page-hit LPR and page-miss HPR.
This is to choose trade-off between HPR latency and total utilization.
0: Page-miss HPR has priority (default). HPR latency can be better than 1 because HPR has priority over LPR.
1: Page-hit LPR has priority. DRAM utilization can be better than 0 because number of ACT-PRE is reduced.
It is recommended to enable page-hit limiter so that once page-hit limiter is expired, HPR can have priority.
Note: Programming mode: Static.

Bits 30:28 PAGE_HIT_LIMIT_RD[2:0]: Page-hit limiter for read.
When certain number of read commands are scheduled out without ACT for a bank (schedule page-hit commands), all entries belonging to the bank priority are increased equal to page-hit entry even if these are page-miss so that oldest entry belonging to the bank can be served regardless of page-hit/page-miss.
The priority is reset once any ACT/PRE/AP is served to the bank.
0x0: Disable this feature
0x1: 4
0x2: 8
0x3: 16
0x4: 32
Other: Reserved
Note: Programming mode: Static.

Bit 27 Reserved, must be kept at reset value.

ST logo
ST logo

Bits 26:24 PAGE_HIT_LIMIT_WR[2:0]: Page-hit limiter for write.

When certain number of write commands are scheduled out without ACT for a bank (schedule page-hit commands), all entries belonging to the bank priority are increased equal to page-hit entry even if these are page-miss so that oldest entry belonging to the bank can be served regardless of page-hit/page-miss.

The priority is reset once any ACT/PRE/AP is served to the bank.

0x0: Disable this feature

0x1: 4

0x2: 8

0x3: 16

0x4: 32

Others: Reserved

Note: Programming mode: Static.

Bit 23 Reserved, must be kept at reset value.

Bits 22:20 VISIBLE_WINDOW_LIMIT_RD[2:0]: Visible window limiter for read.

This is to prevent extreme starvation against other entries within a CAM.

Each read CAM entry has a counter, it is set to the value programmed in this register when command is pushed and is counted-down when newer read CAM entry is scheduled-out.

The counter represents starvation within RD CAM in terms of number of commands to be over taken.

When the counter reaches 0, the entry becomes expired-VPR to eliminate more starvation.

0x0: Disable this feature

0x1: 31

0x2: 63

0x3: 127

0x4: 255

Others: Reserved

Note: Programming mode: Static.

Bit 19 Reserved, must be kept at reset value.

Bits 18:16 VISIBLE_WINDOW_LIMIT_WR[2:0]: Visible window limiter for write.

This is to prevent extreme starvation against other entries within a CAM.

Each write CAM entry has a counter, it is set to the value programmed in this register when command is pushed and is counted-down when newer write CAM entry is scheduled-out.

The counter represents starvation within WR CAM in terms of number of commands to be over taken.

When the counter reaches 0, the entry becomes expired-VPW to eliminate more starvation.

0x0: Disable this feature

0x1: 31

0x2: 63

0x3: 127

0x4: 255

Others: Reserved

Note: Programming mode: Static.

Bits 15:12 DELAY_SWITCH_WRITE[3:0]: Indicates the number of cycles to delay switching read to write mode when write page-hit request is there and no read page-hit request is there.
Setting higher value may reduce number of read to write switching but increase read to write turn-around time.
The register indicates the number of cycles.
0: no delay
1: 2 cycles delay
2: 4 cycles delay
3: 6 cycles delay
4: 8 cycles delay
...
15: 30 cycles delay
If RDWR_SWITCH_POLICY_SEL = 0, this register is ignored.
Note: Programming mode: Static.

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

Bits 7:0 PAGECLOSE_TIMER[7:0]:
This bitfield works in conjunction with PAGECLOSE in DDCRTL_REGS_SCHED. It has meaning only if PAGECLOSE = 1.
0: An auto-precharge can be scheduled for last read or write command in the CAM with a bank and page hit. Sometimes an explicit precharge is scheduled instead of the auto-precharge (see PAGECLOSE description for more details).
> 0: An auto-precharge is not scheduled for last read or write command in the CAM with a bank and page hit. A timer is started instead, with this bitfield as initial value. There is a timer on a per bank basis. This timer decrements unless the next read or write in the CAM to a bank is a page hit. It gets reset to this bitfield value if the next read or write in the CAM to a bank is a page hit. Once the timer reached zero, an explicit precharge is attempted to be scheduled.
Unit: DFI clock cycles
Note: Programming mode: Static.

13.7.75 DDCRTL high priority read CAM 1 register (DDRCTRL_REGS_PERFHPR1)

Address offset: 0x25C

Reset value: 0x0F00 0001

31302928272625242322212019181716
HPR_XACT_RUN_LENGTH[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrw
1514131211109876543210
HPR_MAX_STARVE[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 HPR_XACT_RUN_LENGTH[7:0]: Transactions serviced once HPR queue goes critical
This bitfield is the smaller of this number and the number of transactions available.
Unit: transaction
Note: Programming mode: Quasi-dynamic Group 3.

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

ST logo
ST logo

Bits 15:0 LPR_MAX_STARVE[15:0]: DFI clocks that HPR queue can be starved before it goes critical
The minimum valid functional value for this bitfield is 0x1. Programming it to 0x0 disables the starvation functionality.
During normal operation, this function must not be disabled as it causes excessive latencies.
Unit: DFI clock cycles
Note: Programming mode: Quasi-dynamic Group 3.

13.7.76 DDRCTRL low-priority read CAM 1 register (DDRCTRL_REGS_PERFLPR1)

Address offset: 0x264

Reset value: 0x0F00 007F

31302928272625242322212019181716
LPR_XACT_RUN_LENGTH[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrw
1514131211109876543210
LPR_MAX_STARVE[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 LPR_XACT_RUN_LENGTH[7:0]: Transactions serviced once LPR queue goes critical
This bitfield is the smaller of this number and the number of transactions available.
Unit: transaction
Note: Programming mode: Quasi-dynamic Group 3.

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

Bits 15:0 LPR_MAX_STARVE[15:0]: DFI clocks that LPR queue can be starved before it goes critical
The minimum valid functional value for this bitfield is 0x1. Programming it to 0x0 disables the starvation functionality.
During normal operation, this function must not be disabled as it causes excessive latencies.
Unit: DFI clock cycles
Note: Programming mode: Quasi-dynamic Group 3.

13.7.77 DDRCTRL write CAM 1 register (DDRCTRL_REGS_PERFWR1)

Address offset: 0x26C

Reset value: 0x0F00 007F

31302928272625242322212019181716
W_XACT_RUN_LENGTH[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrw
1514131211109876543210
W_MAX_STARVE[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 W_XACT_RUN_LENGTH[7:0]: Transactions serviced once the WR queue goes critical
This bitfield is the smaller of this number and the number of transactions available.
Unit: transaction
Note: Programming mode: Quasi-dynamic Group 3.

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

Bits 15:0 W_MAX_STARVE[15:0]: DFI clocks that the WR queue can be starved before it goes critical
The minimum valid functional value for this bitfield is 0x1. Programming it to 0x0 disables the starvation functionality.
During normal operation, this function must not be disabled as it causes excessive latencies.
Unit: DFI clock cycles
Note: Programming mode: Quasi-dynamic Group 3.

13.7.78 Scheduler control 3 register (DDRCTRL_REGS_SCHED3)

Address offset: 0x270

Reset value: 0x0404 0208

31302928272625242322212019181716
Res.Res.Res.RD_PGHIT_NUM_THRESH[4:0]Res.Res.Res.WR_PGHIT_NUM_THRESH[4:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.WRCAM_HIGHTHRESH[4:0]Res.Res.Res.WRCAM_LOWTHRESH[4:0]
rwrwrwrwrwrwrwrwrwrw

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

Bits 28:24 RD_PGHIT_NUM_THRESH[4:0]: Switch to read mode once number of read page-hit request exceeds the threshold set in the register during waiting \(t_{W2R}\).
Setting to 0 disables the feature.
If RDWR_SWITCH_POLICY_SEL = 0, this register is ignored.
Note: Programming mode: Static.

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

Bits 20:16 WR_PGHIT_NUM_THRESH[4:0]: Switch to write mode once number of write page-hit request exceeds threshold set in this register during waiting delay_switch_write timeout.
Setting to 0 disables the feature.
If RDWR_SWITCH_POLICY_SEL = 0, this register is ignored.
Note: Programming mode: Static.

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

Bits 12:8 WRCAM_HIGHTHRESH[4:0]: The high threshold used in optimized write CAM fill level.
When (MEMC_NO_OF_ENTRY - (number of loaded entries) < wrcam_highthresh), switch to write mode and prepare banks for write direction if no Exp-VPR or read collision is there.
wrcam_highthresh must be set to a smaller value than wrcam_lowthresh.
This feature is enabled when opt_wrcam_fill_level is 1.
Note: Programming mode: Static.

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

Bits 4:0 WRCAM_LOWTHRESH[4:0]: The low threshold used in optimized write CAM fill level.

When (MEMC_NO_OF_ENTRY - (number of loaded entries) < wrcam_lowthresh), keep to write mode and stop to prepare banks for read direction if no Exp-VPR or read collision is there.

This feature is enabled when opt_wrcam_fill_level is 1.

Note: Programming mode: Static.

13.7.79 Scheduler control 4 register (DDRCTRL_REGS_SCHED4)

Address offset: 0x274

Reset value: 0x0840 0810

31302928272625242322212019181716
WR_PAGE_EXP_CYCLES[7:0]RD_PAGE_EXP_CYCLES[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
WR_ACT_IDLE_GAP[7:0]RD_ACT_IDLE_GAP[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 WR_PAGE_EXP_CYCLES[7:0]: Indicates the number of cycles to keep the bank opened for write direction in read mode when both directions has request to the bank.

The register indicates the number of cycle.

If RDWR_SWITCH_POLICY_SEL = 0, this register is ignored.

Note: Programming mode: Static.

Bits 23:16 RD_PAGE_EXP_CYCLES[7:0]: Indicates the number of cycles to keep the bank opened for read direction in write mode when both directions has request to the bank.

The register indicates the number of cycle.

If RDWR_SWITCH_POLICY_SEL = 0, this register is ignored.

Note: Programming mode: Static.

Bits 15:8 WR_ACT_IDLE_GAP[7:0]: Indicates the number of cycles when write direction has no request to start preparing bank for read direction.

The register indicates the number of cycle.

If RDWR_SWITCH_POLICY_SEL = 0, this register is ignored.

Note: Programming mode: Static.

Bits 7:0 RD_ACT_IDLE_GAP[7:0]: Indicates the number of cycles when read direction has no request to start preparing bank for write direction.

The register indicates the number of cycle.

If RDWR_SWITCH_POLICY_SEL = 0, this register is ignored.

Note: Programming mode: Static.

13.7.80 DDRCTRL debug 0 register (DDRCTRL_REGS_DBG0)

Address offset: 0x300

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.DIS_M
AX_RA
NK_W
R_OPT
DIS_M
AX_RA
NK_RD
_OPT
Res.DIS_C
OLLISI
ON_PA
GE_OP
T
Res.DIS_A
CT_BY
PASS
DIS_R
D_BYP
ASS
DIS_W
C
rwrwrwrwrwrw

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

Bit 7 DIS_MAX_RANK_WR_OPT: Disable optimized max_rank_wr and max_logical_rank_wr
This bit is for debug purpose only. For normal operation, this bit must be set to 0.
Note: Programming mode: Static.

Bit 6 DIS_MAX_RANK_RD_OPT: Disable optimized max_rank_rd and max_logical_rank_rd .
This bit is for debug purpose only. For normal operation, this bit must be set to 0.
Note: Programming mode: Static.

Bit 5 Reserved, must be kept at reset value.

Bit 4 DIS_COLLISION_PAGE_OPT:
0: The auto-precharge is disabled for the flushed command in a collision case.
Collision cases are write followed by read to the same address, read followed by write to the same address, or write followed by write to same address with DIS_WC = 1 in this register (where same address comparisons exclude the two address bits representing critical word).
For debug purpose only.
Note: Programming mode: Static.

Bit 3 Reserved, must be kept at reset value.

Bit 2 DIS_ACT_BYPASS:
Only present in designs supporting activate bypass.
1: Disable bypass path for high-priority read activates.
For debug purpose only.
Note: Programming mode: Static.

Bit 1 DIS_RD_BYPASS:
Only present in designs supporting read bypass.
1: Disable bypass path for high-priority read page hits.
For debug purpose only.
Note: Programming mode: Static.

Bit 0 DIS_WC:
1: Disable write combine.
For debug purpose only.
Note: Programming mode: Static.

13.7.81 DDRCTRL debug 1 register (DDRCTRL_REGS_DBG1)

Address offset: 0x304

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.DIS_HIFDIS_DQ
rwrw

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

Bit 1 DIS_HIF:

1: DDRCTRL asserts the HIF command signal hif_cmd_stall. The DDRCTRL ignores hif_cmd_valid and all other associated request signals.
This bit is intended to be switched on-the-fly.

Note: Programming mode: Dynamic.

Bit 0 DIS_DQ:

1: DDRCTRL does not dequeue any transaction from the CAM. Bypass is also disabled. All transactions are queued in the CAM. No reads or writes are issued to SDRAM as long as this bit is asserted.
This bit can be used to prevent reads or writes being issued by the DDRCTRL, which makes it safe to modify some fields associated with reads/writes.
After setting this bit, it is strongly recommended to poll WR_DATA_PIPELINE_EMPTY and RD_DATA_PIPELINE_EMPTY in DDRCCTRL_REGS_DBGCAM, before making changes to any register which affect reads and writes. This ensures that the relevant logic in the DDRC is idle. This bit is intended to be switched on-the-fly.

Note: Programming mode: Dynamic.

13.7.82 DDRCTRL CAM debug register (DDRCTRL_REGS_DBGCAM)

Address offset: 0x308

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.WR_DATA_PIPELINE_EMPTYRD_DATA_PIPELINE_EMPTYRes.DBG_WR_Q_EMPTYDBG_RD_Q_EMPTYDBG_STALLRes.Res.DBG_W_Q_DEPTH[5:0]
rrrrrrrrrrr
1514131211109876543210
Res.Res.DBG_LPR_Q_DEPTH[5:0]Res.Res.DBG_HPR_Q_DEPTH[5:0]
rrrrrrrrrrrr

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

ST logo
ST logo

13.7.83 DDRCTRL command debug register (DDRCTRL_REGS_DBGCMD)

Address offset: 0x30C

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.CTRLU
PD
ZQ_CA
LIB_SH
ORT
Res.Res.RANK1
_REFR
ESH
RANK0
_REFR
ESH
rsrsrsrs

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

Bit 5 CTRLUPD: dfi_ctrlupd_req to the PHY

1: The DDCRTL issues a dfi_ctrlupd_req to the PHY. When this request is stored in the DDCRTL, this bit is automatically cleared. This operation must only be performed when DIS_AUTO_CTRLUPD = 1 in DDCRTL_REGS_DFIUPD0.

Note: Programming mode: Dynamic.

Bit 4 ZQ_CALIB_SHORT: ZQCS/MPC command to the SDRAM

1: The DDCRTL issues a ZQCS (ZQ calibration short)/MPC (ZQ calibration) command to the SDRAM. When this request is stored in the DDCRTL, the bit is automatically cleared. This operation can be performed only when DIS_AUTO_ZQ = 1 in DDCRTL_REGS_ZQCTL0.
It is recommended NOT to set this bit if in Init, in SR (except LPDDR4), or SRPD (LPDDR4).
For SR (except LPDDR4) or SRPD (LPDDR4), ZQCS is scheduled after SR (except LPDDR4) or SPRD (LPDDR4) has been exited.

Note: Programming mode: Dynamic.

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

Bit 1 RANK1_REFRESH: Refresh to rank 1

1: The DDCRTL issues a refresh to rank 1.
Writing to this bit causes RANK1_REFRESH_BUSY to be set in DDCRTL_REGS_DBGSTAT. When RANK1_REFRESH_BUSY is cleared, the command has been stored in the DDCRTL.
For 3DS configuration, refresh is sent to rank index 1.
This operation can be performed only when DIS_AUTO_REFRESH = 1 in DDCRTL_REGS_RFSHCTL3.
It is recommended NOT to set this bit if in Init mode.

Note: Programming mode: Dynamic.

Bit 0 RANK0_REFRESH: Refresh to rank 0

1: The DDCRTL issues a refresh to rank 0.
Writing to this bit causes RANK0_REFRESH_BUSY to be set in DDCRTL_REGS_DBGSTAT. When RANK0_REFRESH_BUSY is cleared, the command has been stored in the DDCRTL.
For 3DS configuration, refresh is sent to rank index 1.
This operation can be performed only when DIS_AUTO_REFRESH = 1 in DDCRTL_REGS_RFSHCTL3.
It is recommended NOT to set this bit if in Init mode.

Note: Programming mode: Dynamic.

13.7.84 DDRCTRL status debug register (DDRCTRL_REGS_DBGSTAT)

Address offset: 0x310

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.CTRLU
PD_BU
SY
ZQ_CA
LIB_SH
ORT_B
USY
Res.Res.RANK1
_REFR
ESH_B
USY
RANK0
_REFR
ESH_B
USY
rrrr

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

Bit 5 CTRLUPD_BUSY: CTRLUPD operation

The device can initiate a CTRLUPD operation only if this bit is low. This bit goes high in the clock after the DDRCTRL accepts the CTRLUPD request. It goes low when the CTRLUPD operation is initiated in the DDRCTRL.
It is recommended NOT to perform CTRLUPD operations when this bit is high.
0: The device can initiate a CTRLUPD operation.
1: No CTRLUPD operation has been initiated yet in the DDRCTRL.

Note: Programming mode: Dynamic.

Bit 4 ZQ_CALIB_SHORT_BUSY: ZQCS operation

The device can initiate a ZQCS (ZQ calibration short) operation only if this bit is low. This bit goes high in the clock after the DDRCTRL accepts the ZQCS request. It goes low when the ZQCS operation is initiated in the DDRCTRL.
It is recommended NOT to perform ZQCS operations when this bit is high.
0: The device can initiate a ZQCS operation.
1: No ZQCS operation has been initiated yet in the DDRCTRL.

Note: Programming mode: Dynamic.

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

Bit 1 RANK1_REFRESH_BUSY: rank1_refresh operation

The device can initiate a rank1_refresh operation (refresh operation to rank 1) only if this bit is low. This bit goes high in the clock after RANK1_REFRESH is set in DDRCTRL_REGS_DBGCMD. It goes low when rank1_refresh operation is stored in the DDRCTRL.
It is recommended NOT to perform rank1_refresh operations when this bit is high.
0: The device can initiate a rank1_refresh operation.
1: No rank1_refresh operation has been stored yet in the DDRCTRL.

Note: Programming mode: Dynamic.

Bit 0 RANK0_REFRESH_BUSY: rank0_refresh operation

The device can initiate a rank0_refresh operation (refresh operation to rank 1) only if this bit is low. This bit goes high in the clock after RANK0_REFRESH is set in DDRACTRL_REGS_DBGCMD. It goes low when rank0_refresh operation is stored in the DDRACTRL.

It is recommended NOT to perform rank1_refresh operations when this bit is high.

0: The device can initiate a rank0_refresh operation.

1: No rank0_refresh operation has been stored yet in the DDRACTRL.

Note: Programming mode: Dynamic.

13.7.85 DDRACTRL software programming control enable register (DDRACTRL_REGS_SWCTL)

Address offset: 0x320

Reset value: 0x0000 0001

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.SW_D
ONE
rw

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

Bit 0 SW_DONE: Enable quasi-dynamic register programming outside reset

0: Quasi-dynamic programming enabled. Set back this bit to 1 once programming is done.

Note: Programming mode: Dynamic.

13.7.86 DDRACTRL software programming control status register (DDRACTRL_REGS_SWSTAT)

Address offset: 0x324

Reset value: 0x0000 0001

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.SW_D
ONE_A
CK
r

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

Bit 0 SW_DONE_ACK: Register programming done

This bit is the echo of SW_DONE in DDRCTRL_REGS_SWCTL.

Wait for SW_DONE = 1 to propagate to SW_DONE_ACK at the end of the programming sequence. This ensures that the correct register values are propagated to the destination clock domains.

Note: Programming mode: Static.

13.7.87 DDRCTRL statics write enable register (DDRCTRL_REGS_SWCTLSTATIC)

Address offset: 0x328

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.SW_STATIC_UNLOCK
rw

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

Bit 0 SW_STATIC_UNLOCK: Enables static register programming outside reset

1: Static register programming enabled. Set this bit back to 0 once programming is done.

Note: Programming mode: Dynamic.

13.7.88 DDRCTRL AXI poison configuration register (DDRCTRL_REGS_POISONCFG)

Address offset: 0x36C

Reset value: 0x0011 0011

This register is common to all AXI ports.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.RD_POISON_INTR_CLRRes.Res.Res.RD_POISON_INTR_ENRes.Res.Res.RD_POISON_SLVERR_EN
rc_w1rwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.WR_POISON_INTR_CLRRes.Res.Res.WR_POISON_INTR_ENRes.Res.Res.WR_POISON_SLVERR_EN
rc_w1rwrw

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

13.7.89 DDRCTRL AXI poison status register (DDRCTRL_REGS_POISONSTAT)

Address offset: 0x370

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RD_POISON_INTR_1RD_POISON_INTR_0
rr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WR_POISON_INTR_1WR_POISON_INTR_0
rr

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

ST logo
ST logo

Bit 17 RD_POISON_INTR_1: Read transaction poisoning error interrupt for port 1
This bit is an APB clock copy (double register synchronizer) of the interrupt asserted when a transaction is poisoned on the corresponding AXI port read address channel.
The interrupt is cleared by RD_POISON_INTR_CLR in DDRCTRL_REGS_POISONCFG, then the value is propagated to the APB clock.

Note: Programming mode: Dynamic.

Bit 16 RD_POISON_INTR_0: Read transaction poisoning error interrupt for port 0
This bit is an APB clock copy (double register synchronizer) of the interrupt asserted when a transaction is poisoned on the corresponding AXI port read address channel.
The interrupt is cleared by RD_POISON_INTR_CLR in DDRCTRL_REGS_POISONCFG, then the value is propagated to the APB clock.

Note: Programming mode: Dynamic.

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

Bit 1 WR_POISON_INTR_1: Write transaction poisoning error interrupt for port 1
This bit is an APB clock copy (double register synchronizer) of the interrupt asserted when a transaction is poisoned on the corresponding AXI port read address channel.
The interrupt is cleared by WR_POISON_INTR_CLR in DDRCTRL_REGS_POISONCFG, then the value is propagated to the APB clock.

Note: Programming mode: Dynamic.

Bit 0 WR_POISON_INTR_0: Write transaction poisoning error interrupt for port 0
This bit is an APB clock copy (double register synchronizer) of the interrupt asserted when a transaction is poisoned on the corresponding AXI port read address channel.
The interrupt is cleared by WR_POISON_INTR_CLR in DDRCTRL_REGS_POISONCFG, then the value is propagated to the APB clock.

Note: Programming mode: Dynamic.

13.7.90 DDRCTRL temperature derate status register (DDRCTRL_REGS_DERATESTAT)

Address offset: 0x3F0

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.DERATE_TEMP_LIMIT_INTR
r

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

Bit 0 DERATE_TEMP_LIMIT_INTR: Derate temperature interrupt
This bit indicates that the LPDDR4 SDRAM temperature operating limit is exceeded. It is set to 1 when the value read from MR4[2:0] is 0b000 or 0b111. This bit is cleared by DERATE_TEMP_LIMIT_INTR_CLR in DDRCTRL_REGS_DERATECTL.

Note: Programming mode: Static.

ST logo
ST logo

13.7.91 DDRCTRL port status register (DDRCTRL_MP_PSTAT)

Address offset: 0x3FC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WR_PORT_BUSY_1WR_PORT_BUSY_0
rr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RD_PORT_BUSY_1RD_PORT_BUSY_0
rr

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

Bit 17 WR_PORT_BUSY_1: Indicates if there are outstanding writes for AXI port 1.

Note: Programming mode: Dynamic.

Bit 16 WR_PORT_BUSY_0: Indicates if there are outstanding writes for AXI port 0.

Note: Programming mode: Dynamic.

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

Bit 1 RD_PORT_BUSY_1: Indicates if there are outstanding reads for AXI port 1.

Note: Programming mode: Dynamic.

Bit 0 RD_PORT_BUSY_0: Indicates if there are outstanding reads for AXI port 0.

Note: Programming mode: Dynamic.

13.7.92 DDRCTRL port common configuration register (DDRCTRL_MP_PCCFG)

Address offset: 0x400

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.BL_EXP_MODERes.Res.Res.PAGEMATCH_LIMITRes.Res.Res.GO2CRITICAL_EN
rwrwrw

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

Bit 8 BL_EXP_MODE: Burst length expansion mode

0: (default value) XPI expands every AXI burst into multiple HIF commands, using the memory burst length as a unit.

1: The XPI uses half of the memory burst length as a unit. This applies to both reads and writes.

When DATA_BUS_WIDTH = 0 in DDRCTRL_REGS_MSTR, setting this bit has no effect. This can be used in order to avoid or minimize tccd_l penalty in DDR4, and tccd_mw penalty in LPDDR4. Setting this bit is then only recommended for DDR4 or LPDDR4.

If DM_EN = 0 in DDRCTRL_REGS_DBICTL, this functionality is not supported if the DCI (data channel interleave) is enabled.

Note: Programming mode: Static.

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

Bit 4 PAGEMATCH_LIMIT: Page match four limit

1: Limit to four the number of consecutive same page DDRC transactions that can be granted by the port arbiter, when the page match feature is enabled.

0: No limit imposed on number of consecutive same page DDRC transactions

Note: Programming mode: Static.

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

Bit 0 GO2CRITICAL_EN:

1: (enabled) Set co_gs_go2critical_wr and co_gs_go2critical_lpr/co_gs_go2critical_hpr signals going to DDRC based on urgent input (awurgent, arurgent) coming from AXI master.

0: (disabled) co_gs_go2critical_wr and co_gs_go2critical_lpr/co_gs_go2critical_hpr signals at DDRC are driven to 0.

Note: Programming mode: Static.

13.7.93 DDRCTRL port x configuration read register (DDRCTRL_MP_PCFGR_x)

Address offset: 0x404 + 0xB0 * x, (x = 0 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.RRB_LOCK_THRESHOLD[3:0]Res.Res.Res.Res.
rwrwrwrw
1514131211109876543210
Res.RD_PORT_PAGEMATCH_ENRD_PORT_URGENT_ENRD_PORT_AGING_ENRes.Res.RD_PORT_PRIORITY[9:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

13.7.94 DDRCTRL port x configuration write register (DDRCTRL_MP_PCFGW_x)

Address offset: 0x408 + 0xB0 * x, (x = 0 to 1)

Reset value: 0x0000 4000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.WR_P
ORT_P
AGEM
ATCH_
EN
WR_P
ORT_U
RGENT_
EN
WR_P
ORT_A
GING_
EN
Res.Res.WR_PORT_PRIORITY[9:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 14 WR_PORT_PAGEMATCH_EN: Page match feature enable

Note: Programming mode: Static.

Bit 13 WR_PORT_URGENT_EN: AXI urgent sideband signal (awurgent) enable

The awurgent signal can be asserted anytime and as long as required, independently of address handshaking (not associated with any particular command).

Note: Programming mode: Static.

Bit 12 WR_PORT_AGING_EN: Aging function enable for the write channel

Note: Programming mode: Static.

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

Bits 9:0 WR_PORT_PRIORITY[9:0]: Initial load value of write aging counters

These counters are loaded in parallel after reset, or after each grant to corresponding port. The aging counters down count every clock cycle where the port requests but is not granted. The higher significant 5 bits of the write aging counter set the initial priority of the write channel of a given port.

Note: Programming mode: Static.

13.7.95 DDRCTRL port x control register (DDRCTRL_MP_PCTRL_x)

Address offset: 0x490 + 0xB0 * x, (x = 0 to 1)

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.PORT_EN
rw

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

Bit 0 PORT_EN: Enable the AXI port x.

Note: Programming mode: Dynamic.

13.7.96 DDRCTRL port x read QoS configuration 0 register (DDRCTRL_MP_PCFGQOS0_x)

Address offset: 0x494 + 0xB0 * x, (x = 0 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RQOS_MAP_REGION1[1:0]Res.Res.RQOS_MAP_REGION0[1:0]
rwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RQOS_MAP_LEVEL1[3:0]
rwrwrwrw

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

Bits 21:20 RQOS_MAP_REGION1[1:0]: Traffic class of region 1

00: LPR

01: VPR

10 HPR

Note: Programming mode: Quasi-dynamic Group 3.

Bits 19:18 Reserved, must be kept at reset value.

Bits 17:16 RQOS_MAP_REGION0[1:0]: Traffic class of region 0

V00: LPR

01: VPR

10 HPR

Note: Programming mode: Quasi-dynamic Group 3.

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

Bits 3:0 RQOS_MAP_LEVEL1[3:0]: Separation level1 that gives the end of region 0 mapping
The start of region 0 is 0. Possible values for level1 are 0 to 13 (for dual RAQ), or 0 to 14 (for single RAQ) which corresponds to arqos.
For PA, arqos values are used directly as port priorities, where the higher the value corresponds to higher port priority.

Note: Programming mode: Quasi-dynamic Group 3.

13.7.97 DDRCTRL port x read QoS configuration 1 register (DDRCTRL_MP_PCFGQOS1_x)

Address offset: 0x498 + 0xB0 * x, (x = 0 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.RQOS_MAP_TIMEOUTR[10:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.RQOS_MAP_TIMEOUTB[10:0]
rwrwrwrwrwrwrwrwrwrwrw

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

Bits 26:16 RQOS_MAP_TIMEOUTR[10:0]: Timeout value for transactions mapped to red address queue

Note: Programming mode: Quasi-dynamic Group 3.

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

Bits 10:0 RQOS_MAP_TIMEOUTB[10:0]: Timeout value for transactions mapped to blue address queue

Note: Programming mode: Quasi-dynamic Group 3.

13.7.98 DDRCTRL port x write QoS configuration 0 register (DDRCTRL_MP_PCFGWQOS0_x)

Address offset: 0x49C + 0xB0 * x, (x = 0 to 1)

Reset value: 0x0000 0E00

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.WQOS_MAP_REGION2[1:0]Res.Res.WQOS_MAP_REGION1[1:0]Res.Res.WQOS_MAP_REGION0[1:0]
rwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.WQOS_MAP_LEVEL2[3:0]Res.Res.Res.Res.WQOS_MAP_LEVEL1[3:0]
rwrwrwrwrwrwrwrw

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

13.7.99 DDRCTRL port x write QoS configuration 1 register
(DDRCTRL_MP_PCFGWQOS1_x)

Address offset: 0x4A0 + 0xB0 * x, (x = 0 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.WQOS_MAP_TIMEOUT2[10:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.WQOS_MAP_TIMEOUT1[10:0]
rwrwrwrwrwrwrwrwrwrwrw

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

Bits 26:16 WQOS_MAP_TIMEOUT2[10:0]: Timeout value for write transactions in region 2

Note: Programming mode: Quasi-dynamic Group 3.

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

Bits 10:0 WQOS_MAP_TIMEOUT1[10:0]: Timeout value for write transactions in region 0 and 1

Note: Programming mode: Quasi-dynamic Group 3.

13.7.100 DDRCTRL version number register
(DDRCTRL_MP_DDRCTRL_VER_NUMBER)

Address offset: 0xFF0

Reset value: 0x3339 312A

31302928272625242322212019181716
VER_NUMBER[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
VER_NUMBER[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 VER_NUMBER[31:0]: Device version number

This is in ASCII format, with each byte corresponding to a character of the version number

Note: Programming mode: Static.

13.7.101 DDRCTRL version type register
(DDRCTRL_MP_DDRCTRL_VER_TYPE)

Address offset: 0xFF4

Reset value: 0x6761 2A2A

31302928272625242322212019181716
VER_TYPE[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
VER_TYPE[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 VER_TYPE[31:0]: Device version type value

This is in ASCII format, with each byte corresponding to a character of the version type

Note: Programming mode: Static.

13.7.102 DDRCTRL register map

Table 59. DDRCTRL register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000DDRCTRL_REGS_MSTRDEVICE_CONFIG [1:0]ResResResResACTIVE_RANKS [1:0]ResResResResBURST_RDWR [3:0]DLL_OFF_MODEResDATA_BUS_WIDTH [1:0]ResResResEN_2T_TIMING_MODEBURSTCHOPResResResLPDDR4DDR4ResResResDDR3L
Reset value001101000000000001
0x004DDRCTRL_REGS_STATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SELFREF_CAM_NOT_EMPTYRes.Res.Res.SELFREF_STATE[1:0]Res.Res.Res.SELFREF_TYPE[1:0]Res.OPERATING_MODE[2:0]
Reset value00000000
0x008 - 0x00CReservedReserved
0x010DDRCTRL_REGS_MRCTRL0MR_WRPBA_MODERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MR_ADDR [3:0]Res.Res.Res.Res.Res.Res.MR_RANK [1:0]SW_INIT_INTPDA_ENMPR_ENMR_TYPE
Reset value000000110000

Table 59. DDRCTRL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x014DDRCTRL_REGS_MRCTRL1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MR_DATA[17:0]
Reset value000000000000000000
0x018DDRCTRL_REGS_MRSTATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PDA_DONERes.Res.Res.Res.Res.Res.Res.MR_WR_BUSY
Reset value00
0x01CDDRCTRL_REGS_MRCTRL2MR_DEVICE_SEL[31:0]
Reset value00000000000000000000000000000000
0x020DDRCTRL_REGS_DERATEENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DERATE_MR4_PAUSE_FCDERATE_MR4_TUF_DISRes.RC_DERATE_VALUE[2:0]DERATE_BYTE[3:0]Res.DERATE_VALUE[1:0]DERATE_ENABLE
Reset value0000000000000
0x024DDRCTRL_REGS_DERATEINTMR4_READ_INTERVAL[31:0]
Reset value00000000100000000000000000000000
0x028ReservedReserved
0x02CDDRCTRL_REGS_DERATECTLRes.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.DERATE_TEMP_LIMIT_INTR_FORCEDERATE_TEMP_LIMIT_INTR_CLRDERATE_TEMP_LIMIT_INTR_EN
Reset value001
0x030DDRCTRL_REGS_PWRCTLRes.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.EN_DFI_DRAM_CLK_DISABLEPOWERDOWN_ENSELFREF_EN
Reset value00000
ST logo
ST logo

Table 59. DDRCTRL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x034DDRCTRL_REGS
_PWRTMG
Res.Res.Res.Res.Res.Res.Res.Res.SELFREF_TO_X32[7:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.POWERDOWN_TO_X32
[4:0]
Reset value0100000010000
0x038DDRCTRL_REGS
_HWLPCTL
Res.Res.Res.Res.HW_LP_IDLE_X32[11:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HW_LP_EXIT_IDLE_ENHW_LP_EN
Reset value00000000000011
0x03C -
0x04C
ReservedReserved
0x050DDRCTRL_REGS
_RFSHCTL0
REFRESH_TO_AB_X32[4:0]Res.Res.Res.REFRESH_MARGIN
[3:0]
Res.Res.Res.REFRESH_TO_X1_X32
[4:0]
Res.Res.REFRESH_BURST[5:0]Res.PER_BANK_REFRESHAUTO_REFAB_EN[1:0]
Reset value10000001010000000000000
0x054DDRCTRL_REGS
_RFSHCTL1
Res.Res.Res.Res.REFRESH_TIMER1_START
_VALUE_X32[11:0]
Res.Res.Res.Res.REFRESH_TIMER0_START
_VALUE_X32[11:0]
Reset value000000000000000000000000
0x058 -
0x05C
ReservedReserved
0x060DDRCTRL_REGS
_RFSHCTL3
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REFRESH_MODE[2:0]Res.Res.REFRESH_UPDATE_LEVELDIS_AUTO_REFRESH
Reset value00000

Table 59. DDRCTRL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x064DDRCTRL_REGS_RFSHTMGT_RFC_NOM_X1_SERes.Res.Res.Res.T_RFC_NOM_X1_X32[11:0]Res.Res.Res.Res.Res.Res.Res.T_RFC_MIN[9:0]
Reset value00000011000100010001100
0x068DDRCTRL_REGS_RFSHTMG1Res.Res.Res.Res.Res.Res.Res.Res.T_PBR2PBR[7:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value10001100
0x06C - 0x0CCReservedReserved
0x0D0DDRCTRL_REGS_INIT0SKIP_DRAM_INIT [1:0]Res.Res.Res.Res.Res.POST_CKE_X1024[9:0]Res.Res.Res.Res.Res.PRE_CKE_X1024[11:0]
Reset value000000000010000001001110
0x0D4DDRCTRL_REGS_INIT1Res.Res.Res.Res.Res.Res.Res.DRAM_RSTN_X1024[8:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRE_OCD_X32[3:0]
Reset value0000000000000
0x0D8ReservedReserved
0x0DCDDRCTRL_REGS_INIT3MR[15:0]EMR[15:0]
Reset value0000000000000000000010100010000
0x0E0DDRCTRL_REGS_INIT4EMR2[15:0]EMR3[15:0]
Reset value0000000000000000000000000000000
0x0E4DDRCTRL_REGS_INIT5Res.Res.Res.Res.Res.Res.Res.DEV_ZQINIT_X32[7:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00010000
0x0E8DDRCTRL_REGS_INIT6MR4[15:0]MR5[15:0]
Reset value0000000000000000000000000000000
0x0ECDDRCTRL_REGS_INIT7MR22[15:0]MR6[15:0]
Reset value0000000000000000000000000000000
0x0F0ReservedReserved

Table 59. DDCRTL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x0F4DDRCTRL_REGS_RANKCTLRes.Res.Res.Res.Res.DIFF_RANK_WR_GAP_MSBRes.DIFF_RANK_RD_GAP_MSBRes.Res.Res.Res.Res.Res.MAX_RANK_WR[3:0]DIFF_RANK_WR_GAP[3:0]DIFF_RANK_RD_GAP[3:0]MAX_RANK_RD[3:0]
Reset value000000011001101111
0x0F8DDRCTRL_REGS_RANKCTL1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WR2RD_DR[5:0]
Reset value001000
0x0FCReservedReserved
0x100DDRCTRL_REGS_DRAMTMG0Res.WR2PRE[6:0]Res.Res.T_FAW[5:0]Res.T_RAS_MAX[6:0]Res.Res.T_RAS_MIN[5:0]
Reset value0001111010000001101100111111
0x104DDRCTRL_REGS_DRAMTMG1Res.Res.Res.Res.Res.Res.Res.Res.Res.T_XP[4:0]Res.Res.RD2PRE[5:0]Res.T_RC[6:0]
Reset value010000001000010100
0x108DDRCTRL_REGS_DRAMTMG2Res.Res.WRITE_LATENCY[5:0]Res.Res.READ_LATENCY[5:0]Res.Res.RD2WR[5:0]Res.Res.WR2RD[5:0]
Reset value000011000101000110001101
0x10CDDRCTRL_REGS_DRAMTMG3Res.Res.T_MRW[9:0]Res.Res.T_MRD[5:0]Res.Res.T_MOD[9:0]
Reset value000000001010001000000001100
0x110DDRCTRL_REGS_DRAMTMG4Res.Res.Res.T_RCD[4:0]Res.Res.Res.Res.T_CCD[3:0]Res.Res.Res.Res.T_RRD[3:0]Res.Res.Res.T_RP[4:0]
Reset value001010100010000101
0x114DDRCTRL_REGS_DRAMTMG5Res.Res.Res.Res.T_CKSRX[3:0]Res.T_CKSRE[6:0]Res.Res.T_CKESR[5:0]Res.Res.Res.T_CKE[4:0]
Reset value0101000010100010000011
0x118DDRCTRL_REGS_DRAMTMG6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_CKCSX[3:0]
Reset value0101
0x11CDDRCTRL_REGS_DRAMTMG7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_CKPDE[3:0]Res.Res.Res.Res.T_CKPD[X3:0]
Reset value00100010
0x120DDRCTRL_REGS_DRAMTMG8Res.T_XS_FAST_X32[6:0]Res.T_XS_ABORT_X32[6:0]Res.T_XS_DLL_X32[6:0]Res.T_XS_X32[6:0]
Reset value0000011000001110001000000101

Table 59. DDDRCTRL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x124DDRCTRL_REGS_DRAMTMG9Res.DDR4_WR_PREAMBLERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_CCD_S[2:0]Res.Res.Res.Res.Res.T_RRD_S[3:0]Res.Res.WR2RD_S[5:0]
Reset value01000100001101
0x128DDRCTRL_REGS_DRAMTMG10Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_SYNC_GEAR[4:0]Res.Res.Res.Res.Res.T_CMD_GEAR[4:0]Res.Res.Res.Res.T_GEAR_SETUP[1:0]T_GEAR_HOLD[1:0]
Reset value11100110001010
0x12CDDRCTRL_REGS_DRAMTMG11Res.POST_MPSM_GAP_X32[6:0]Res.Res.Res.T_MPX_LH[4:0]Res.Res.Res.Res.Res.Res.Res.Res.T_MPX_S[1:0]Res.Res.Res.T_CKMPE[4:0]
Reset value1000100011001011100
0x130DDRCTRL_REGS_DRAMTMG12Res.Res.T_WR_MPR[5:0]Res.Res.Res.Res.Res.Res.Res.T_CMDCKE[1:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_MRD_PDA[4:0]
Reset value0110101010000
0x134DDRCTRL_REGS_DRAMTMG13Res.ODTLOFF[6:0]Res.Res.T_CCD_MW[5:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_PPD[2:0]
Reset value00111001000000100
0x138DDRCTRL_REGS_DRAMTMG14Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_XSR[11:0]
Reset value000010100000
0x13CDDRCTRL_REGS_DRAMTMG15EN_DFL_LP_T_STABRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_STAB_X32[7:0]
Reset value00000000
0x140 - 0x17CReservedReserved
0x180DDRCTRL_REGS_ZQCTL0DIS_AUTO_ZQDIS_SRX_ZQCLZQ_RESISTOR_SHAREDDIS_MPSMX_ZQCLRes.T_ZQ_LONG_NOP[10:0]Res.Res.Res.Res.Res.Res.T_ZQ_SHORT_NOP[9:0]
Reset value0000010000000000001000000
ST logo
ST logo

Table 59. DDRCCTRL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x184DDRCCTRL_REGS_ZQCTL1Res.Res.T_ZQ_RESET_NOP[9:0]T_ZQ_SHORT_INTERVAL_X1024[19:0]
Reset value000010000000000000000100000000
0x188DDRCCTRL_REGS_ZQCTL2Res.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 value0
0x18CDDRCCTRL_REGS_ZQSTATRes.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 value0
0x190DDRCCTRL_REGS_DFITMG0Res.Res.Res.DFI_T_CTRL_DELAY[4:0]DFI_RDDATA_USE_DFI_PHY_CLKDFI_T_RDDATA_EN[6:0]DFI_WRDATA_USE_DFI_PHY_CLKRes.DFI_TPHY_WRDATA[5:0]Res.Res.DFI_TPHY_WRLAT[5:0]
Reset value0011000000000000000000000010
0x194DDRCCTRL_REGS_DFITMG1DFI_T_CMD_LAT[3:0]Res.Res.Res.Res.Res.Res.Res.DFI_T_WRDATA_DELAY[4:0]Res.Res.Res.DFI_T_DRAM_CLK_DISABLE[4:0]Res.Res.Res.DFI_T_DRAM_CLK_ENABLE[4:0]
Reset value00000000000100001000
0x198DDRCCTRL_REGS_DFILPCFG0Res.Res.Res.DFI_TLP_RESP[4:0]Res.Res.Res.Res.Res.Res.Res.Res.DFI_LP_WAKEUP_SR[3:0]Res.Res.Res.DFI_LP_EN_SRDFI_LP_WAKEUP_PD[3:0]Res.Res.Res.DFI_LP_EN_PD
Reset value00110000000000
0x19CReservedReserved

Table 59. DDRCTRL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x1A0DDRCTRL_REGS_DFIUPD0DIS_AUTO_CTRLUPDDIS_AUTO_CTRLUPD_SRXCTRLUPD_PRE_SRXRes.Res.Res.DFI_T_CTRLUP_MAX[9:0]Res.Res.Res.Res.Res.Res.DFI_T_CTRLUP_MIN[9:0]
Reset value000000100000000000000011
0x1A4DDRCTRL_REGS_DFIUPD1Res.Res.Res.Res.Res.Res.Res.Res.DFI_T_CTRLUPD_INTERVAL_MIN_X1024[7:0]Res.Res.Res.Res.Res.Res.Res.Res.DFI_T_CTRLUPD_INTERVAL_MAX_X1024[7:0]
Reset value00000001000000001
0x1A8DDRCTRL_REGS_DFIUPD2DFI_PHYUPD_ENRes.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 value1
0x1ACReservedReserved
0x1B0DDRCTRL_REGS_DFIIMISCRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DFI_FREQUENCY[4:0]LP_OPTIMIZED_WRITEDIS_DYN_ADR_TRIDFI_INIT_STARTCTL_IDLE_ENRes.DFI_DATA_CS_POLARITYPHY_DBI_MODEDFI_INIT_COMPLETE_EN
Reset value000000100001
0x1B4DDRCTRL_REGS_DFITMG2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DFI_TPHY_RDCSLAT[6:0]Res.Res.DFI_TPHY_WRCSLAT[5:0]
Reset value0000010000010
0x1B8DDRCTRL_REGS_DFITMG3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DFI_T_GEARDOWN_DELAY[4:0]
Reset value0000000
0x1BCDDRCTRL_REGS_DFISTATRes.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.DFI_LP_ACKDFI_INIT_COMPLETE
Reset value000

Table 59. DDCRTL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x1C0DDRCTRL_REGS_DBICTLRes.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.RD_DBI_ENWR_DBI_ENDM_EN
Reset value001
0x1C4DDRCTRL_REGS_DFIPHYMSTRDFI_PHYMSTR_BLK_REF_X32[7:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DFI_PHYMSTR_EN
Reset value100000001
0x1C8 - 0x1FCReservedReserved
0x200DDRCTRL_REGS_ADDRMAP0Res.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.ADDRMAP_CS_BIT0[4:0]
Reset value0000
0x204DDRCTRL_REGS_ADDRMAP1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADDRMAP_BANK_B2[5:0]Res.Res.Res.Res.ADDRMAP_BANK_B1[5:0]Res.Res.Res.Res.Res.ADDRMAP_BANK_B0[5:0]
Reset value00000000000000000
0x208DDRCTRL_REGS_ADDRMAP2Res.Res.Res.Res.ADDRMAP_COL_B5[3:0]Res.Res.Res.Res.ADDRMAP_COL_B4[3:0]Res.Res.Res.ADDRMAP_COL_B3[4:0]Res.Res.Res.Res.Res.ADDRMAP_COL_B2[3:0]
Reset value00000000000000000
0x20CDDRCTRL_REGS_ADDRMAP3Res.Res.Res.ADDRMAP_COL_B9[4:0]Res.Res.Res.ADDRMAP_COL_B8[4:0]Res.Res.Res.Res.ADDRMAP_COL_B7[4:0]Res.Res.Res.Res.Res.ADDRMAP_COL_B6[4:0]
Reset value00000000000000000000
0x210DDRCTRL_REGS_ADDRMAP4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADDRMAP_COL_B11[4:0]Res.Res.Res.Res.Res.ADDRMAP_COL_B10[4:0]
Reset value0000000000

Table 59. DDDRCTRL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x214DDRCTRL_REGS_ADDRMAP5Res.Res.Res.Res.ADDRMAP_ROW_B11 [3:0]Res.Res.Res.Res.ADDRMAP_ROW_B2_10 [3:0]Res.Res.Res.Res.ADDRMAP_ROW_B1 [3:0]Res.Res.Res.Res.ADDRMAP_ROW_B0 [3:0]
Reset value0000000000000000
0x218DDRCTRL_REGS_ADDRMAP6LPDDR34_3GB_6GB_12GB [2:0]Res.Res.ADDRMAP_ROW_B15[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B14[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B13[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B12[3:0]
Reset value0000000000000000000
0x21CDDRCTRL_REGS_ADDRMAP7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADDRMAP_ROW_B17 [3:0]Res.Res.Res.Res.ADDRMAP_ROW_B16 [3:0]
Reset value00000000
0x220DDRCTRL_REGS_ADDRMAP8Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADDRMAP_BG_B1[5:0]Res.Res.Res.Res.ADDRMAP_BG_B0[5:0]
Reset value00000000
0x224DDRCTRL_REGS_ADDRMAP9Res.Res.Res.Res.ADDRMAP_ROW_B5 [3:0]Res.Res.Res.Res.ADDRMAP_ROW_B4 [3:0]Res.Res.Res.Res.ADDRMAP_ROW_B3 [3:0]Res.Res.Res.Res.ADDRMAP_ROW_B2 [3:0]
Reset value0000000000000000
0x228DDRCTRL_REGS_ADDRMAP10Res.Res.Res.Res.ADDRMAP_ROW_B9 [3:0]Res.Res.Res.Res.ADDRMAP_ROW_B8 [3:0]Res.Res.Res.Res.ADDRMAP_ROW_B7 [3:0]Res.Res.Res.Res.ADDRMAP_ROW_B6 [3:0]
Reset value0000000000000000

Table 59. DDCRTL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x22CDDRCTRL_REGS_ADDRMAP11Res.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.ADDRMAP_ROW_B10[3:0]
Reset value0000
0x230 - 0x23CReservedReserved
0x240DDRCTRL_REGS_ODTCFGRes.Res.Res.Res.WR_ODT_HOLD[3:0]Res.Res.Res.WR_ODT_DELAY[4:0]Res.Res.Res.Res.RD_ODT_HOLD[3:0]Res.RD_ODT_DELAY[4:0]Res.Res.
Reset value010000000010000000
0x244DDRCTRL_REGS_ODTMAPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RANK1_RD_ODT[1:0]Res.Res.RANK1_WR_ODT[1:0]Res.Res.Res.Res.RANK0_RD_ODT[1:0]Res.Res.RANK0_WR_ODT[1:0]
Reset value10100101
0x248 - 0x24CReservedReserved
0x250DDRCTRL_REGS_SCHEDOPT_VPRW_SCHRDWR_IDLE_GAP[6:0]GO2CRITICAL_HYSTERESIS[7:0]LPDDR4_OPT_ACT_TIMINGRes.Res.LPR_NUM_ENTRIES[4:0]AUTOPRE_RMWRes.Res.OPT_WRCAM_FILL_LEVELRDWR_SWITCH_POLICY_SELPAGECLOSEPREFER_WRITERes.
Reset value1000000000000001000001110
0x254DDRCTRL_REGS_SCHED1OPT_HIT_GT_HPRPAGE_HIT_LIMIT_RD[2:0]Res.PAGE_HIT_LIMIT_WR[2:0]Res.VISIBLE_WINDOW_LIMIT_RD[2:0]Res.VISIBLE_WINDOW_LIMIT_WR[2:0]DELAY_SWITCH_WRITE[3:0]Res.Res.Res.Res.PAGECLOSE_TIMER[7:0]
Reset value000000000000000100000000
0x258ReservedReserved

Table 59. DDRCTRL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x25CDDRCTRL_REGS_PERFHPR1HPR_XACT_RUN_LENGTH[7:0]ResResResResResResResResHPR_MAX_STARVE[15:0]
Reset value000011110000000000000001
0x260ReservedReserved
0x264DDRCTRL_REGS_PERFLPR1LPR_XACT_RUN_LENGTH[7:0]ResResResResResResResResLPR_MAX_STARVE[15:0]
Reset value000011110000000001111111
0x268ReservedReserved
0x26CDDRCTRL_REGS_PERFWR1W_XACT_RUN_LENGTH[7:0]ResResResResResResResResW_MAX_STARVE[15:0]
Reset value000011110000000001111111
0x270DDRCTRL_REGS_SCHED3Res.Res.Res.RD_PGHT_NUM_THRESH[4:0]Res.Res.Res.WR_PGHT_NUM_THRESH[4:0]Res.Res.Res.WRCAM_HIGHTHRESH[4:0]Res.Res.Res.WRCAM_LOWTHRESH[4:0]
Reset value00100001000001001000
0x274DDRCTRL_REGS_SCHED4WR_PAGE_EXP_CYCLES[7:0]RD_PAGE_EXP_CYCLES[7:0]WR_ACT_IDLE_GAP[7:0]RD_ACT_IDLE_GAP[7:0]
Reset value00001000010000000000100000001000
0x278 - 0x2FCReservedReserved
0x300DDRCTRL_REGS_DBG0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DIS_MAX_RANK_WR_OPTDIS_MAX_RANK_RD_OPTDIS_COLLISION_PAGE_OPTRes.DIS_ACT_BYPASSDIS_RD_BYPASSDIS_WC
Reset value0000000
0x304DDRCTRL_REGS_DBG1Res.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.DIS_HIFDIS_DQ
Reset value00
ST logo
ST logo

Table 59. DDDRCTRL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x308DDRCTRL_REGS_DBGCAMRes.Res.WR_DATA_PIPELINE_EMPTYRD_DATA_PIPELINE_EMPTYRes.DBG_WR_Q_EMPTYDBG_RD_Q_EMPTYDBG_STALLRes.Res.DBG_W_Q_DEPTH[5:0]Res.Res.DBG_LPR_Q_DEPTH[5:0]Res.Res.DBG_HPR_Q_DEPTH[5:0]
Reset value00000000000000000000000
0x30CDDRCTRL_REGS_DBGCMDRes.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.CTRLUPDZQ_CALIB_SHORRANK1_REFRESHRANK0_REFRESH
Reset value000000
0x310DDRCTRL_REGS_DBGSTATRes.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.CTRLUPD_BUSYZQ_CALIB_SHORT_BUSYRANK1_REFRESH_BUSYRANK0_REFRESH_BUSY
Reset value000000
0x314 - 0x31CReservedReserved
0x320DDRCTRL_REGS_SWCTLRes.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.SW_DONE
Reset value1
0x324DDRCTRL_REGS_SWSTATRes.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.SW_DONE_ACK
Reset value1
0x328DDRCTRL_REGS_SWCTLSTATICRes.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.SW_STATIC_UNLOCK
Reset value0
0x32C - 0x368ReservedReserved

Table 59. DDCRTL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x36CDDRCTRL_REGS_POISONCFGRes.Res.Res.Res.Res.Res.Res.RD_POISON_INTR_CLRRes.Res.Res.RD_POISON_INTR_ENRes.Res.Res.RD_POISON_SIVERR_ENRes.Res.Res.Res.Res.Res.Res.WR_POISON_INTR_CLRRes.Res.Res.Res.Res.Res.Res.WR_POISON_SIVERR_EN
Reset value01101
0x370DDRCTRL_REGS_POISONSTATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RD_POISON_INTR_1RD_POISON_INTR_0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WR_POISON_INTR_1WR_POISON_INTR_0
Reset value0000
0x374 - 0x3ECReservedReserved
0x3F0DDRCTRL_REGS_DERATESTATRes.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.DERATE_TEMP_LIMIT_INTR
Reset value0
0x3F4 - 0x3F8ReservedReserved
0x3FCDDRCTRL_MP_PSTATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WR_PORT_BUSY_1WR_PORT_BUSY_0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RD_PORT_BUSY_1RD_PORT_BUSY_0
Reset value0000
0x400DDRCTRL_MP_PCCFGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BL_EXP_MODERes.Res.Res.PAGEMATCH_LIMITRes.Res.Res.GO2CRITICAL_EN
Reset value000

Table 59. DDRCTRL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x404DDRCTRL_MP
_PCFGR_0
Res.Res.Res.Res.Res.Res.Res.Res.RRB_LOCK_THRESHOLD[3:0]Res.Res.Res.Res.Res.RD_PORT_PAGEMATCH_ENRD_PORT_URGENT_ENRD_PORT_AGING_ENRes.Res.RD_PORT_PRIORITY[9:0]
Reset value00000000000000000
0x408DDRCTRL_MP
_PCFGW_0
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WR_PORT_PAGEMATCH_ENWR_PORT_URGENT_ENWR_PORT_AGING_ENRes.Res.WR_PORT_PRIORITY[9:0]
Reset value1000000000000
0x40C -
0x48C
ReservedReserved
0x490DDRCTRL_MP
_PCTRL_0
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.PORT_EN
Reset value0
0x494DDRCTRL_MP
_PCFGQOS0_0
Res.Res.Res.Res.Res.Res.Res.Res.Res.RQOS_MAP_REGION1
[1:0]
Res.Res.Res.RQOS_MAP_REGION0
[1:0]
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RQOS_MAP_LEVEL1
[3:0]
Reset value00000000
0x498DDRCTRL_MP
_PCFGQOS1_0
Res.Res.Res.Res.Res.RQOS_MAP_TIMEOUTR[10:0]Res.Res.Res.Res.Res.RQOS_MAP_TIMEOUTB[10:0]
Reset value0000000000000000000000
0x49CDDRCTRL_MP
_PCFGWQOS0_0
Res.Res.Res.Res.Res.Res.WQOS_MAP_REGION2
[1:0]
Res.Res.WQOS_MAP_REGION1
[1:0]
Res.Res.WQOS_MAP_REGION0
[1:0]
Res.Res.Res.Res.WQOS_MAP_LEVEL2
[3:0]
Res.Res.Res.Res.WQOS_MAP_LEVEL1
[3:0]
Reset value00000011100000
0x4A0DDRCTRL_MP
_PCFGWQOS1_0
Res.Res.Res.Res.Res.WQOS_MAP_TIMEOUT2[10:0]Res.Res.Res.Res.Res.WQOS_MAP_TIMEOUT1[10:0]
Reset value0000000000000000000000

Table 59. DDRCTRL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x4A4 - 0x4B0ReservedReserved
0x4B4DDRCTRL_MP
_PCFGR_1
Res.Res.Res.Res.Res.Res.Res.Res.RRB_LOCK_THRESHOLD[3:0]Res.Res.Res.Res.Res.RD_PORT_PAGEMATCH_ENRD_PORT_URGENT_ENRD_PORT_AGING_ENRes.Res.RD_PORT_PRIORITY[9:0]
Reset value00000000000000000
0x4B8DDRCTRL_MP
_PCFGW_1
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WR_PORT_PAGEMATCH_ENWR_PORT_URGENT_ENWR_PORT_AGING_ENRes.Res.WR_PORT_PRIORITY[9:0]
Reset value1000000000000
0x4BC - 0x53CReservedReserved
0x540DDRCTRL_MP
_PCTRL_1
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.PORT_EN
Reset value0
0x544DDRCTRL_MP
_PCFGQOS0_1
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RQOS_MAP_REGION1
[1:0]
Res.Res.RQOS_MAP_REGION0
[1:0]
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RQOS_MAP_LEVEL1
[3:0]
Reset value00000000
0x548DDRCTRL_MP
_PCFGQOS1_1
Res.Res.Res.Res.Res.RQOS_MAP_TIMEOUTR[10:0]Res.Res.Res.Res.Res.RQOS_MAP_TIMEOUTB[10:0]
Reset value0000000000000000000000
0x54CDDRCTRL_MP
_PCFGWQOS0_1
Res.Res.Res.Res.Res.WQOS_MAP_REGION2
[1:0]
Res.Res.Res.WQOS_MAP_REGION1
[1:0]
Res.Res.WQOS_MAP_REGION0
[1:0]
Res.Res.Res.Res.WQOS_MAP_LEVEL2
[3:0]
Res.Res.Res.Res.WQOS_MAP_LEVEL1
[3:0]
Reset value00000011100000
ST logo
ST logo

Table 59. DDCRTL register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x550DDRCTRL_MP_PCFGWQOS1_1Res.Res.Res.Res.Res.WQOS_MAP_TIMEOUT2[10:0]Res.Res.Res.Res.Res.WQOS_MAP_TIMEOUT1[10:0]
Reset value0000000000000000000000
0x554 - 0xFECReservedReserved
0xFF0DDRCTRL_MP_DDCRTL_VER_NUMBERVER_NUMBER[31:0]
Reset value00110011001110010011000100101010
0xFF4DDRCTRL_MP_DDCRTL_VER_TYPEVER_TYPE[31:0]
Reset value01100111011000010010101000101010

Refer to Section 2.4 for the register boundary addresses.