5. DDR3/LPDDR2/LPDDR3 controller (DDRCTRL)

5.1 Introduction

Portions Copyright (c) Synopsys, Inc. All rights reserved. Used with permission.

The DDRCTRL is a DDR-SDRAM controller and specific configuration of Synopsys uMCTL2 DDR controller v3.00a.

The DDRCTRL combined with the DDRPHYC (DDR PHY with Physical Utility Block) provides a complete memory interface solution for the DDR memory subsystem.

5.2 DDRCTRL features


Warning: The STM32MP151x does not support the ODT for LPDDR3


5.3 DDRCTRL block diagram

A simplified DDRCTRL block diagram is shown in Figure 7.

Figure 7. DDRCTRL block diagram

DDRCTRL block diagram showing the internal architecture of the DDR controller. The diagram is enclosed in a large box labeled 'DDRCTRL'. On the left, three external interfaces are shown: 'AXI Port 0', 'AXI Port 1', and 'APB'. 'AXI Port 0' and 'AXI Port 1' each connect to an 'AXI Port interface' block. These two blocks are connected to a 'Command mux' and a 'Data Mux / Response Demux' block. The 'Command mux' also receives input from a 'PA' (Port Arbiter) block. The 'Data Mux / Response Demux' block is connected to 'Registers' via bidirectional arrows. The 'Command mux' outputs a 'command' signal to the 'Scheduler' block inside a sub-box labeled 'DDRC'. The 'Data Mux / Response Demux' outputs 'data' to the 'Scheduler' and 'response' to the 'Response engine' block, also inside the 'DDRC' sub-box. The 'DDRC' sub-box has an output labeled 'DFI interface' on the right. The version number 'MSv46533V2' is located in the bottom right corner of the diagram area.
DDRCTRL block diagram showing the internal architecture of the DDR controller. The diagram is enclosed in a large box labeled 'DDRCTRL'. On the left, three external interfaces are shown: 'AXI Port 0', 'AXI Port 1', and 'APB'. 'AXI Port 0' and 'AXI Port 1' each connect to an 'AXI Port interface' block. These two blocks are connected to a 'Command mux' and a 'Data Mux / Response Demux' block. The 'Command mux' also receives input from a 'PA' (Port Arbiter) block. The 'Data Mux / Response Demux' block is connected to 'Registers' via bidirectional arrows. The 'Command mux' outputs a 'command' signal to the 'Scheduler' block inside a sub-box labeled 'DDRC'. The 'Data Mux / Response Demux' outputs 'data' to the 'Scheduler' and 'response' to the 'Response engine' block, also inside the 'DDRC' sub-box. The 'DDRC' sub-box has an output labeled 'DFI interface' on the right. The version number 'MSv46533V2' is located in the bottom right corner of the diagram area.

5.4 DDRCTRL architecture overview

See the DDRCTRL block diagram in Figure 7.

5.4.1 AXI Port Interface (XPI)

The XPI processes the AXI information: address, burst size, burst length and burst type and converts the AXI burst into read and 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:

In general, the re-alignment to a memory burst boundary potentially causes some data beats to be discarded (affecting bandwidth) and potentially introduces additional latency on the read data and response channel.

Write address channel features:

Read data and response channels:

5.4.2 Port arbiter (PA)

The PA arbitrates command requests from the 2 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. The read/write credits refer to the DDRC 'Credit Mechanism' employed at the HIF interface.

5.4.3 Host Interface (HIF)

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

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

The requests are throttled by:

The read data are sent back via a common response interface

Credit mechanism:

The DDRC employs 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 that the DDRC issues a credit.

The VPR commands are counted in the LPR credit bucket, the 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.

5.4.4 DDR scheduler (DDRC)

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

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

The DDRC allows the user to manage the Transaction Service Control (TSC) according to QoS and timeouts.

5.4.5 APB Interface (APB)

There are three classes of registers in DDRCTRL:

The dynamic registers can be written at any time during operation.

The static registers can be written only when the controller is in reset.

The quasi dynamic registers can be written when the DDRCTRL is in reset or under specific conditions after the reset is done. To write the quasi dynamic registers, the DDRCTRL_SWCTL.SW_DONE bit must be set to 0 at the beginning of the programming sequence and set back to 1 at the end. After the DDRCTRL_SWSTAT.SW_DONE_ACK must be polled to acknowledge that the write action has been completed.

For more information about dynamic and quasi dynamic registers, refer to uMCTL2 Data Book [1]

5.4.6 DFI Interface (DFI)

The DDRCTRL contains a DFI MC (Memory Controller) interface, which is used to connect to a DFI compliant DDRPHYC to transfer address, control and data to the PHY.

The DFI interface is sub-divided into the following interface groups:

The DDRCTRL, including its DFI interface, runs at the single data rate (SDR) clock (referred to as 1:1 frequency ratio mode in the DFI Specification), so all DFI command and address signals are equal in width to the equivalent DDR SDRAM signals. The DFI data signals are twice the width of the equivalent DDR SDRAM signals.

The DDRCTRL runs with a SDR clock and the DDRPHYC operates the SDR to DDR rate conversion on the data buses. In 1:1 frequency ratio mode, core_ddrc_core_clk and CK/CK# run at the same SDR clock frequency.

5.5 DDRCTRL functional description

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

The transaction service control allows the user to carefully manage the following:

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 given moment.

The transactions are separated into five traffic classes: with 3 read classes and 2 write classes:

The traffic classes are determined according to AXI QoS values (AxQOS[3:0]) set by the SOC AXI Interconnect (AXIM) and QoS regions settings.

The HPR and VPR/LPR are stored in a common read CAM which is split according to DDRCTRL_SCHED.lpr_num.

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

VPW and NPW are stored in a common write CAM; the VPW commands go to the expired-VPR after timeout set by DDRC_PERFVPW1.vpw_timeout. The expired-VPW commands go to highest priority (Priority0).

Following is the list of registers related to transaction service and QoS control:

5.5.2 Paging policy options

Open page policy is set by DDRC_SCHED.pageclose = 0.

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 closed page policies, set by DDRC_SCHED.pageclose = 1 and DDRC_SCHED.pageclose_timer value to give the user control over 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 commands pending in the CAM to a bank. If there are pending commands higher up in the stream (for example XPI/PA ) to the same bank/page, it gives a chance to be scheduled by the DDRCTRL as an open page command.

5.5.3 Power saving features

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

Precharge Power Down: (PDN)

The DDRCTRL automatically puts SDRAM in the Precharge Power Down mode under the control of the following parameters:

Note: During PDN refresh commands are performed and clocks must be maintained; the DDRCTRL pre-charges all banks before Precharge Power Down Exit (PDE). The DDR3 slow power down (by setting MR0[12] =1) is not supported.

Self-Refresh: (SR)

ST logo
ST logo

The SR is a significant power saving opportunity for SDRAM. Furthermore during SR, the DLL's in DDRPHY C can be bypassed and the DDRCTRL clocks can be stopped.

The DDRCTRL puts SDRAM in Self Refresh (SR) in the following cases:

Deep power down: (DPD)

Note: DPD is applicable only to LPDDR2/3.
This power saving opportunity may be supported but does not present any significant interest because the SDRAM content is lost during DPD, practically DPD is not different from shutting down DDR

DDR3 DLL off mode:

The DDR3 DLL off mode may be supported at low frequencies, it requires MRS (MR1[0] =1) to disable DLL (by default DLL are on). It should use the software clock removal sequence:

Write 0 to DDRC_PCTRLn.port_en //to block AXI port n
Poll DDRC_PSTAT.rd_port_busy = 0
Poll DDRC_PSTAT.wr_port_busy = 0
Write 1 to DDRC_PWRCTL.selref_en // move to self-refresh
Poll DDRC_PSTAT.selfref_type = 2b10
... change AXI and DDRC clocks to lower value used w/ DLL OFF
... MRS to disable DLL
Write 0 to DDRC_PWRCTL.selref_en // exit self-refresh
Poll DDRC_PSTAT.selfref_type = 2b00
Write 1 to DDRC_PCTRLn.port_en // to unlock AXI ports

DDRPHY DLL bypass mode:

It is possible to disable DDRPHYC DLL's to save significant power at low frequencies; this mode must be controlled by software. The software sequence transitions SDRAM to Self-refresh during which clock frequency change is possible.

5.5.4 Address mapper

The DDRCTRL address mapper is converting the AXI port read and write request into row, bank, column SDRAM address at XPI level.

The address mapping is very flexible and defined according to DDR_ADDRMAP1 to DDR_ADDRMAP11 register settings.

The usual non interleaved Row/Bank/Column (RBC) and Bank/Row/Column (BRC) can be simply programmed according to SDRAM architecture (row/bank/column) and full or half width interface mode.

5.5.5 DRAM timing parameters

The DDRCTRL schedule commands to SDRAM according to multiple timings constrains as programmed in registers DDRCTRL_DRAMTMGn according to SDRAM JEDEC timing parameters versus frequency.

The following registers are related to timings constrains

5.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. For more information see Section 7: DDR physical interface control (DDRPHYC).

5.5.7 Refresh controls

The refresh can be issued using the auto-refresh feature in DDRCTRL or using the direct software request of the refresh command. DDRCTRL_RFSHCTL3.dis_auto_refresh selects the refresh method. When this bit is set to 1, uMCTL2 uses direct software request of refresh command. When it is set to 0, the internal auto-refresh feature is used.

Refresh using the direct software request of refresh command

Follow the steps to put the DDRCTRL in direct software request of refresh command mode:

  1. 1. Set DDRCTRL_RFSHCTL3.dis_auto_refresh bit to 1. When the register bit set, DDRCTRL checks for any pending refreshes. Any pending refreshes are issued right away using the 'critical refresh' feature inside DDRCTRL. After these refreshes are issued, all the refresh timers inside DDRCTRL are reset to 0. They are re-activated only when the auto-refresh feature is enabled.
  2. 2. The SoC core must keep track of the refresh requirements of the SDRAM.
  3. 3. The refresh command can be issued by setting the register bits DDRCTRL_DBGCMD.rank0_refresh to 1. When the refresh request is stored, the corresponding register bit is automatically cleared. The SoC core can initiate a refresh operation only if DDRCTRL_DBGSTAT.rank0_refresh_busy is low. 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 DDRCTRL on the DFI as soon as it is legal to do so. If the buffer saturates, the DBGSTAT.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 (tRFC(min) and tREFI), it can also be programmed to gather refreshes to each rank of 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 to:

For more information, refer to the register description; besides issuing refresh at regular intervals according to tRFC(min) and tREFI, several optimization options are possible: Burst refresh, Speculative refresh, and Per-bank refresh (applicable to LPDDR2/3).

5.5.8 ZQ calibration

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

The DDRPHYC supports the RON and ODT calibration at initialization; for more information see Section 7: DDR physical interface control (DDRPHYC).

The DDRCTRL may issue periodic calibrations which take less time at regular interval. (ZQCS).

The DDRCTRL may also issue a long calibration (ZQCL) after self-refresh exit

The following registers are related to ZQ calibration controls:

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

5.6 DDRCTRL configuration

The DDRCTRL is a configuration of uMTCL2 with these major hardware configuration options:

5.7 DDRCTRL registers

The DDRCTRL is configured to support DDR3/LPDDR2/LPDDR3. In the following register description section, ignore all references to other standards (mDDR, DDR2, DDR4, LPDDR4) as not being applicable.

Several register values depend on DDRCTRL configuration according to:

The DDRCTRL registers are accessed only by words (32-bit).

R/W access to unmapped registers causes an APB SLVERR.

Write access to read-only registers is ignored without causing an APB SLVERR.

The Programming mode tag in the bit field describes how the field can be programmed according to:

Quarter bus width (MSTR.data_bus_width = 10) is not supported.

For register summary see: Table 19 on page 292.

5.7.1 DDRCTRL master register 0 (DDRCTRL_MSTR)

Address offset: 0x000

Reset value: 0x0004 0001

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BURST_RDWR[3:0]
rwrwrwrw
1514131211109876543210
DLL_OFF_MODERes.DATA_BUS_WIDTH[1:0]Res.EN_2T_TIMING_MODEBURSTCHOPRes.Res.Res.Res.Res.LPDDR3LPDDR2Res.DDR3
rwrwrwrwrwrwrwrw

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

5.7.2 DDRCTRL operating mode status register (DDRCTRL_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.Res.Res.Res.Res.SELFREF_TYPE[1:0]Res.OPERATING_MODE[2:0]
rrrrrr

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

Bit 12 SELFREF_CAM_NOT_EMPTY: Self refresh with CAMs not empty. Set to 1 when Self Refresh is entered but CAMs are not drained. Cleared after exiting Self Refresh.
Programming mode: Dynamic

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

Bits 5:4 SELFREF_TYPE[1:0]: Flags if Self Refresh (except LPDDR4) or SR-Powerdown (LPDDR4) is entered and if it was under Automatic Self Refresh control only or not.

Programming mode: Dynamic

Bit 3 Reserved, must be kept at reset value.

Bits 2:0 OPERATING_MODE[2:0]: Operating mode. This is 3-bits wide in configurations with mDDR/LPDDR2/LPDDR3/LPDDR4/DDR4 support and 2-bits in all other configurations.

Condition non-mDDR/LPDDR2/LPDDR3/LPDDR4 and non-DDR4 designs:

Condition mDDR/LPDDR2/LPDDR3 or DDR4 designs:

Condition LPDDR4 designs:

Programming mode: Dynamic

5.7.3 DDRCTRL mode register read/write control register 0 (DDRCTRL_MRCTRL0)

Address offset: 0x010

Reset value: 0x0000 0010

Mode Register Read/Write Control Register 0.

Note: Do not enable more than one of the following fields simultaneously:

31302928272625242322212019181716
MR_WRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rs
1514131211109876543210
MR_ADDR[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MR_TYPE
rwrwrwrwrw

Bit 31 MR_WR: Setting this register bit to 1 triggers a mode register read or write operation. When the MR operation is complete, the DDDRCTRL automatically clears this bit. The other register fields of this register must be written in a separate APB transaction, before setting this mr_wr bit. It is recommended NOT to set this signal if in Init, Deep power-down or MPSM operating modes.

Programming mode: Dynamic

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

Bits 15:12 MR_ADDR[3:0]: Address of the mode register that is to be written to.

Don't Care for LPDDR2/LPDDR3/LPDDR4 (see MRCTRL1.mr_data for mode register addressing in LPDDR2/LPDDR3/LPDDR4)

This signal is also used for writing to control words of the register chip on RDIMMs/LRDIMMs. In that case, it corresponds to the bank address bits sent to the RDIMM/LRDIMM

In case of DDR4, the bit[3:2] corresponds to the bank group bits. Therefore, the bit[3] as well as the bit[2:0] must be set to an appropriate value which is considered both the Address Mirroring of UDIMMs/RDIMMs/LRDIMMs and the Output Inversion of RDIMMs/LRDIMMs.

Programming mode: Dynamic

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

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

Bit 0 MR_TYPE: Indicates whether the mode register operation is read or write. Only used for LPDDR2/LPDDR3/LPDDR4/DDR4.
- 0 - Write, MRCTRL register does not support MR read for LPDDR2/3
- 1 - Reserved
Programming mode: Dynamic

5.7.4 DDRCTRL mode register read/write control register 1 (DDRCTRL_MRCTRL1)

Address offset: 0x014

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
MR_DATA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 15:0 MR_DATA[15:0]: Mode register write data for all non-LPDDR2/non-LPDDR3/non-LPDDR4 modes.
For LPDDR2/LPDDR3/LPDDR4, MRCTRL1[15:0] are interpreted as
[15:8] MR Address
[7:0] MR data for writes, don't care for reads. This is 18-bits wide in configurations with DDR4 support and 16-bits in all other configurations.
Programming mode: Dynamic

ST logo
ST logo

5.7.5 DDRCTRL mode register read/write status register (DDRCTRL_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.Res.Res.Res.Res.Res.Res.Res.Res.MR_WR_BUSY
r

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

Bit 0 MR_WR_BUSY: The SoC core may initiate a MR write operation only if this signal is low. This signal goes high in the clock after the DDCCTRL accepts the MRW/MRR request. It goes low when the MRW/MRR command is issued to the SDRAM. It is recommended not to perform MRW/MRR commands when 'MRSTAT.mr_wr_busy' is high.

Programming mode: Dynamic

5.7.6 DDRCTRL temperature derate enable register (DDRCTRL_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.Res.Res.Res.Res.Res.Res.DERATE_BYTE[3:0]Res.DERATE_VALUE[1:0]DERATE_ENABLE
rwrwrwrwrwrw

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

5.7.7 DDRCTRL temperature derate interval register (DDRCTRL_DERATEINT)

Address offset: 0x024

Reset value: 0x0080 0000

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

5.7.8 DDRCTRL low power control register (DDRCTRL_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.Res.DIS_CAM_DRAIN_SELFREFRes.SELFREF_SWRes.EN_DFI_DRAM_CLK_DISABLEDEEPPowerDOWN_ENPowerDOWN_ENSELFREF_EN
rwrwrwrwrwrw

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

Bit 7 DIS_CAM_DRAIN_SELFREF: Indicates whether skipping CAM draining is allowed when entering Self-Refresh.

This register field cannot be modified while PWRCTL.selfref_sw==1.

- 0 - CAMs must be empty before entering SR

- 1 - CAMs are not emptied before entering SR (unsupported)

Note, PWRCTL.dis_cam_drain_selfref=1 is unsupported in this release.

PWRCTL.dis_cam_drain_selfref=0 is required.

Programming mode: Dynamic

Bit 6 Reserved, must be kept at reset value.

Bit 5 SELFREF_SW: A value of 1 to this register causes system to move to Self Refresh state immediately, as long as it is not in INIT or DPD/MPSM operating_mode. This is referred to as Software Entry/Exit to Self Refresh.

- 1 - Software Entry to Self Refresh

- 0 - Software Exit from Self Refresh

Programming mode: Dynamic

Bit 4 Reserved, must be kept at reset value.

Bit 3 EN_DFI_DRAM_CLK_DISABLE: Enable the assertion of dfi_dram_clk_disable whenever a clock is not required by the SDRAM.

If set to 0, dfi_dram_clk_disable is never asserted.

Assertion of dfi_dram_clk_disable is as follows:

In DDR2/DDR3, can only be asserted in Self Refresh.

In DDR4, can be asserted in following:

In mDDR/LPDDR2/LPDDR3, can be asserted in following:

In LPDDR4, can be asserted in following:

Programming mode: Dynamic

Bit 2 DEEPPOWERDOWN_EN: When this is 1, DDRCTRL puts the SDRAM into deep power-down mode when the transaction store is empty.

This register must be reset to '0' to bring DDRCTRL out of deep power-down mode. Controller performs automatic SDRAM initialization on deep power-down exit.

Present only in designs configured to support mDDR or LPDDR2 or LPDDR3. For non-mDDR/non-LPDDR2/non-LPDDR3, this register should not be set to 1.

For performance only

Programming mode: Dynamic

Bit 1 POWERDOWN_EN: If true then the DDRCTRL goes into power-down after a programmable number of cycles "maximum idle clocks before power down" (PWRTMG.powerdown_to_x32).

This register bit may be re-programmed during the course of normal operation.

Programming mode: Dynamic

Bit 0 SELFREF_EN: If true then the DDRCTRL puts the SDRAM into Self Refresh after a programmable number of cycles "maximum idle clocks before Self Refresh (PWRTMG.selfref_to_x32)". This register bit may be re-programmed during the course of normal operation.

Programming mode: Dynamic

5.7.9 DDRCTRL low power timing register (DDRCTRL_PWRTMG)

Address offset: 0x034

Reset value: 0x0040 2010

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

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

Bits 23:16 SELFREF_TO_X32[7:0]: After this many clocks of the DDRC command channel being idle the DDRCTRL automatically puts the SDRAM into Self Refresh. The DDRC command channel is considered idle when there are no HIF commands outstanding. This must be enabled in the PWRCTRL.selfref_en.

Unit: Multiples of 32 DFI clocks.

For performance only.

Programming mode: Quasi-dynamic Group 4

Bits 15:8 T_DPD_X4096[7:0]: Minimum deep power-down time.

For mDDR, value from the JEDEC specification is 0 as mDDR exits from deep power-down mode immediately after PWRCTRL.deeppowerdown_en is de-asserted.

For LPDDR2/LPDDR3, value from the JEDEC specification is 500 us.

Unit: Multiples of 4096 DFI clocks.

Present only in designs configured to support mDDR, LPDDR2 or LPDDR3.

For performance only.

Programming mode: Quasi-dynamic Group 4

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

Bits 4:0 POWERDOWN_TO_X32[4:0]: After this many clocks of the DDRC command channel being idle the DDRCTRL automatically puts the SDRAM into power-down. The DDRC command channel is considered idle when there are no HIF commands outstanding. This must be enabled in the PWRCTRL.powerdown_en.

Unit: Multiples of 32 DFI clocks

For performance only.

Programming mode: Quasi-dynamic Group 4

5.7.10 DDRCTRL hardware low power control register (DDRCTRL_HWLPCTL)

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 hw_lp_idle * 32 cycles if not in INIT or DPD/MPSM operating_mode. The DDRC command channel is considered idle when there are no HIF commands outstanding. The hardware idle function is disabled when hw_lp_idle_x32=0.
Unit: Multiples of 32 DFI clocks.

For performance only.

Programming mode: Static

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

Bit 1 HW_LP_EXIT_IDLE_EN: When this bit is programmed 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 self-refresh modes. Note, it does not cause exit of Self-Refresh that is caused by Hardware Low power interface and/or software (PWRCTL.selfref_sw).

Programming mode: Static

Bit 0 HW_LP_EN: Enable for hardware low power interface.

Programming mode: Quasi-dynamic Group 3

5.7.11 DDRCTRL refresh control register 0 (DDRCTRL_RFSHCTL0)

Address offset: 0x050

Reset value: 0x0021 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.REFRESH_MARGIN[3:0]Res.Res.Res.REFRESH_TO_X32[4]
rwrwrwrwrw
1514131211109876543210
REFRESH_TO_X32[3:0]Res.Res.Res.REFRESH_BURST[4:0]Res.PER_BANK_REFRESHRes.Res.
rwrwrwrwrwrwrwrwrwrw

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

Bits 23:20 REFRESH_MARGIN[3:0]: Threshold value in number of DFI clock cycles before the critical refresh or page timer expires. A critical refresh is to be issued before this threshold is reached. It is recommended that this not be changed from the default value, currently shown as 0x2. It must always be less than internally used t_rfc_nom/32. Note that internally used t_rfc_nom is equal to RFSHTMG.t_rfc_nom_x1_x32 * 32 if RFSHTMG.t_rfc_nom_x1_sel=0. If RFSHTMG.t_rfc_nom_x1_sel=1 (for LPDDR2/LPDDR3/LPDDR4 per-bank refresh only), internally used t_rfc_nom is equal to RFSHTMG.t_rfc_nom_x1_x32. Note that, in LPDDR2/LPDDR3/LPDDR4, internally used t_rfc_nom may be divided by four if derating is enabled (DERATEEN.derate_enable=1).

Unit: Multiples of 32 DFI clocks.

Programming mode: Dynamic - Refresh Related

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

Bits 16:12 REFRESH_TO_X32[4:0]: If the refresh timer (tRFCnom, also known as tREFI) has expired at least once, but it has not expired (RFSHCTL0.refresh_burst+1) times yet, then a speculative refresh may be performed. A speculative refresh is a refresh performed at a time when refresh would be useful, but before it is absolutely required. When the SDRAM bus is idle for a period of time determined by this RFSHCTL0.refresh_to_x32 and the refresh timer has expired at least once since the last refresh, then a speculative refresh is performed. Speculative refreshes continue 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 clocks.

Programming mode: Dynamic - Refresh Related

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

Bits 8:4 REFRESH_BURST[4:0]: The programmed value + 1 is the number of refresh timeouts that is allowed to accumulate before traffic is blocked and the 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. Therefore, performing refreshes in a burst reduces the per-refresh penalty of these page closings. Higher numbers for RFSHCTL0.refresh_burst slightly increases utilization; lower numbers decreases the worst-case latency associated with refreshes.

- 0 - single refresh

- 1 - burst-of-2 refresh

- 7 - burst-of-8 refresh

For information on burst refresh feature refer to section 3.9 of DDR2 JEDEC specification - JESD79-2F.pdf.

For DDR2/3, the refresh is always per-rank and not per-bank. The rank refresh can be accumulated over 8*tREFI cycles using the burst refresh feature.

In DDR4 mode, according to Fine Granularity feature, 8 refreshes can be postponed in 1X mode, 16 refreshes in 2X mode and 32 refreshes in 4X mode. If using PHY-initiated updates, care must be taken in the setting of RFSHCTL0.refresh_burst, to ensure that tRFCmax is not violated due to a PHY-initiated update occurring shortly before a refresh burst was due. In this situation, the refresh burst is delayed until the PHY-initiated update is complete.

Programming mode: dynamic - refresh related

Bit 3 Reserved, must be kept at reset value.

Bit 2 PER_BANK_REFRESH:

- 1 - Per bank refresh;

- 0 - All bank refresh.

Per bank refresh allows traffic to flow to other banks. Per bank refresh is not supported by all LPDDR2 devices but should be supported by all LPDDR3/LPDDR4 devices. Present only in designs configured to support LPDDR2/LPDDR3/LPDDR4

Programming mode: Static

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

5.7.12 DDRCTRL refresh control register 3 (DDRCTRL_RFSHCTL3)

Address offset: 0x060

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.REFRESH_UPDATE_LEVELDIS_AUTO_REFRESH
rwrw

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

Bit 1 REFRESH_UPDATE_LEVEL: Toggles this signal (either from 0 to 1 or from 1 to 0) to indicate that the refresh register(s) have been updated.
refresh_update_level must not be toggled when the DDRC is in reset (core_ddrc_rstn = 0).
The refresh register(s) are automatically updated when exiting reset.
Programming mode: Dynamic

Bit 0 DIS_AUTO_REFRESH: When '1', disable auto-refresh generated by the DDRCTRL. When auto-refresh is disabled, the SoC core must generate refreshes using the registers DBGCMD.rankn_refresh.
When dis_auto_refresh transitions from 0 to 1, any pending refreshes are immediately scheduled by the DDRCTRL.
If DDR4 CRC/parity retry is enabled (CRCPARCTL1.crc_parity_retry_enable = 1), disable auto-refresh is not supported, and this bit must be set to '0'.
(DDR4 only) If FGR mode is enabled (RFSHCTL3.refresh_mode > 0), disable auto-refresh is not supported, and this bit must be set to '0'.
This register field is changeable on the fly.
Programming mode: Dynamic - Refresh Related

5.7.13 DDRCTRL refresh timing register (DDRCTRL_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
LPDDR3_TREFBW_ENRes.Res.Res.Res.Res.T_RFC_MIN[9:0]
rwrwrwrwrwrwrwrwrwrwrw

Bit 31 T_RFC_NOM_X1_SEL: Specifies whether the t_rfc_nom_x1_x32 register value is x1 or x32.
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]: tREFI: Average time interval between refreshes per rank
(Specification: 7.8us for DDR2, DDR3 and DDR4. See JEDEC specification for mDDR, LPDDR2, LPDDR3 and LPDDR4).

For LPDDR2/LPDDR3/LPDDR4:

When the controller is operating in 1:2 frequency ratio mode, program this to (tREFI/2), no rounding up.

In DDR4 mode, tREFI value is different depending on the refresh mode. The user should program the appropriate value from the spec based on the value programmed in the refresh mode register.

Note that if RFSHTMG.t_rfc_nom_x1_sel == 1, RFSHTMG.t_rfc_nom_x1_x32 must be greater than RFSHTMG.t_rfc_min; if RFSHTMG.t_rfc_nom_x1_sel == 0, RFSHTMG.t_rfc_nom_x1_x32 * 32 must be greater than RFSHTMG.t_rfc_min; RFSHTMG.t_rfc_nom_x1_x32 must be greater than 0x1.

Unit: Clocks or multiples of 32 clocks, depending on RFSHTMG.t_rfc_nom_x1_sel.

Programming mode: Dynamic - Refresh Related

Bit 15 LPDDR3_TREFBW_EN: Used only when LPDDR3 memory type is connected. Should only be changed when DDRCTRL is in reset. Specifies whether to use the tREFBW parameter (required by some LPDDR3 devices which comply with earlier versions of the LPDDR3 JEDEC specification) or not:

Programming mode: Static

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

Bits 9:0 T_RFC_MIN[9:0]: tRFC (min): Minimum time from refresh to refresh or activate.

When the controller is operating in 1:1 mode, t_rfc_min should be set to RoundUp(tRFCmin/tCK).

When the controller is operating in 1:2 mode, t_rfc_min should be set to RoundUp(RoundUp(tRFCmin/tCK)/2).

In LPDDR2/LPDDR3/LPDDR4 mode:

In DDR4 mode, the tRFCmin value in the above equations is different depending on the refresh mode (fixed 1X,2X,4X) and the device density. The user should program the appropriate value from the spec based on the 'refresh_mode' and the device density that is used.

Unit: Clocks.

Programming mode: Dynamic - Refresh Related

5.7.14 DDRCTRL CRC parity control register 0 (DDRCTRL_CRCPARCTL0)

Address offset: 0x0C0

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

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

Bit 2 DFI_ALERT_ERR_CNT_CLR: DFI alert error count clear. Clear bit for DFI alert error counter. Asserting this bit, clears the DFI alert error counter, CRCPARSTAT.dfi_alert_err_cnt. When the clear operation is complete, the DDRCTRL automatically clears this bit.

Programming mode: Dynamic

Bit 1 DFI_ALERT_ERR_INT_CLR: Interrupt clear bit for DFI alert error. If this bit is set, the alert error interrupt on CRCPARSTAT.dfi_alert_err_int is cleared. When the clear operation is complete, the DDCRTL automatically clears this bit.

Programming mode: Dynamic

Bit 0 DFI_ALERT_ERR_INT_EN: Interrupt enable bit for DFI alert error. If this bit is set, any parity/CRC error detected on the dfi_alert_n input results in an interrupt being set on CRCPARSTAT.dfi_alert_err_int.

Programming mode: Dynamic

5.7.15 DDCRTL CRC parity status register (DDRCTRL_CRCPARSTAT)

Address offset: 0x0CC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DFI_ALERT_ERR_INT
r
1514131211109876543210
DFI_ALERT_ERR_CNT[15:0]
rrrrrrrrrrrrrrrr

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

Bit 16 DFI_ALERT_ERR_INT: DFI alert error interrupt.

If a parity/CRC error is detected on dfi_alert_n, and the interrupt is enabled by CRCPARCTL0.dfi_alert_err_int_en, this interrupt bit is set. It remains set until cleared by CRCPARCTL0.dfi_alert_err_int_clr

Programming mode: Static

Bits 15:0 DFI_ALERT_ERR_CNT[15:0]: DFI alert error count.

If a parity/CRC error is detected on dfi_alert_n, this counter be incremented. This is independent of the setting of CRCPARCTL0.dfi_alert_err_int_en. It saturates at 0xFFFF, and can be cleared by asserting CRCPARCTL0.dfi_alert_err_cnt_clr.

Programming mode: Static

5.7.16 DDRCTRL SDRAM initialization register 0 (DDRCTRL_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]: If lower bit is enabled the SDRAM initialization routine is skipped. The upper bit decides what state the controller starts up in when reset is removed

Programming mode: Quasi-dynamic Group 2

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

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

Unit: 1024 DFI clock cycles.

DDR2 typically requires a 400 ns delay, requiring this value to be programmed to 2 at all clock speeds.

LPDDR2/LPDDR3 typically requires this to be programmed for a delay of 200 us.

LPDDR4 typically requires this to be programmed for a delay of 2 us.

When the controller is operating in 1:2 frequency ratio mode, program this to JEDEC spec value divided by 2, and round it up to the next integer value.

Programming mode: Static

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

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

Unit: 1024 DFI clock cycles.

DDR2 specifications typically require this to be programmed for a delay of >= 200 us.

LPDDR2/LPDDR3: tINIT1 of 100 ns (min)

LPDDR4: tINIT3 of 2 ms (min)

When the controller is operating in 1:2 frequency ratio mode, program this to JEDEC spec value divided by 2, and round it up to the next integer value.

For DDR3/DDR4 RDIMMs, this should include the time needed to satisfy tSTAB

Programming mode: Static

5.7.17 DDRCTRL SDRAM initialization register 1 (DDRCCTRL_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 init sequence.

This is only present for designs supporting DDR3, DDR4 or LPDDR4 devices. For use with a DDR PHY, this should be set to a minimum of 1.

When the controller is operating in 1:2 frequency ratio mode, program this to JEDEC spec value divided by 2, and round it up to the next integer value.

Unit: 1024 DFI clock cycles.

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.

Unit: Counts of a global timer that pulses every 32 DFI clock cycles.

There is no known specific requirement for this; it may be set to zero.

Programming mode: Static

5.7.18 DDRCTRL SDRAM initialization register 2 (DDRCCTRL_INIT2)

Address offset: 0x0D8

Reset value: 0x0000 0D05

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
IDLE_AFTER_RESET_X32[7:0]Res.Res.Res.Res.MIN_STABLE_CLOCK_X1[3:0]
rwrwrwrwrwrwrwrw

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

Bits 15:8 IDLE_AFTER_RESET_X32[7:0]: Idle time after the reset command, tINIT4. Present only in designs configured to support LPDDR2.

When the controller is operating in 1:2 frequency ratio mode, program this to JEDEC spec value divided by 2, and round it up to the next integer value.

Unit: 32 DFI clock cycles.

Programming mode: Static

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

Bits 3:0 MIN_STABLE_CLOCK_X1[3:0]: Time to wait after the first CKE high, tINIT2. Present only in designs configured to support LPDDR2/LPDDR3.

LPDDR2/LPDDR3 typically requires 5 x tCK delay.

When the controller is operating in 1:2 frequency ratio mode, program this to JEDEC spec value divided by 2, and round it up to the next integer value.

Unit: DFI clock cycles.

Programming mode: Static

5.7.19 DDRCTRL SDRAM initialization register 3 (DDRCTRL_INIT3)

Address offset: 0x0DC

Reset value: 0x0000 0510

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

Bits 31:16 MR[15:0]: DDR2: Value to write to MR register. Bit 8 is for DLL and the setting here is ignored. The DDRCTRL sets this bit appropriately.

DDR3/DDR4: Value loaded into MR0 register.

mDDR: Value to write to MR register.

LPDDR2/LPDDR3/LPDDR4 - Value to write to MR1 register

Programming mode: Quasi-dynamic Group 1 and Group 4

Bits 15:0 EMR[15:0]: DDR2: Value to write to EMR register. Bits 9:7 are for OCD and the setting in this register is ignored. The DDRCTRL sets those bits appropriately.

DDR3/DDR4: Value to write to MR1 register Set bit 7 to 0. If PHY-evaluation mode training is enabled, this bit is set appropriately by the DDRCTRL during write leveling.

mDDR: Value to write to EMR register.

LPDDR2/LPDDR3/LPDDR4 - Value to write to MR2 register

Programming mode: Quasi-dynamic Group 4

5.7.20 DDRCCTRL SDRAM initialization register 4 (DDRCCTRL_INIT4)

Address offset: 0x0E0

Reset value: 0x0000 0000

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

Bits 31:16 EMR2[15:0]: DDR2: Value to write to EMR2 register.

DDR3/DDR4: Value to write to MR2 register

LPDDR2/LPDDR3/LPDDR4: Value to write to MR3 register

mDDR: Unused

Programming mode: Quasi-dynamic Group 4

Bits 15:0 EMR3[15:0]: DDR2: Value to write to EMR3 register.

DDR3/DDR4: Value to write to MR3 register

mDDR/LPDDR2/LPDDR3: Unused

LPDDR4: Value to write to MR13 register

Programming mode: Quasi-dynamic Group 2 and Group 4

5.7.21 DDRCCTRL SDRAM initialization register 5 (DDRCCTRL_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.MAX_AUTO_INIT_X1024[9:0]
rwrwrwrwrwrwrwrwrwrw

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

Bits 23:16 DEV_ZQINIT_X32[7:0]: ZQ initial calibration, tZQINIT. Present only in designs configured to support DDR3 or DDR4 or LPDDR2/LPDDR3.

DDR3 typically requires 512 SDRAM clock cycles.

DDR4 requires 1024 SDRAM clock cycles.

LPDDR2/LPDDR3 requires 1 us.

When the controller is operating in 1:2 frequency ratio mode, program this to JEDEC spec value divided by 2, and round it up to the next integer value.

Unit: 32 DFI clock cycles.

Programming mode: Static

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

Bits 9:0 MAX_AUTO_INIT_X1024[9:0]: Maximum duration of the auto initialization, tINIT5. Present only in designs configured to support LPDDR2/LPDDR3.
LPDDR2/LPDDR3 typically requires 10 us.
Unit: 1024 DFI clock cycles.
Programming mode: Static

5.7.22 DDRCTRL DIMM control register (DDRCTRL_DIMMCTL)

Address offset: 0x0F0

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.DIMM_ADDR_MIRR_ENDIMM_STAGGER_CS_EN
rwrw

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

Bit 1 DIMM_ADDR_MIRR_EN: Address Mirroring Enable (for multi-rank UDIMM implementations and multi-rank DDR4 RDIMM/LRDIMM implementations).

Some UDIMMs and DDR4 RDIMMs/LRDIMMs implement address mirroring for odd ranks, which means that the following address, bank address and bank group bits are swapped: (A3, A4), (A5, A6), (A7, A8), (BA0, BA1) and also (A11, A13), (BG0, BG1) for the DDR4. Setting this bit ensures that, for mode register accesses during the automatic initialization routine, these bits are swapped within the DDRCTRL to compensate for this UDIMM/RDIMM/LRDIMM swapping. In addition to the automatic initialization routine, in case of DDR4 UDIMM/RDIMM/LRDIMM, they are swapped during the automatic MRS access to enable/disable of a particular DDR4 feature.

Note: This has no effect on the address of any other memory accesses, or of software-driven mode register accesses.

This is not supported for mDDR, LPDDR2, LPDDR3 or LPDDR4 SDRAMs.

Note: In case of x16 DDR4 DIMMs, BG1 output of MRS for the odd ranks is same as BG0 because BG1 is invalid, hence dimm_dis_bg_mirroring register must be set to 1.

- 1 - For odd ranks, implement address mirroring for MRS commands to during initialization and for any automatic DDR4 MRS commands (to be used if UDIMM/RDIMM/LRDIMM implements address mirroring)

- 0 - Do not implement address mirroring

Programming mode: Static

Bit 0 DIMM_STAGGER_CS_EN: Staggering enable for multi-rank accesses (for multi-rank UDIMM, RDIMM and LRDIMM implementations only). This is not supported for mDDR, LPDDR2, LPDDR3 or LPDDR4 SDRAMs.

Note: Even if this bit is set it does not take care of software driven MR commands (via MRCTRL0/MRCTRL1), where software is responsible to send them to separate ranks as appropriate.

Programming mode: Static.

5.7.23 DDRCTRL SDRAM timing register 0 (DDRCTRL_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.

Unit: Clocks

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

where:

Add one extra cycle for LPDDR2/LPDDR3/LPDDR4 for this parameter.

When the controller is operating in 1:2 frequency ratio mode, 1T mode, divide the above value by 2. No rounding up.

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

Note that, 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.

Programming mode: Quasi-dynamic Group 1 and Group 2 and Group 4.

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

5.7.24 DDRCTRL SDRAM timing register 1 (DDRCTRL_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
ST logo
ST logo

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

Bits 13:8 RD2PRE[5:0]: tRTP: Minimum time from read to precharge of same bank.

- DDR2: tAL+BL/2+max(tRTP,2)-2

- DDR3: tAL+max(tRTP,4)

- DDR4: Max of following two equations:

tAL+max(tRTP,4) or,

RL+BL/2-tRP(*).

- mDDR: BL/2

- LPDDR2: Depends on if it's LPDDR2-S2 or LPDDR2-S4:

LPDDR2-S2: BL/2+tRTP-1.

LPDDR2-S4: BL/2+max(tRTP,2)-2.

- LPDDR3: BL/2+max(tRTP,4)-4

- LPDDR4: BL/2+max(tRTP,8)-8

(*) When both DDR4 SDRAM and ST-MRAM are used simultaneously, use SDRAM's tRP value for calculation.

When the controller is operating in 1:2 mode, 1T mode, divide the above value by 2. No rounding up.

When the controller is operating in 1:2 mode, 2T mode or LPDDR4 mode, divide the above value by 2 and round it up to the next integer value.

Unit: Clocks.

Programming mode: Quasi-dynamic Group 1 and Group 2 and Group 4

Bit 7 Reserved, must be kept at reset value.

Bits 6:0 T_RC[6:0]: tRC: Minimum time between activates to same bank.

When the controller is operating in 1:2 frequency ratio mode, program this to (tRC/2) and round up to next integer value.

Unit: Clocks.

Programming mode: Quasi-dynamic Group 2 and Group 4.

5.7.25 DDRCCTRL SDRAM timing register 2 (DDRCCTRL_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]: Set to WL

The time from write command to write data on SDRAM interface. This must be set to WL.

For mDDR, it should normally be set to 1.

Note that, depending on the PHY, if using RDIMM/LRDIMM, it may be necessary to adjust the value of WL to compensate for the extra cycle of latency through the RDIMM/LRDIMM.

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.

This register field is not required for DDR2 and DDR3 (except if MEMC_TRAINING is set), as the DFI read and write latencies defined in DFITMG0 and DFITMG1 are sufficient for those protocols.

Unit: clocks.

Programming mode: Quasi-dynamic Group 1 and Group 2 and Group 4.

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

Bits 21:16 READ_LATENCY[5:0]: Set to RL

The time from read command to read data on SDRAM interface. This must be set to RL.

Note that, depending on the PHY, if using RDIMM/LRDIMM, it may be necessary to adjust the value of RL to compensate for the extra cycle of latency through the RDIMM/LRDIMM.

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.

This register field is not required for DDR2 and DDR3 (except if MEMC_TRAINING is set), as the DFI read and write latencies defined in DFITMG0 and DFITMG1 are sufficient for those protocols.

Unit: clocks.

Programming mode: Quasi-dynamic Group 1 and Group 2 and Group 4.

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

Bits 13:8 RD2WR[5:0]:

DDR2/3/mDDR: RL+BL/2+2-WL

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

LPDDR2/LPDDR3: RL+BL/2+RU(tDQSCKmax/tCK)+1-WL

LPDDR4(DQ ODT is Disabled): \(RL + BL/2 + RU(tDQSCKmax/tCK) + WR\_PREAMBLE + RD\_POSTAMBLE - WL\) LPDDR4(DQ ODT is Enabled) : \(RL + BL/2 + RU(tDQSCKmax/tCK) + RD\_POSTAMBLE - ODTLon - RU(tODTon(min)/tCK)\)

Minimum time from read command to write command. Include time for bus turnaround and all per-bank, per-rank, and global constraints. Please see the relevant PHY databook for details of what should be included here.

Unit: Clocks.

Where:

- WL = write latency

- BL = burst length. This must match the value programmed in the BL bit of the mode register to the SDRAM

- RL = read latency = CAS latency

- WR_PREAMBLE = write preamble. This is unique to DDR4 and LPDDR4.

- RD_POSTAMBLE = read postamble. This is unique to LPDDR4.

For LPDDR2/LPDDR3/LPDDR4, if derating is enabled (DERATEEN.derate_enable=1), derated tDQSCKmax should be used.

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.

Note that, 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.

Programming mode: Quasi-dynamic Group 1 and Group 2 and Group 4

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

Bits 5:0 WR2RD[5:0]:

DDR4: CWL+PL+BL/2+tWTR_L

LPDDR2/3/4: WL+BL/2+tWTR+1

Others: CWL+BL/2+tWTR

In DDR4, minimum time from write command to read command for same bank group. In others, minimum time from write command to read command. Includes time for bus turnaround, recovery times, and all per-bank, per-rank, and global constraints.

Unit: Clocks.

Where:

- CWL = CAS write latency

- WL = Write latency

- PL = Parity latency

- BL = burst length. This must match the value programmed in the BL bit of the mode register to the SDRAM

- tWTR_L = internal write to read command delay for same bank group. This comes directly from the SDRAM specification.

- tWTR = internal write to read command delay. This comes directly from the SDRAM specification.

Add one extra cycle for LPDDR2/LPDDR3/LPDDR4 operation.

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

Programming mode: Quasi-dynamic Group 1 and Group 2 and Group 4

5.7.26 DDRCTRL SDRAM timing register 3 (DDRCTRL_DRAMTMG3)

Address offset: 0x10C

Reset value: 0x0050 400C

31302928272625242322212019181716
Res.Res.T_MRW[9:0]Res.Res.T_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).
Present only in designs configured to support LPDDR2, LPDDR3 or LPDDR4.
LPDDR2 typically requires value of 5.
LPDDR3 typically requires value of 10.
LPDDR4: Set this to the larger of tMRW and tMRWCKEL.
For LPDDR2, this register is used for the time from a MRW/MRR to all other commands.
When the controller is operating in 1:2 frequency ratio mode, program this to the above values divided by 2 and round it up to the next integer value.
For LDPDR3, this register is used for the time from a MRW/MRR to a MRW/MRR.
Programming mode: Quasi-dynamic Group 2 and Group 4

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

Bits 17:12 T_MRD[5:0]: tMRD: Cycles to wait after a mode register write or read. Depending on the connected SDRAM, tMRD represents:
DDR2/mDDR: Time from MRS to any command
DDR3/4: Time from MRS to MRS command
LPDDR2: not used
LPDDR3/4: Time from MRS to non-MRS command.
When the controller is operating in 1:2 frequency ratio mode, program this to (tMRD/2) and round it up to the next integer value.
If C/A parity for DDR4 is used, set to tMRD_PAR(tMOD+PL) instead.
Programming mode: Quasi-dynamic Group 2 and Group 4

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

Bits 9:0 T_MOD[9:0]: tMOD: Parameter used only in DDR3 and DDR4. Cycles between load mode command and following non-load mode command.

If C/A parity for DDR4 is used, set to tMOD_PAR(tMOD+PL) instead.

If MPR writes for DDR4 are used, set to tMOD + AL (or tMPD_PAR + AL if C/A parity is also used).

Set to tMOD if controller is operating in 1:1 frequency ratio mode, or tMOD/2 (rounded up to next integer) if controller is operating in 1:2 frequency ratio mode. Note that if using RDIMM/LRDIMM, depending on the PHY, it may be necessary to adjust the value of this parameter to compensate for the extra cycle of latency applied to mode register writes by the RDIMM/LRDIMM chip.

Also note that if using LRDIMM, the minimum value of this register is tMRD_L2 if controller is operating in 1:1 frequency ratio mode, or tMRD_L2/2 (rounded up to next integer) if controller is operating in 1:2 frequency ratio mode.

Programming mode: Quasi-dynamic Group 2 and Group 4

5.7.27 DDRCCTRL SDRAM timing register 4 (DDRCCTRL_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]: tRCD - tAL: Minimum time from activate to read or write command to same bank. When the controller is operating in 1:2 frequency ratio mode, program this to ((tRCD-tAL)/2) and round it up to the next integer value.

Minimum value allowed for this register is 1, which implies minimum (tRCD - tAL) value to be 2 when the controller is operating in 1:2 frequency ratio mode.

Unit: Clocks.

Programming mode: Quasi-dynamic Group 1 and Group 2 and Group 4

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

Bits 19:16 T_CCD[3:0]: DDR4: tCCD_L: This is the minimum time between two reads or two writes for same bank group.

Others: tCCD: This is the minimum time between two reads or two writes.

When the controller is operating in 1:2 frequency ratio mode, program this to \((tCCD_L/2)\) or tCCD/2 and round it up to the next integer value.

Unit: clocks.

Programming mode: Quasi-dynamic Group 2 and Group 4.

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

Bits 11:8 T_RRD[3:0]: DDR4: tRRD_L: Minimum time between activates from bank "a" to bank "b" for same bank group.

Others: tRRD: Minimum time between activates from bank "a" to bank "b"

When the controller is operating in 1:2 frequency ratio mode, program this to (tRRD_L/2 or tRRD/2) and round it up to the next integer value.

Unit: Clocks.

Programming mode: Quasi-dynamic Group 2 and Group 4.

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

Bits 4:0 T_RP[4:0]: tRP: Minimum time from precharge to activate of same bank.

When the controller is operating in 1:1 frequency ratio mode, t_rp should be set to RoundUp(tRP/tCK).

When the controller is operating in 1:2 frequency ratio mode, t_rp should be set to RoundDown(RoundUp(tRP/tCK)/2) + 1.

When the controller is operating in 1:2 frequency ratio mode in LPDDR4, t_rp should be set to RoundUp(RoundUp(tRP/tCK)/2).

Unit: Clocks.

Programming mode: Quasi-dynamic Group 2 and Group 4.

5.7.28 DDRCTRL SDRAM timing register 5 (DDRCTRL_DRAMTMG5)

Address offset: 0x114

Reset value: 0x0505 0403

31302928272625242322212019181716
Res.Res.Res.Res.T_CKSRX[3:0]Res.Res.Res.Res.T_CKSRE[3:0]
rwrwrwrwrwrwrwrw
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]: This is the time before Self Refresh Exit that CK is maintained as a valid clock before issuing SRX. Specifies the clock stable time before SRX.

Recommended settings:

When the controller is operating in 1:2 frequency ratio mode, program this to recommended value divided by two and round it up to next integer.

Programming mode: Quasi-dynamic Group 2 and Group 4

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

Bits 19:16 T_CKSRE[3:0]: This is the time after Self Refresh Down Entry that CK is maintained as a valid clock. Specifies the clock disable delay after SRE.

Recommended settings:

(*)Only if CRCPARCTL1.caparity_disable_before_sr=0, this register should be increased by PL.

When the controller is operating in 1:2 frequency ratio mode, program this to recommended value divided by two and round it up to next integer.

Programming mode: Quasi-dynamic Group 2 and Group 4

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

Bits 13:8 T_CKESR[5:0]: Minimum CKE low width for Self refresh or Self refresh power down entry to exit timing in memory clock cycles.

Recommended settings:

(*)Only if CRCPARCTL1.caparity_disable_before_sr=0, this register should be increased by PL.

When the controller is operating in 1:2 frequency ratio mode, program this to recommended value divided by two and round it up to next integer.

Programming mode: Quasi-dynamic Group 2 and Group 4

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

Bits 4:0 T_CKE[4:0]: Minimum number of cycles of CKE HIGH/LOW during power-down and self refresh.

When the controller is operating in 1:2 frequency ratio mode, program this to (value described above)/2 and round it up to the next integer value.

Unit: Clocks.

Programming mode: Quasi-dynamic Group 2 and Group 4

5.7.29 DDRCTRL SDRAM timing register 6 (DDRCTRL_DRAMTMG6)

Address offset: 0x118

Reset value: 0x0202 0005

31302928272625242322212019181716
Res.Res.Res.Res.T_CKDPDE[3:0]Res.Res.Res.Res.T_CKDPDX[3:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_CKCSX[3:0]
rwrwrwrw

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

Bits 27:24 T_CKDPDE[3:0]: This is the time after Deep Power Down Entry that CK is maintained as a valid clock. Specifies the clock disable delay after DPDE.

Recommended settings:

When the controller is operating in 1:2 frequency ratio mode, program this to recommended value divided by two and round it up to next integer.

This is only present for designs supporting mDDR or LPDDR2/LPDDR3 devices.

Programming mode: Quasi-dynamic Group 2 and Group 4

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

Bits 19:16 T_CKDPDX[3:0]: This is the time before Deep Power Down Exit that CK is maintained as a valid clock before issuing DPDX. Specifies the clock stable time before DPDX.

Recommended settings:

When the controller is operating in 1:2 frequency ratio mode, program this to recommended value divided by two and round it up to next integer.

This is only present for designs supporting mDDR or LPDDR2 devices.

Programming mode: Quasi-dynamic Group 2 and Group 4

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

Bits 3:0 T_CKCSX[3:0]: This is the time before Clock Stop Exit that CK is maintained as a valid clock before issuing Clock Stop Exit. Specifies the clock stable time before next command after Clock Stop Exit.

Recommended settings:

When the controller is operating in 1:2 frequency ratio mode, program this to recommended value divided by two and round it up to next integer.

This is only present for designs supporting mDDR or LPDDR2/LPDDR3/LPDDR4 devices.

Programming mode: Quasi-dynamic Group 2 and Group 4

5.7.30 DDRCTRL SDRAM timing register 7 (DDRCTRL_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]: This is the time after Power Down Entry that CK is maintained as a valid clock. Specifies the clock disable delay after PDE.

Recommended settings:

When using DDR2/3/4 SDRAM, this register should be set to the same value as DRAMTMG5.t_cksre.

When the controller is operating in 1:2 frequency ratio mode, program this to recommended value divided by two and round it up to next integer.

This is only present for designs supporting mDDR or LPDDR2/LPDDR3/LPDDR4 devices.

Programming mode: Quasi-dynamic Group 2 and Group 4

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

Bits 3:0 T_CKPDx[3:0]: This is the time before Power Down Exit that CK is maintained as a valid clock before issuing PDX. Specifies the clock stable time before PDX.

Recommended settings:

When using DDR2/3/4 SDRAM, this register should be set to the same value as DRAMTMG5.t_cksrx.

When the controller is operating in 1:2 frequency ratio mode, program this to recommended value divided by two and round it up to next integer.

This is only present for designs supporting mDDR or LPDDR2/LPDDR3/LPDDR4 devices.

Programming mode: Quasi-dynamic Group 2 and Group 4

5.7.31 DDRCTRL SDRAM timing register 8 (DDRCTRL_DRAMTMG8)

Address offset: 0x120

Reset value: 0x0000 4405

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

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

Bits 14:8 T_XS_DLL_X32[6:0]: tXSDLL: Exit Self Refresh to the commands requiring a locked DLL.

When the controller is operating in 1:2 frequency ratio mode, program this to the above value divided by 2 and round up to next integer value.

Unit: Multiples of 32 clocks.

Note: Used only for DDR2, DDR3 and DDR4 SDRAMs.

Programming mode: Quasi-dynamic Group 2 and Group 4

Bit 7 Reserved, must be kept at reset value.

Bits 6:0 T_XS_X32[6:0]: tXS: Exit Self Refresh to commands not requiring a locked DLL.

When the controller is operating in 1:2 frequency ratio mode, program this to the above value divided by 2 and round up to next integer value.

Unit: Multiples of 32 clocks.

Note: Used only for DDR2, DDR3 and DDR4 SDRAMs.

Programming mode: Quasi-dynamic Group 2 and Group 4

5.7.32 DDRCTRL SDRAM timing register 14 (DDRCTRL_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]: tXSR: Exit Self Refresh to any command.

When the controller is operating in 1:2 frequency ratio mode, program this to the above value divided by 2 and round up to next integer value.

Note: Used only for mDDR/LPDDR2/LPDDR3/LPDDR4 mode.

Programming mode: Quasi-dynamic Group 2 and Group 4

5.7.33 DDRCTRL SDRAM timing register 15 (DDRCTRL_DRAMTMG15)

Address offset: 0x13C

Reset value: 0x0000 0000

31302928272625242322212019181716
EN_DFI_LP_T_STABRes.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:

Programming mode: Quasi-dynamic Group 2 and Group 4.

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

Bits 7:0 T_STAB_X32[7:0]: tSTAB: Stabilization time.

It is required in the following two cases for DDR3/DDR4 RDIMM:

When the controller is operating in 1:2 frequency ratio mode, program this to recommended value divided by two and round it up to next integer.

Unit: Multiples of 32 clock cycles.

Programming mode: Quasi-dynamic Group 2 and Group 4.

5.7.34 DDRCTRL ZQ control register 0 (DDRCTRL_ZQCTL0)

Address offset: 0x180

Reset value: 0x0200 0040

31302928272625242322212019181716
DIS_AUTO_ZQDIS_SRX_ZQCLZQ_RESISTOR_SHAREDRes.Res.T_ZQ_LONG_NOP[10:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.T_ZQ_SHORT_NOP[9:0]
rwrwrwrwrwrwrwrwrwrw

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

Bits 26:16 T_ZQ_LONG_NOP[10:0]: tZQoper for DDR3/DDR4, tZQCL for LPDDR2/LPDDR3, tZQCAL for LPDDR4: Number of DFI clock cycles of NOP required after a ZQCL (ZQ calibration long)/MPC(ZQ Start) command is issued to SDRAM.

When the controller is operating in 1:2 frequency ratio mode:

DDR3/DDR4: program this to tZQoper/2 and round it up to the next integer value.

LPDDR2/LPDDR3: program this to tZQCL/2 and round it up to the next integer value.

LPDDR4: program this to tZQCAL/2 and round it up to the next integer value.

This is only present for designs supporting DDR3/DDR4 or LPDDR2/LPDDR3/LPDDR4 devices.

Programming mode: Static.

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

Bits 9:0 T_ZQ_SHORT_NOP[9:0]: tZQCS for DDR3/DD4/LPDDR2/LPDDR3, tZQLAT for LPDDR4: Number of DFI clock cycles of NOP required after a ZQCS (ZQ calibration short)/MPC(ZQ Latch) command is issued to SDRAM.

When the controller is operating in 1:2 frequency ratio mode, program this to tZQCS/2 and round it up to the next integer value.

This is only present for designs supporting DDR3/DDR4 or LPDDR2/LPDDR3/LPDDR4 devices.

Programming mode: Static.

5.7.35 DDCRTL ZQ control register 1 (DDRCTRL_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]: tZQReset: Number of DFI clock cycles of NOP required after a ZQReset (ZQ calibration Reset) command is issued to SDRAM.

When the controller is operating in 1:2 frequency ratio mode, program this to tZQReset/2 and round it up to the next integer value.

This is only present for designs supporting LPDDR2/LPDDR3/LPDDR4 devices.

Programming mode: Static.

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

Meaningless, if ZQCTL0.dis_auto_zq=1.

Unit: 1024 DFI clock cycles.

This is only present for designs supporting DDR3/DDR4 or LPDDR2/LPDDR3/LPDDR4 devices.

Programming mode: Static.

5.7.36 DDRCTRL ZQ control register 2 (DDRCTRL_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:

Setting this register bit to 1 triggers a ZQ Reset operation. When the ZQ Reset operation is complete, the DDRCTRL automatically clears this bit. It is recommended NOT to set this register bit if in Init, in Self-Refresh(except LPDDR4) or SR-Powerdown(LPDDR4) or Deep power-down operating modes.

For Self-Refresh(except LPDDR4) or SR-Powerdown(LPDDR4) it is scheduled after SR(except LPDDR4) or SPRD(LPDDR4) has been exited.

For Deep power down, it is not scheduled, although ZQSTAT.zq_reset_busy is de-asserted.

This is only present for designs supporting LPDDR2/LPDDR3/LPDDR4 devices.

Programming mode: Dynamic

5.7.37 DDRCTRL ZQ status register (DDRCTRL_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: SoC core may initiate a ZQ Reset operation only if this signal is low. This signal goes high in the clock after the DDCCTRL 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 signal is high.

Programming mode: Dynamic

5.7.38 DDCCTRL DFI timing register 0 (DDRCTRL_DFITMG0)

Address offset: 0x190

Reset value: 0x0702 0002

31302928272625242322212019181716
Res.Res.Res.DFI_T_CTRL_DELAY[4:0]Res.DFI_T_RDDATA_EN[6:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.DFI_TPHY_WRDATA[5:0]Res.Res.DFI_TPHY_WRLAT[5:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 28:24 DFI_T_CTRL_DELAY[4:0]: Specifies the number of DFI clock cycles after an assertion or de-assertion of the DFI control signals that the control signals at the PHY-DRAM interface reflect the assertion or de-assertion. If the DFI clock and the memory clock are not phase-aligned, this timing parameter should be rounded up to the next integer value. Note that if using RDIMM/LRDIMM, it is necessary to increment this parameter by RDIMM's/LRDIMM's extra cycle of latency in terms of DFI clock.

Programming mode: Quasi-dynamic Group 4

Bit 23 Reserved, must be kept at reset value.

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 the dfi_rddata_en signal.

Refer to PHY specification for correct value.

This corresponds to the DFI parameter trddata_en. Note that, depending on the PHY, if using RDIMM/LRDIMM, it may be necessary to use the adjusted value of CL in the calculation of trddata_en. This is to compensate for the extra cycle(s) of latency through the RDIMM/LRDIMM.

Unit: DFI clock cycles or DFI PHY clock cycles, depending on

DFITMG0.dfi_rddata_use_dfi_phy_clk.

Programming mode: Quasi-dynamic Group 1 and Group 4

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

Bits 13:8 DFI_TPHY_WRDATA[5:0]: Specifies the number of clock cycles between when dfi_wrdata_en is asserted to when the associated write data is driven on the dfi_wrdata signal. This corresponds to the DFI timing parameter tphy_wrdata. Refer to PHY specification for correct value. Note, max supported value is 8.

Unit: DFI clock cycles or DFI PHY clock cycles, depending on

DFITMG0.dfi_wrdata_use_dfi_phy_clk.

Programming mode: Quasi-dynamic Group 4

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

Bits 5:0 DFI_TPHY_WRLAT[5:0]: Write latency

Number of clocks from the write command to write data enable (dfi_wrdata_en). This corresponds to the DFI timing parameter tphy_wrlat.

Refer to PHY specification for correct value. Note that, depending on the PHY, if using RDIMM/LRDIMM, it may be necessary to use the adjusted value of CL in the calculation of tphy_wrlat. This is to compensate for the extra cycle(s) of latency through the RDIMM/LRDIMM.

For LPDDR4, dfi_tphy_wrlat>60 is not supported.

Unit: DFI clock cycles or DFI PHY clock cycles, depending on DFITMG0.dfi_wrdata_use_dfi_phy_clk.

Programming mode: Quasi-dynamic Group 1 and Group 4

5.7.39 DDRCTRL DFI timing register 1 (DDRCTRL_DFITMG1)

Address offset: 0x194

Reset value: 0x0000 0404

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DFI_T_WRDATA_DELAY[4:0]
rwrwrwrwrw
1514131211109876543210
Res.Res.Res.DFI_T_DRAM_CLK_DISABLE[4:0]Res.Res.Res.DFI_T_DRAM_CLK_ENABLE[4:0]
rwrwrwrwrwrwrwrwrwrw

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

Bits 20:16 DFI_T_WRDATA_DELAY[4:0]: Specifies the number of DFI clock cycles between when the dfi_wrdata_en

signal is asserted and when the corresponding write data transfer is completed on the DRAM bus.

This corresponds to the DFI timing parameter twrdata_delay. Refer to PHY specification for correct value.

For DFI 3.0 PHY, set to twrdata_delay, a new timing parameter introduced in DFI 3.0.

For DFI 2.1 PHY, set to tphy_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 PHY's value by 2 and round up to next integer.

If using DFITMG0.dfi_wrdata_use_dfi_phy_clk=1, add 1 to the value.

Unit: Clocks

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]: Specifies the number of DFI clock cycles from the assertion of the dfi_dram_clk_disable signal on the DFI until the clock to the DRAM memory devices, at the PHY-DRAM boundary, maintains a low value. If the DFI clock and the memory clock are not phase aligned, this timing parameter should be rounded up to the next integer value.

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]: Specifies the number of DFI clock cycles from the de-assertion of the dfi_dram_clk_disable signal 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 should be rounded up to the next integer value.

Programming mode: Quasi-dynamic Group 4

5.7.40 DDRCTRL low power configuration register 0 (DDRCTRL_DFILPCFG0)

Address offset: 0x198

Reset value: 0x0700 0000

31302928272625242322212019181716
Res.Res.Res.DFI_TLP_RESP[4:0]DFI_LP_WAKEUP_DPD[3:0]Res.Res.Res.DFI_LP_EN_DPD
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
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
rwrwrwrwrwrwrwrwrwrw

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

Bits 28:24 DFI_TLP_RESP[4:0]: Setting in DFI clock cycles for DFI's tlp_resp time.

Same value is used for both Power Down, Self Refresh, Deep Power Down and Maximum Power Saving modes.

DFI 2.1 specification onwards, recommends using a fixed value of 7 always.

Programming mode: Static

Bits 23:20 DFI_LP_WAKEUP_DPD[3:0]: Value in DFI clock cycles to drive on dfi_lp_wakeup signal when Deep Power Down mode is entered.

Determines the DFI's tlp_wakeup time:

This is only present for designs supporting mDDR or LPDDR2/LPDDR3 devices.

Programming mode: Static.

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

Bit 16 DFI_LP_EN_DPD: Enables DFI Low-power interface handshaking during Deep Power Down Entry/Exit.

This is only present for designs supporting mDDR or LPDDR2/LPDDR3 devices.

Programming mode: Static.

Bits 15:12 DFI_LP_WAKEUP_SR[3:0]: Value in DFI clpck cycles to drive on dfi_lp_wakeup signal when Self Refresh mode is entered.

Determines the DFI's tlp_wakeup time:

Programming mode: Static

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

Bit 8 DFI_LP_EN_SR: Enables DFI Low Power interface handshaking during Self Refresh Entry/Exit.

Programming mode: Static

Bits 7:4 DFI_LP_WAKEUP_PD[3:0]: Value in DFI clock cycles to drive on dfi_lp_wakeup signal when Power Down mode is entered.

Determines the DFI's tlp_wakeup time:

Programming mode: Static

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

Bit 0 DFI_LP_EN_PD: Enables DFI Low Power interface handshaking during Power Down Entry/Exit.
- 0 - Disabled
- 1 - Enabled
Programming mode: Static

5.7.41 DDRCTRL DFI update register 0 (DDRCTRL_DFIUPD0)

Address offset: 0x1A0

Reset value: 0x0040 0003

31302928272625242322212019181716
DIS_AUTO_CTRLUPDDIS_AUTO_CTRLUPD_SRXCTRLUPD_PRE_SRXRes.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: When '1', disable the automatic dfi_ctrlupd_req generation by the DDRCTRL. The core must issue the dfi_ctrlupd_req signal using register DBGCMD.ctrlupd.
When '0', DDRCTRL issues dfi_ctrlupd_req periodically.
Programming mode: Quasi-dynamic Group 3

Bit 30 DIS_AUTO_CTRLUPD_SRX: When '1', disable the automatic dfi_ctrlupd_req generation by the DDRCTRL at self-refresh exit.
When '0', DDRCTRL issues a dfi_ctrlupd_req before or after exiting self-refresh, depending on DFIUPD0.ctrlupd_pre_srx.
Programming mode: Static

Bit 29 CTRLUPD_PRE_SRX: Selects dfi_ctrlupd_req requirements at SRX:
- 0 : send ctrlupd after SRX
- 1 : send ctrlupd before SRX
If DFIUPD0.dis_auto_ctrlupd_srx=1, this register has no impact, because no dfi_ctrlupd_req is issued when SRX.
Programming mode: Static

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

Bits 25:16 DFI_T_CTRLUP_MAX[9:0]: Specifies the maximum number of DFI clock cycles that the dfi_ctrlupd_req signal can assert. Lowest value to assign to this variable is 0x40.
Programming mode: Static

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

Bits 9:0 DFI_T_CTRLUPD_MIN[9:0]: Specifies the minimum number of DFI clock cycles that the dfi_ctrlupd_req signal must be asserted. The DDRCTRL expects the PHY to respond within this time. If the PHY does not respond, the DDRCTRL de-asserts dfi_ctrlupd_req after dfi_t_ctrlup_min + 2 cycles. Lowest value to assign to this variable is 0x3.
Programming mode: Static

5.7.42 DDRCTRL DFI update register 1 (DDRCTRL_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]: This is the minimum amount of time between DDRCTRL initiated DFI update requests (which is executed whenever the DDRCTRL is idle). Set this number higher to reduce the frequency of update requests, which can have a small impact on the latency of the first read request when the DDRCTRL is idle. Minimum allowed value for this field is 1.
Unit: 1024 DFI clock cycles.
Programming mode: Static.

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

Bits 7:0 DFI_T_CTRLUPD_INTERVAL_MAX_X1024[7:0]: This is the maximum amount of time between DDRCTRL initiated DFI update requests. This timer resets with each update request; when the timer expires dfi_ctrlupd_req is sent and traffic is blocked until the dfi_ctrlupd_ackx is received. 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. Minimum allowed value for this field is 1.
Note: Value programmed for DFIUPD1.dfi_t_ctrlupd_interval_max_x1024 must be greater than DFIUPD1.dfi_t_ctrlupd_interval_min_x1024.
Unit: 1024 DFI clock cycles.
Programming mode: Static.

5.7.43 DDRCTRL DFI update register 2 (DDRCTRL_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:

Programming mode: Static

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

5.7.44 DDRCTRL DFI miscellaneous control register (DDRCTRL_DFIMISC)

Address offset: 0x1B0

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.DFI_FREQUENCY[4:0]Res.Res.DFI_INIT_STARTCTL_IDLE_ENRes.Res.Res.DFI_INIT_COMPLETE_EN
rwrwrwrwrwrwrwrw

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

Bits 12:8 DFI_FREQUENCY[4:0]: Indicates the operating frequency of the system. The number of supported frequencies and the mapping of signal values to clock frequencies are defined by the PHY.

Programming mode: Quasi-dynamic Group 1

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

5.7.45 DDRCTRL DFI status register (DDRCCTRL_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

5.7.46 DDRCTRL DFI PHY master register (DDRCTRL_DFIPHYMSTR)

Address offset: 0x1C4

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.DFI_PHYMSTR_EN
rw

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

Bit 0 DFI_PHYMSTR_EN: Enables the PHY Master Interface:

Programming mode: Dynamic

5.7.47 DDRCTRL address map register 1 (DDRCTRL_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]: 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 the value of this field.

If unused, set to 63 and then bank address bit 2 is set to 0.

Programming mode: Static.

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

5.7.48 DDRCTRL address map register 2 (DDRCTRL_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.Res.ADDRMAP_COL_B3[3:0]Res.Res.Res.Res.ADDRMAP_COL_B2[3:0]
rwrwrwrwrwrwrwrw

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 the value of this field.

If unused, set to 15 and then this column address bit is set to 0.

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 the value of this field.

If unused, set to 15 and then this column address bit is set to 0.

Programming mode: Static

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

Bits 11:8 ADDRMAP_COL_B3[3:0]:

Valid Range: 0 to 7

Internal Base: 3

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

Note, if UMCTL2_INCL_ARB=1, MEMC_BURST_LENGTH=16, Full bus width (MSTR.data_bus_width=00) and BL16 (MSTR.burst_rdwr=1000), it is recommended to program this to 0.

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 the value of this field.

Note, if UMCTL2_INCL_ARB=1 and MEMC_BURST_LENGTH=8, it is required to program this to 0 unless:

If UMCTL2_INCL_ARB=1 and MEMC_BURST_LENGTH=16, it is required to program this to 0 unless:

Otherwise, if MEMC_BURST_LENGTH=8 and Full Bus Width (MSTR.data_bus_width==00), it is recommended to program this to 0 so that HIF[2] maps to column address bit 2.

If MEMC_BURST_LENGTH=16 and Full Bus Width (MSTR.data_bus_width==00), it is recommended to program this to 0 so that HIF[2] maps to column address bit 2.

If MEMC_BURST_LENGTH=16 and Half Bus Width (MSTR.data_bus_width==01), it is recommended to program this to 0 so that HIF[2] maps to column address bit 3.

Programming mode: Static

5.7.49 DDRCTRL address map register 3 (DDRCTRL_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.Res.ADDRMAP_COL_B6[3:0]
rwrwrwrwrwrwrwrwrw

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

Bits 28:24 ADDRMAP_COL_B9[4:0]:

Valid Range: 0 to 7, x, and 31. x indicate a valid value in inline ECC configuration.

Internal Base: 9

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

Note: Per JEDEC DDR2/3/mDDR specification, column address bit 10 is reserved for indicating auto-precharge, and hence no source address bit can be mapped to column address bit 10.

In LPDDR2/LPDDR3, there is a dedicated bit for auto-precharge in the CA bus and hence column bit 10 is used.

In Inline ECC configuration (MEMC_INLINE_ECC=1) and ECC is enabled (ECCCFG0.ecc_mode>0), the highest 3 column address bits must map to the highest 3 valid HIF address bits.

If column bit 9 is the highest column address bit, it must map to the highest valid HIF address bit. (x = the highest valid HIF address bit - internal base)

If column bit 9 is the second highest column address bit, it must map to the second highest valid HIF address bit. (x = the highest valid HIF address bit - 1 - internal base)

If column bit 9 is the third highest column address bit, it must map to the third highest valid HIF address bit. (x = the highest valid HIF address bit - 2 - internal base)

If unused, set to 31 and then this column address bit is set to 0.

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, x, and 31. x indicate a valid value in inline ECC configuration.

Internal Base: 8

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

Note: Per JEDEC DDR2/3/mDDR specification, column address bit 10 is reserved for indicating auto-precharge, and hence no source address bit can be mapped to column address bit 10.

In LPDDR2/LPDDR3, there is a dedicated bit for auto-precharge in the CA bus and hence column bit 10 is used.

In Inline ECC configuration (MEMC_INLINE_ECC=1) and ECC is enabled (ECCCFG0.ecc_mode>0), the highest 3 column address bits must map to the highest 3 valid HIF address bits.

If column bit 8 is the second highest column address bit, it must map to the second highest valid HIF address bit. (x = the highest valid HIF address bit - 1 - internal base).

If column bit 8 is the third highest column address bit, it must map to the third highest valid HIF address bit. (x = the highest valid HIF address bit - 2 - internal base).

If unused, set to 31 and then this column address bit is set to 0.

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, x, and 31. x indicate a valid value in inline ECC configuration.

Internal Base: 7

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

In Inline ECC configuration (MEMC_INLINE_ECC=1) and ECC is enabled (ECCCFG0.ecc_mode>0), the highest 3 column address bits must map to the highest 3 valid HIF address bits.

If column bit 7 is the third highest column address bit, it must map to the third highest valid HIF address bit. (x = the highest valid HIF address bit - 2 - internal base).

If unused, set to 31 and then this column address bit is set to 0.

Programming mode: Static.

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

Bits 3:0 ADDRMAP_COL_B6[3:0]:

Valid Range: 0 to 7, and 15

Internal Base: 6

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

If unused, set to 15 and then this column address bit is set to 0.

Programming mode: Static

5.7.50 DDRCTRL address map register 4 (DDRCTRL_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, x, and 31. x indicate a valid value in inline ECC configuration.

Internal Base: 11

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

Note: Per JEDEC DDR2/3/mDDR specification, column address bit 10 is reserved for indicating auto-precharge, and hence no source address bit can be mapped to column address bit 10.

In LPDDR2/LPDDR3, there is a dedicated bit for auto-precharge in the CA bus and hence column bit 10 is used.

In Inline ECC configuration (MEMC_INLINE_ECC=1) and ECC is enabled (ECCCFG0.ecc_mode>0), the highest 3 column address bits must map to the highest 3 valid HIF address bits.

If column bit 11 is the highest column address bit, it must map to the highest valid HIF address bit. (x = the highest valid HIF address bit - internal base)

If column bit 11 is the second highest column address bit, it must map to the second highest valid HIF address bit. (x = the highest valid HIF address bit - 1 - internal base)

If column bit 11 is the third highest column address bit, it must map to the third highest valid HIF address bit. (x = the highest valid HIF address bit - 2 - internal base)

If unused, set to 31 and then this column address bit is set to 0.

Programming mode: Static

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

Bits 4:0 ADDRMAP_COL_B10[4:0]:

Valid Range: 0 to 7, x, and 31. x indicate a valid value in inline ECC configuration.

Internal Base: 10

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

Note: Per JEDEC DDR2/3/mDDR specification, column address bit 10 is reserved for indicating auto-precharge, and hence no source address bit can be mapped to column address bit 10.

In LPDDR2/LPDDR3, there is a dedicated bit for auto-precharge in the CA bus and hence column bit 10 is used.

In Inline ECC configuration (MEMC_INLINE_ECC=1) and ECC is enabled (ECCCFG0.ecc_mode>0), the highest 3 column address bits must map to the highest 3 valid HIF address bits.

If column bit 10 is the highest column address bit, it must map to the highest valid HIF address bit. (x = the highest valid HIF address bit - internal base)

If column bit 10 is the second highest column address bit, it must map to the second highest valid HIF address bit. (x = the highest valid HIF address bit - 1 - internal base)

If column bit 10 is the third highest column address bit, it must map to the third highest valid HIF address bit. (x = the highest valid HIF address bit - 2 - internal base)

If unused, set to 31 and then this column address bit is set to 0.

Programming mode: Static

5.7.51 DDRCCTRL address map register 5 (DDRCCTRL_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]
rwrwrwrw
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.

5.7.52 DDRCTRL address register 6 (DDRCTRL_ADDRMAP6)

Address offset: 0x218

Reset value: 0x0000 0000

31302928272625242322212019181716
LPDDR3_6GB_12GBRes.Res.Res.ADDRMAP_ROW_B15[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B14[3:0]
rwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.ADDRMAP_ROW_B13[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B12[3:0]
rwrwrwrwrwrwrwrw
ST logo
ST logo

5.7.53 DDRCTRL address map register 9 (DDRCTRL_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

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

Bits 27:24 ADDRMAP_ROW_B5[3:0]: Selects the HIF address bits used as row address bit 5.

Valid Range: 0 to 11

Internal Base: 11

The selected HIF address bit for each of the row address bits is determined by adding the internal base to the value of this field. This register field is used only when ADDRMAP5.addrmap_row_b2_10 is set to value 15.

Programming mode: Static

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

Bits 19:16 ADDRMAP_ROW_B4[3:0]: Selects the HIF address bits used as row address bit 4.

Valid Range: 0 to 11

Internal Base: 10

The selected HIF address bit for each of the row address bits is determined by adding the internal base to the value of this field. This register field is used only when ADDRMAP5.addrmap_row_b2_10 is set to value 15.

Programming mode: Static

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

Bits 11:8 ADDRMAP_ROW_B3[3:0]: Selects the HIF address bits used as row address bit 3.

Valid Range: 0 to 11

Internal Base: 9

The selected HIF address bit for each of the row address bits is determined by adding the internal base to the value of this field. This register field is used only when ADDRMAP5.addrmap_row_b2_10 is set to value 15.

Programming mode: Static

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

Bits 3:0 ADDRMAP_ROW_B2[3:0]: Selects the HIF address bits used as row address bit 2.

Valid Range: 0 to 11

Internal Base: 8

The selected HIF address bit for each of the row address bits is determined by adding the internal base to the value of this field. This register field is used only when ADDRMAP5.addrmap_row_b2_10 is set to value 15.

Programming mode: Static

5.7.54 DDRCTRL address map register 10 (DDRCCTRL_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]: Selects the HIF address bits used as row address bit 9.

Valid Range: 0 to 11

Internal Base: 15

The selected HIF address bit for each of the row address bits is determined by adding the internal base to the value of this field. This register field is used only when ADDRMAP5.addrmap_row_b2_10 is set to value 15.

Programming mode: Static

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

Bits 19:16 ADDRMAP_ROW_B8[3:0]: Selects the HIF address bits used as row address bit 8.

Valid Range: 0 to 11

Internal Base: 14

The selected HIF address bit for each of the row address bits is determined by adding the internal base to the value of this field. This register field is used only when ADDRMAP5.addrmap_row_b2_10 is set to value 15.

Programming mode: Static

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

Bits 11:8 ADDRMAP_ROW_B7[3:0]: Selects the HIF address bits used as row address bit 7.

Valid Range: 0 to 11

Internal Base: 13

The selected HIF address bit for each of the row address bits is determined by adding the internal base to the value of this field. This register field is used only when ADDRMAP5.addrmap_row_b2_10 is set to value 15.

Programming mode: Static

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

Bits 3:0 ADDRMAP_ROW_B6[3:0]: Selects the HIF address bits used as row address bit 6.

Valid Range: 0 to 11

Internal Base: 12

The selected HIF address bit for each of the row address bits is determined by adding the internal base to the value of this field. This register field is used only when ADDRMAP5.addrmap_row_b2_10 is set to value 15.

Programming mode: Static

5.7.55 DDRCTRL address map register 11 (DDRCCTRL_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] : Selects the HIF address bits used as row address bit 10.

Valid Range: 0 to 11

Internal Base: 16

The selected HIF address bit for each of the row address bits is determined by adding the internal base to the value of this field. This register field is used only when ADDRMAP5.addrmap_row_b2_10 is set to value 15.

Programming mode: Static

5.7.56 DDRCTRL ODT configuration register (DDRCCTRL_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.

Bits 27:24 WR_ODT_HOLD[3:0]:

DFI PHY clock cycles to hold ODT for a write command. The minimum supported value is 2.

Recommended values:

DDR2:

- BL8: 0x5 (DDR2-400/533/667), 0x6 (DDR2-800), 0x7 (DDR2-1066)

- BL4: 0x3 (DDR2-400/533/667), 0x4 (DDR2-800), 0x5 (DDR2-1066)

DDR3:

- BL8: 0x6

DDR4:

- BL8: 5 + WR_PREAMBLE + CRC_MODE

WR_PREAMBLE = 1 (1tCK write preamble), 2 (2tCK write preamble)

CRC_MODE = 0 (not CRC mode), 1 (CRC mode)

LPDDR3:

- BL8: 7 + RU(tODTon(max)/tCK)

Programming mode: Quasi-dynamic Group 1 and Group 4

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

Bits 20:16 WR_ODT_DELAY[4:0]:

The delay, in DFI PHY clock cycles, from issuing a write command to setting ODT values associated with that command. ODT setting must remain constant for the entire time that DQS is driven by the DDRCTRL.

Recommended values:

DDR2:

- CWL + AL - 3 (DDR2-400/533/667), CWL + AL - 4 (DDR2-800), CWL + AL - 5 (DDR2-1066)

If (CWL + AL - 3 < 0), DDRCTRL does not support ODT for write operation.

DDR3:

- 0x0

DDR4:

- DFITMG1.dfi_t_cmd_lat (to adjust for CAL mode)

LPDDR3:

- WL - 1 - RU(tODTon(max)/tCK)

Programming mode: Quasi-dynamic Group 1 and Group 4

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

Bits 11:8 RD_ODT_HOLD[3:0]:

DFI PHY clock cycles to hold ODT for a read command. The minimum supported value is 2.

Recommended values:

DDR2:

- BL8: 0x6 (not DDR2-1066), 0x7 (DDR2-1066)

- BL4: 0x4 (not DDR2-1066), 0x5 (DDR2-1066)

DDR3:

- BL8 - 0x6

DDR4:

- BL8: 5 + RD_PREAMBLE

RD_PREAMBLE = 1 (1tCK write preamble), 2 (2tCK write preamble)

LPDDR3:

- BL8: 5 + RU(tDQSCK(max)/tCK) - RD(tDQSCK(min)/tCK) + RU(tODTon(max)/tCK)

Programming mode: Quasi-dynamic Group 1 and Group 4

Bit 7 Reserved, must be kept at reset value.

Bits 6:2 RD_ODT_DELAY[4:0]:

The delay, in DFI PHY clock cycles, from issuing a read command to setting ODT values associated with that command. ODT setting must remain constant for the entire time that DQS is driven by the DDRCTRL.

Recommended values:

DDR2:

- CL + AL - 4 (not DDR2-1066), CL + AL - 5 (DDR2-1066)

If (CL + AL - 4 < 0), DDRCTRL does not support ODT for read operation.

DDR3:

- CL - CWL

DDR4:

- CL - CWL - RD_PREAMBLE + WR_PREAMBLE + DFITMG1.dfi_t_cmd_lat (to adjust for CAL mode)

WR_PREAMBLE = 1 (1tCK write preamble), 2 (2tCK write preamble)

RD_PREAMBLE = 1 (1tCK write preamble), 2 (2tCK write preamble)

If (CL - CWL - RD_PREAMBLE + WR_PREAMBLE) < 0, DDRCTRL does not support ODT for read operation.

LPDDR3:

- RL + RD(tDQSCK(min)/tCK) - 1 - RU(tODTon(max)/tCK)

Programming mode: Quasi-dynamic Group 1 and Group 4.

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

5.7.57 DDRCTRL ODT/Rank map register (DDRCTRL_ODTMAP)

Address offset: 0x244

Reset value: 0x0000 0011

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.RANK0_RD_ODTRes.Res.Res.RANK0_WR_ODT
rwrw

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

Bit 4 RANK0_RD_ODT: Indicates which remote ODTs must be turned 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 here.

Rank 0 is controlled by the LSB; rank 1 is controlled by bit next to the LSB, etc.

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

Programming mode: Static

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

Bit 0 RANK0_WR_ODT: Indicates which remote ODTs must be turned 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 here.
Rank 0 is controlled by the LSB; rank 1 is controlled by bit next to the LSB, etc.
For each rank, set its bit to 1 to enable its ODT.
Programming mode: Static

5.7.58 DDRCTRL scheduler control register (DDRCTRL_SCHED)

Address offset: 0x250

Reset value: 0x0000 0805

31302928272625242322212019181716
Res.RDWR_IDLE_GAP[6:0]GO2CRITICAL_HYSTERESIS[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.LPR_NUM_ENTRIES[3:0]Res.Res.Res.Res.Res.PAGECLOSEPREFER_WRITEFORCE_LOW_PRI_N
rwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

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 and the write transaction store is the alternative store.
When prefer write over read is set this is reversed.
0x0 is a legal value for this register. When set to 0x0, the transaction store switching happens immediately when the switching conditions become true.
FOR PERFORMANCE ONLY
Programming mode: Static

Bits 23:16 GO2CRITICAL_HYSTERESIS[7:0]: UNUSED
Programming mode: Static

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

Bits 11:8 LPR_NUM_ENTRIES[3:0]: Number of entries in the low priority transaction store is this value + 1.
(MEMC_NO_OF_ENTRY - (SCHED.lpr_num_entries + 1)) is the number of entries available for the high priority transaction store.
Setting this to maximum value allocates all entries to low priority transaction store.
Setting this to 0 allocates 1 entry to low priority transaction store and the rest to high priority transaction store.
Note: In ECC configurations, the numbers of write and low priority read credits issued is one less than in the non-ECC case. One entry each is reserved in the write and low-priority read CAMs for storing the RMW requests arising out of single bit error correction RMW operation.
Programming mode: Static

ST logo
ST logo

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

Bit 2 PAGECLOSE: If true, bank is kept open only while there are page hit transactions available in the CAM to that bank. The last read or write command in the CAM with a bank and page hit is executed with auto-precharge if SCHED1.pageclose_timer=0. Even if this register set to 1 and SCHED1.pageclose_timer is set to 0, 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. The Read and Write commands that are executed as part of the ECC scrub requests are also executed without auto-precharge.

If false, the bank remains open until there is a need to close it (to open a different page, or for page timeout or refresh timeout) - also known as open page policy. The open page policy can be overridden by setting the per-command-autopre bit on the HIF interface (hif_cmd_autopre). The pageclose feature provides a midway between Open and Close page policies.

For performance only.

Programming mode: Quasi-dynamic Group 3

Bit 1 PREFER_WRITE: If set then the bank selector prefers writes over reads.

FOR DEBUG ONLY.

Programming mode: Static

Bit 0 FORCE_LOW_PRI_N: Active low signal. When asserted ('0'), all incoming transactions are forced to low priority. This implies that all high priority read (HPR) and variable priority read commands (VPR) are treated as low priority read (LPR) commands. On the write side, all variable priority write (VPW) commands are treated as normal priority write (NPW) commands. Forcing the incoming transactions to low priority implicitly turns off bypass path for read commands.

For performance only.

Programming mode: Static

5.7.59 DDRCTRL scheduler control register 1 (DDRCTRL_SCHED1)

Address offset: 0x254

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.PAGECLOSE_TIMER[7:0]
rwrwrwrwrwrwrwrw

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

Bits 7:0 PAGECLOSE_TIMER[7:0]: This field works in conjunction with SCHED.pageclose.
It only has meaning if SCHED.pageclose==1.
If SCHED.pageclose==1 and pageclose_timer==0, then an auto-precharge may be scheduled for last read
or write command in the CAM with a bank and page hit.
Note, sometimes an explicit precharge is scheduled instead of the auto-precharge. See SCHED.pageclose for details of when this may happen.
If SCHED.pageclose==1 and pageclose_timer>0, then an auto-precharge is not scheduled for last read
or write command in the CAM with a bank and page hit.
Instead, a timer is started, with pageclose_timer as the initial value.
There is a timer on a per bank basis.
The timer decrements unless the next read or write in the CAM to a bank is a page hit.
It gets reset to pageclose_timer value if the next read or write in the CAM to a bank is a page hit.
Once the timer has reached zero, an explicit precharge is attempted to be scheduled.
Programming mode: Static.

5.7.60 DDRCTRL high priority read CAM register 1 (DDRCTRL_PERFHPR1)

Address offset: 0x25C

Reset value: 0x0F00 0001

31302928272625242322212019181716
HPR_XACT_RUN_LENGTH[7:0]ResResResResResResResRes
rwrwrwrwrwrwrwrw
1514131211109876543210
HPR_MAX_STARVE[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 HPR_XACT_RUN_LENGTH[7:0]:
Number of transactions that are serviced once the HPR queue goes critical is the smaller of:
- (a) This number
- (b) Number of transactions available.
Unit: Transaction.
For performance only.
Programming mode: Quasi-dynamic Group 3

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

Bits 15:0 HPR_MAX_STARVE[15:0]: Number of DFI clocks that the HPR queue can be starved before it goes critical. The minimum valid functional value for this register is 0x1. Programming it to 0x0 disables the starvation functionality; during normal operation, this function must not be disabled as it causes excessive latencies.
For performance only.
Programming mode: Quasi-dynamic Group 3

ST logo
ST logo

5.7.61 DDRCTRL low priority read CAM register 1 (DDRCTRL_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]:

Number of transactions that are serviced once the LPR queue goes critical is the smaller of:

Unit: Transaction.

For performance only

Programming mode: Quasi-dynamic group 3

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

Bits 15:0 LPR_MAX_STARVE[15:0]: Number of DFI clocks that the LPR queue can be starved before it goes critical. The minimum valid functional value for this register is 0x1. Programming it to 0x0 disables the starvation functionality; during normal operation, this function must be disabled as it causes excessive latencies.

For performance only

Programming mode: Quasi-dynamic Group 3

5.7.62 DDRCTRL write CAM register 1 (DDRCTRL_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]:

Number of transactions that are serviced once the WR queue goes critical is the smaller of:

Unit: Transaction.

For performance only.

Programming mode: Quasi-dynamic Group 3.

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

Bits 15:0 W_MAX_STARVE[15:0]: Number of DFI clocks that the WR queue can be starved before it goes critical. The minimum valid functional value for this register is 0x1. Programming it to 0x0 disables the starvation functionality; during normal operation, this function must not be disabled as it causes excessive latencies.

For performance only.

Programming mode: Quasi-dynamic Group 3.

5.7.63 DDRCTRL debug register 0 (DDRCTRL_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.Res.Res.Res.DIS_COLLISION_PAGE_OPTRes.Res.Res.DIS_WC
rwrw

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

Bit 4 DIS_COLLISION_PAGE_OPT: When this is set to '0', auto-precharge is disabled for the flushed command in a collision case. Collision cases are write followed by read to same address, read followed by write to same address, or write followed by write to same address with DBG0.dis_wc bit = 1 (where same address comparisons exclude the two address bits representing critical word).

FOR DEBUG ONLY.

Programming mode: Static

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

Bit 0 DIS_WC: When 1, disable write combine.

FOR DEBUG ONLY

Programming mode: Static

5.7.64 DDRCTRL debug register 1 (DDRCTRL_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: When 1, DDRCTRL asserts the HIF command signal hif_cmd_stall. DDRCTRL ignores the hif_cmd_valid and all other associated request signals.

This bit is intended to be switched on-the-fly.

Programming mode: Dynamic

Bit 0 DIS_DQ: When 1, DDRCTRL does not de-queue any transactions 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 is asserted.

This bit may be used to prevent reads or writes being issued by the DDRCTRL, which makes it safe to modify certain register fields associated with reads and writes (see User Guide for details). After setting this bit, it is strongly recommended to poll

DBGCAM.wr_data_pipeline_empty and DBGCAM.rd_data_pipeline_empty, before making changes to any registers 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.

Programming mode: Dynamic

5.7.65 DDRCTRL CAM debug register (DDRCTRL_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.Res.DBG_W_Q_DEPTH[4:0]
rrrrrrrrrr
1514131211109876543210
Res.Res.Res.DBG_LPR_Q_DEPTH[4:0]Res.Res.Res.DBG_HPR_Q_DEPTH[4:0]
rrrrrrrrrr

5.7.66 DDRCTRL command debug register (DDRCTRL_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.CTRLUPDZQ_CALIB_SHORTRes.Res.Res.RANK0_REFRESH
rsrsrs

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

Bit 5 CTRLUPD:

Setting this register bit to 1 indicates to the DDRCTRL to issue a dfi_ctrlupd_req to the PHY. When this request is stored in the DDRCTRL, the bit is automatically cleared. This operation must only be performed when DFIUPD0.dis_auto_ctrlupd=1.

Programming mode: Dynamic.

Bit 4 ZQ_CALIB_SHORT:

Setting this register bit to 1 indicates to the DDRCTRL to issue a ZQCS (ZQ calibration short)/MPC(ZQ calibration) command to the SDRAM. When this request is stored in the DDRCTRL, the bit is automatically cleared. This operation can be performed only when ZQCTL0.dis_auto_zq=1. It is recommended NOT to set this register bit if in Init, in Self-Refresh(except LPDDR4) or SR-Powerdown(LPDDR4) or Deep power-down operating modes or maximum power saving mode.

For self-refresh(except LPDDR4) or SR-powerdown(LPDDR4) it is scheduled after SR(except LPDDR4) or SPRD(LPDDR4) has been exited.

For Deep power down and maximum power saving mode, it is not scheduled, although DBGSTAT.zq_calib_short_busy is de-asserted.

Programming mode: Dynamic.

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

Bit 0 RANK0_REFRESH:

Setting this register bit to 1 indicates to the DDRCTRL to issue a refresh to rank 0. Writing to this bit causes DBGSTAT.rank0_refresh_busy to be set. When DBGSTAT.rank0_refresh_busy is cleared, the command has been stored in DDRCTRL.

For 3DS configuration, refresh is sent to rank index 0.

This operation can be performed only when RFSHCTL3.dis_auto_refresh=1. It is recommended NOT to set this register bit if in Init or Deep power-down operating modes or Maximum Power Saving Mode.

Programming mode: Dynamic.

5.7.67 DDRCTRL status debug register (DDRCTRL_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.CTRLUPD_BUSYZQ_CALIB_SHORT_BUSYRes.Res.Res.RANK0_REFRESH_BUSY
rrr

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

Bit 5 CTRLUPD_BUSY: SoC core may initiate a ctrlupd operation only if this signal is low. This signal 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 signal is high.

Programming mode: Dynamic

Bit 4 ZQ_CALIB_SHORT_BUSY: SoC core may initiate a ZQCS (ZQ calibration short) operation only if this signal is low. This signal 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 signal is high.

Programming mode: Dynamic

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

Bit 0 RANK0_REFRESH_BUSY: SoC core may initiate a rank0_refresh operation (refresh operation to rank 0) only if this signal is low. This signal goes high in the clock after DBGCMD.rank0_refresh is set to one. It goes low when the rank0_refresh operation is stored in the DDRCTRL. It is recommended not to perform rank0_refresh operations when this signal is high.

Programming mode: Dynamic

5.7.68 DDRCTRL software register programming control enable (DDRCTRL_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_DONE
rw

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

Bit 0 SW_DONE: Enable quasi-dynamic register programming outside reset. Program register to 0 to enable quasi-dynamic programming. Set back register to 1 once programming is done.

Programming mode: Dynamic

5.7.69 DDRCTRL software register programming control status (DDRCTRL_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_DONE_ACK
r

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

Bit 0 SW_DONE_ACK: Register programming done. This register is the echo of SWCTL.sw_done. Wait for sw_done value 1 to propagate to sw_done_ack at the end of the programming sequence to ensure that the correct registers values are propagated to the destination clock domains.

Programming mode: Static

5.7.70 DDRCTRL AXI Poison configuration register (DDRCTRL_POISONCFG)

Address offset: 0x36C

Reset value: 0x0011 0011

AXI Poison configuration register common for 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.

Bit 24 RD_POISON_INTR_CLR: Interrupt clear for read transaction poisoning. Allow 2/3 clock cycles for correct value to propagate to core logic and clear the interrupts.

Programming mode: Dynamic

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

Bit 20 RD_POISON_INTR_EN: If set to 1, enables interrupts for read transaction poisoning

Programming mode: Dynamic

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

Bit 16 RD_POISON_SLVERR_EN: If set to 1, enables SLVERR response for read transaction poisoning

Programming mode: Dynamic

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

Bit 8 WR_POISON_INTR_CLR: Interrupt clear for write transaction poisoning. Allow 2/3 clock cycles for correct value to propagate to core logic and clear the interrupts.

Programming mode: Dynamic

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

Bit 4 WR_POISON_INTR_EN: If set to 1, enables interrupts for write transaction poisoning

Programming mode: Dynamic

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

Bit 0 WR_POISON_SLVERR_EN: If set to 1, enables SLVERR response for write transaction poisoning
Programming mode: Dynamic

5.7.71 DDRCTRL AXI Poison status register (DDRCTRL_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.

Bit 17 RD_POISON_INTR_1: Read transaction poisoning error interrupt for port 1. This register is a APB clock copy (double register synchronizer) of the interrupt asserted when a transaction is poisoned on the corresponding AXI port's read address channel. Bit 0 corresponds to Port 0, and so on. Interrupt is cleared by register rd_poison_intr_clr, then value propagated to APB clock.
Programming mode: Dynamic

Bit 16 RD_POISON_INTR_0: Read transaction poisoning error interrupt for port 0. This register is a APB clock copy (double register synchronizer) of the interrupt asserted when a transaction is poisoned on the corresponding AXI port's read address channel. Bit 0 corresponds to Port 0, and so on. Interrupt is cleared by register rd_poison_intr_clr, then value propagated to APB clock.
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 register is a APB clock copy (double register synchronizer) of the interrupt asserted when a transaction is poisoned on the corresponding AXI port's write address channel. Bit 0 corresponds to Port 0, and so on. Interrupt is cleared by register wr_poison_intr_clr, then value propagated to APB clock.
Programming mode: Dynamic

Bit 0 WR_POISON_INTR_0: Write transaction poisoning error interrupt for port 0. This register is a APB clock copy (double register synchronizer) of the interrupt asserted when a transaction is poisoned on the corresponding AXI port's write address channel. Bit 0 corresponds to Port 0, and so on. Interrupt is cleared by register wr_poison_intr_clr, then value propagated to APB clock.

Programming mode: Dynamic

5.7.72 DDCRTL port status register (DDRCTRL_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.
Programming mode: Dynamic

Bit 16 WR_PORT_BUSY_0: Indicates if there are outstanding writes for AXI port 0.
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.
Programming mode: Dynamic

Bit 0 RD_PORT_BUSY_0: Indicates if there are outstanding reads for AXI port 0.
Programming mode: Dynamic

5.7.73 DDRCTRL port common configuration register (DDRCTRL_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. By default (i.e. bl_exp_mode==0) XPI expands every AXI burst into multiple HIF commands, using the memory burst length as a unit. If set to 1, then XPI uses half of the memory burst length as a unit.

This applies to both reads and writes. When MSTR.data_bus_width==00, setting bl_exp_mode to 1 has no effect.

This can be used in cases where Partial Writes is enabled (UMCTL2_PARTIAL_WR=1), in order to avoid or minimize t_ccd_l penalty in DDR4 and t_ccd_mw penalty in LPDDR4. Hence, bl_exp_mode=1 is only recommended if DDR4 or LPDDR4.

Note that if DBICTL.dm_en=0, functionality is not supported in the following cases:

Functionality is also not supported if Data Channel Interleave is enabled.

Programming mode: Static.

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

Bit 4 PAGEMATCH_LIMIT: Page match four limit. If set to 1, limits the number of consecutive same page DDRC transactions that can be granted by the Port Arbiter to four when Page Match feature is enabled. If set to 0, there is no limit imposed on number of consecutive same page DDRC transactions.

Programming mode: Static.

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

Bit 0 GO2CRITICAL_EN: If set to 1 (enabled), sets 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. If set to 0 (disabled), co_gs_go2critical_wr and co_gs_go2critical_lpr/co_gs_go2critical_hpr signals at DDRC are driven to 1b'0.
Programming mode: Static.

5.7.74 DDRCTRL port x configuration read register (DDRCTRL_PCFGR_x)

Address offset: 0x404 + 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.RDWR_ORDERED_EN
rw
1514131211109876543210
Res.RD_PORT_PAGEMATCH_ENRD_PORT_URGENT_ENRD_PORT_AGING_ENRes.Res.RD_PORT_PRIORITY[9:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 16 RDWR_ORDERED_EN: Enables ordered read/writes. If set to 1, preserves the ordering between read transaction and write transaction issued to the same address, on a given port. In other words, the controller ensures that all same address read and write commands from the application port interface are transported to the DFI interface in the order of acceptance. This feature is useful in cases where software coherency is desired for masters issuing back-to-back read/write transactions without waiting for write/read responses. Note that this register has an effect only if necessary logic is instantiated via the UMCTL2_RDWR_ORDERED_n parameter.
Programming mode: Static.

Bit 15 Reserved, must be kept at reset value.

Bit 14 RD_PORT_PAGEMATCH_EN: If set to 1, enables the Page Match feature. If enabled, once a requesting port is granted, the port is continued to be granted if the following immediate commands are to the same memory page (same bank and same row). See also related PCCFG.pagematch_limit register.
Programming mode: Static

Bit 13 RD_PORT_URGENT_EN: If set to 1, enables the AXI urgent sideband signal (arurgent). When enabled and arurgent is asserted by the master, that port becomes the highest priority and co_gs_go2critical_lpr/co_gs_go2critical_hpr signal to DDRC is asserted if enabled in PCCFG.go2critical_en register. Note that arurgent signal can be asserted anytime and as long as required which is independent of address handshaking (it is not associated with any particular command).

Programming mode: Static

Bit 12 RD_PORT_AGING_EN: If set to 1, enables aging function for the read channel of the port.

Programming mode: Static

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

Bits 9:0 RD_PORT_PRIORITY[9:0]: Determines the initial load value of read aging counters. These counters are parallel loaded after reset, or after each grant to the corresponding port. The aging counters down-count every clock cycle where the port is requesting but not granted. The higher significant 5-bits of the read aging counter sets the priority of the read channel of a given port. Port's priority increases as the higher significant 5-bits of the counter starts to decrease. When the aging counter becomes 0, the corresponding port channel has the highest priority level (timeout condition - Priority0). For multi-port configurations, the aging counters cannot be used to set port priorities when external dynamic priority inputs (arqos) are enabled (timeout is still applicable). For single port configurations, the aging counters are only used when they timeout (become 0) to force read-write direction switching. In this case, external dynamic priority input, arqos (for reads only) can still be used to set the DDRC read priority (2 priority levels: low priority read - LPR, high priority read - HPR) on a command by command basis.

Note: The two LSBs of this register field are tied internally to 2'b00.

Programming mode: Static

5.7.75 DDRCTRL port x configuration write register (DDRCTRL_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_PORT_PAGEMATCH_ENWR_PORT_URGENT_ENWR_PORT_AGING_ENRes.Res.WR_PORT_PRIORITY[9:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

5.7.76 DDRCTRL port x control register (DDRCTRL_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: Enables AXI port n.
Programming mode: Dynamic

ST logo
ST logo

5.7.77 DDRCTRL port x read QoS configuration register 0 (DDRCTRL_PCFGQOS0_x)

Address offset: 0x494 + 0xB0 * x, (x = 0 to 1)

Reset value: 0x0200 0E00

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.RQOS_MAP_REGION2[1:0]Res.Res.RQOS_MAP_REGION1[1:0]Res.Res.RQOS_MAP_REGION0[1:0]
rwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.RQOS_MAP_LEVEL2[3:0]Res.Res.Res.Res.RQOS_MAP_LEVEL1[3:0]
rwrwrwrwrwrwrwrw

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

Bits 25:24 RQOS_MAP_REGION2[1:0]: This bitfield indicates the traffic class of region2.

For dual address queue configurations, region2 maps to the red address queue.

Valid values are 1: VPR and 2: HPR only.

When VPR support is disabled (UMCTL2_VPR_EN = 0) and traffic class of region2 is set to 1 (VPR), VPR traffic is aliased to LPR traffic.

Programming mode: Quasi-dynamic Group 3

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

Bits 21:20 RQOS_MAP_REGION1[1:0]: This bitfield indicates the traffic class of region 1.

Valid values are:

- 0 : LPR,

- 1: VPR,

- 2: HPR.

For dual address queue configurations, region1 maps to the blue address queue.

In this case, valid values are

- 0: LPR and

- 1: VPR only.

When VPR support is disabled (UMCTL2_VPR_EN = 0) and traffic class of region 1 is set to 1 (VPR), VPR traffic is aliased to LPR traffic.

Programming mode: Quasi-dynamic Group 3

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

5.7.78 DDRCTRL port x read QoS configuration register 1 (DDRCTRL_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 10:0 RQOS_MAP_TIMEOUTB[10:0]: Specifies the timeout value for transactions mapped to the blue address queue.
Programming mode: Quasi-dynamic Group 3.

5.7.79 DDRCTRL port x write QoS configuration register 0 (DDRCTRL_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.

Bits 25:24 WQOS_MAP_REGION2[1:0]: This bitfield indicates the traffic class of region 2.
Valid values are:
0: NPW, 1: VPW.
When VPW support is disabled (UMCTL2_VPW_EN = 0) and traffic class of region 2 is set to 1 (VPW), VPW traffic is aliased to NPW traffic.
Programming mode: Quasi-dynamic Group 3

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

Bits 21:20 WQOS_MAP_REGION1[1:0]: This bitfield indicates the traffic class of region 1.
Valid values are:
0: NPW, 1: VPW.
When VPW support is disabled (UMCTL2_VPW_EN = 0) and traffic class of region 1 is set to 1 (VPW), VPW traffic is aliased to NPW traffic.
Programming mode: Quasi-dynamic Group 3

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

Bits 17:16 WQOS_MAP_REGION0[1:0]: This bitfield indicates the traffic class of region 0.
Valid values are:
0: NPW, 1: VPW.
When VPW support is disabled (UMCTL2_VPW_EN = 0) and traffic class of region 0 is set to 1 (VPW), VPW traffic is aliased to NPW traffic.
Programming mode: Quasi-dynamic Group 3

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

ST logo
ST logo

Bits 11:8 WQOS_MAP_LEVEL2[3:0]: Separation level2 indicating the end of region1 mapping; start of region1 is (level1 + 1). Possible values for level2 are (level1 + 1) to 14 which corresponds to awqos.

Region2 starts from (level2 + 1) up to 15.

Note that for PA, awqos values are used directly as port priorities, where the higher the value corresponds to higher port priority.

All of the map_level* registers must be set to distinct values.

Programming mode: Quasi-dynamic Group 3

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

Bits 3:0 WQOS_MAP_LEVEL1[3:0]: Separation level indicating the end of region0 mapping; start of region0 is 0. Possible values for level1 are 0 to 13 which corresponds to awqos.

Note that for PA, awqos values are used directly as port priorities, where the higher the value corresponds to higher port priority.

All of the map_level* registers must be set to distinct values.

Programming mode: Quasi-dynamic Group 3

5.7.80 DDRCTRL port x write Q0S configuration register 1 (DDRCTRL_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]: Specifies the timeout value for write transactions in region 2.
Programming mode: Quasi-dynamic Group 3.

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

Bits 10:0 WQOS_MAP_TIMEOUT1[10:0]: Specifies the timeout value for write transactions in region 0 and 1.

Programming mode: Quasi-dynamic Group 3.

5.7.81 DDRCTRL registers summary

Table 19. DDRCTRL register map and reset values

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x000DDRCTRL_MSTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BURST_RDWR[3:0]DLL_OFF_MODERes.DATA_BUS_WIDTH[1:0]Res.EN_2T_TIMING_MODEBURSTCHOPRes.Res.Res.Res.Res.LPDDR3LPDDR2Res.DDR3
Reset value010000000001
0x004DDRCTRL_STATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SELFREF_CAM_NOT_EMPTYRes.Res.Res.Res.Res.Res.SELFREF_TYPE[1:0]OPERATING_MODE[2:0]
Reset value00000
0x008 - 0x00CRes.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.
0x010DDRCTRL_MRCTRL0MR_WRMR_ADDR[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.MR_TYPE
Reset value0000000
0x014DDRCTRL_MRCTRL1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MR_DATA[15:0]
Reset value0000000000000000
0x018DDRCTRL_MRSTATRes.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.MR_WR_BUSY
Reset value0
0x01CRes.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.
0x020DDRCTRL_DERATEENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DERATE_BYTE[3:0]DERATE_VALUE[1:0]DERATE_ENABLE
Reset value0000000
0x024DDRCTRL_DERATEINTMR4_READ_INTERVAL[31:0]
Reset value00000000100000000000000000000000
ST logo
ST logo

Table 19. DDCRTL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x028 - 0x02CRes.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.Res.
0x030DDRCTRL_PWRCTLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DIS_CAM_DRAIN_SELFRFRes.SELFREF_SWRes.EN_DFI_DRAM_CLK_DISABLEDEEPPowerDown_ENPowerDown_ENSELFREF_EN
Reset value0000000
0x034DDRCTRL_PWRTMGRes.Res.Res.Res.Res.Res.Res.Res.SELFREF_TO_X32[7:0]T_DPD_X4096[7:0]Res.Res.Res.POWERDOWN_TO_X32[4:0]
Reset value010000000000000100000
0x038DDRCTRL_HWLPCTLRes.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 value000000000000000000000001111
0x03C - 0x04CRes.
0x050DDRCTRL_RFSHCTL0Res.Res.Res.Res.Res.Res.Res.Res.REFRESH_MARGIN[3:0]Res.Res.Res.REFRESH_TO_X32[4:0]Res.Res.Res.REFRESH_BURST[4:0]Res.PER_BANK_REFRESHRes.
Reset value001010000000000
0x054 - 0x05CRes.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.Res.

Table 19. DDDRCTRL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x060DDRCTRL_RFSHCTL3Res.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.REFRESH_UPDATE_LEVEL
Reset value00
0x064DDRCTRL_RFSHTMGT_RFC_NOM_X1_SELRes.Res.Res.Res.T_RFC_NOM_X1_X32[11:0]LPDDR3_TREFBW_ENRes.Res.Res.Res.Res.Res.T_RFC_MIN[9:0]
Reset value00000011000100010001100
0x068 - 0x0BCRes.
0x0C0DDRCTRL_CRCPARCTL0Res.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_ALERT_ERR_CNT_CLRDFI_ALERT_ERR_INT_CLR
Reset value000
0x0C4 - 0x0C8Res.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.
0x0CCDDRCTRL_CRCPARSTATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DFI_ALERT_ERR_INTDFI_ALERT_ERR_CNT[15:0]
Reset value00000000000000000
0x0D0DDRCTRL_INIT0SKIP_DRAM_INIT[1:0]Res.Res.Res.Res.POST_CKE_X1024[9:0]Res.Res.Res.Res.PRE_CKE_X1024[11:0]
Reset value00000000000010000001001110
ST logo
ST logo

Table 19. DDDRCTRL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x0D4DDRCTRL_INIT1Res.Res.Res.Res.Res.Res.Res.DRAM_RSTN_X1024[8:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRE_OCD_X32[3:0]
Reset value0000000000000
0x0D8DDRCTRL_INIT2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IDLE_AFTER_RESET_X32[7:0]Res.Res.Res.Res.MIN_STABLE_CLOCK_X1[3:0]
Reset value000011010101
0x0DCDDRCTRL_INIT3MR[15:0]EMR[15:0]
Reset value0000000000000000000001010001000
0x0E0DDRCTRL_INIT4EMR2[15:0]EMR3[15:0]
Reset value0000000000000000000000000000000
0x0E4DDRCTRL_INIT5Res.Res.Res.Res.Res.Res.Res.Res.DEV_ZQINIT_X32[7:0]Res.Res.Res.Res.Res.Res.MAX_AUTO_INIT_X1024[9:0]
Reset value000100000000000100
0x0E8 - 0x0ECRes.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.
0x0F0DDRCTRL_DIMMCTLRes.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 value0000
0x0F4 - 0x0FCRes.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.

Table 19. DDRCTRL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x100DDRCTRL_DRAMTMG0Res.WR2PRE[6:0]Res.Res.T_FAW[5:0]Res.T_RAS_MAX[6:0]Res.Res.T_RAS_MIN[5:0]
Reset value00011110100000011011001111
0x104DDRCTRL_DRAMTMG1Res.Res.Res.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_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_DRAMTMG3Res.Res.T_MRW[9:0]Res.Res.T_MRD[5:0]Res.Res.T_MOD[9:0]
Reset value00000001010001000000001100
0x110DDRCTRL_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_DRAMTMG5Res.Res.Res.Res.T_CKSRX[3:0]Res.Res.Res.Res.T_CKSRE[3:0]Res.Res.T_CKESR[5:0]Res.Res.Res.T_CKE[4:0]
Reset value0101010100010000011
0x118DDRCTRL_DRAMTMG6Res.Res.Res.Res.T_CKDPDE[3:0]Res.Res.Res.Res.T_CKDPDX[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_CKCSX[3:0]
Reset value001000100101
0x11CDDRCTRL_DRAMTMG7Res.Res.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_CKPDX[3:0]
Reset value00100010
0x120DDRCTRL_DRAMTMG8Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_XS_DLL_X32[6:0]Res.T_XS_X32[6:0]
Reset value10001000000101
0x124 - 0x134Res.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.Res.
0x138DDRCTRL_DRAMTMG14Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.T_XSR[11:0]
Reset value000010100000

Table 19. DDCRTL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x13CDDRCTRL_DRAMTMG15EN_DFI_LP_T_STABRes.Res.Res.Res.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 value000000000
0x140 - 0x17CRes.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.
0x180DDRCTRL_ZQCTL0DIS_AUTO_ZQDIS_SRX_ZQCLZQ_RESISTOR_SHAREDT_ZQ_LONG_NOP[10:0]T_ZQ_SHORT_NOP[9:0]
Reset value0000100000000000000000100000
0x184DDRCTRL_ZQCTL1Res.Res.T_ZQ_RESET_NOP[9:0]T_ZQ_SHORT_INTERVAL_X1024[19:0]
Reset value00001000000000000000100000000
0x188DDRCTRL_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.ZQ_RESET
Reset value0ZQ_RESET_BUSY
0x18CDDRCTRL_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.ZQ_RESET_BUSY
Reset value0
0x190DDRCTRL_DFITMG0Res.Res.Res.DFI_T_CTRL_DELAY[4:0]Res.DFI_T_RDDATA_EN[6:0]Res.Res.DFI_TPHY_WRDATA[5:0]Res.Res.DFI_TPHY_WRLAT[5:0]
Reset value001110000001000000000000010

Table 19. DDCRTL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x194DDRCTRL_DFITMG1Res.Res.Res.Res.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.DFI_T_DRAM_CLK_ENABLE[4:0]
Reset value000000010000100
0x198DDRCTRL_DFILPCFG0Res.Res.Res.DFI_TLP_RESP[4:0]DFI_LP_WAKEUP_DPD[3:0]Res.Res.Res.DFI_LP_EN_DPDDFI_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 value0011100000000000000
0x19CRes.
0x1A0DDRCTRL_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_DFIUPD1Res.Res.Res.Res.Res.Res.Res.DFI_T_CTRLUPD_INTERVAL_MIN_X1024[7:0]Res.Res.Res.Res.Res.Res.Res.DFI_T_CTRLUPD_INTERVAL_MAX_X1024[7:0]
Reset value0000000010000000001
ST logo
ST logo

Table 19. DDCRTL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x1A8DDRCTRL_DFIUPD2DFI_PHYUPD_ENRes
Reset value1
0x1ACRes.ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x1B0DDRCTRL_DFIMISCResResResResResResResResResResResResResResResResResResResDFI_FREQUENCY[4:0]Res.DFI_INIT_STARTCTL_IDLE_ENRes.DFI_INIT_COMPLETE_EN
Reset value000000011
0x1B4 - 0x1B8Res.ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x1BCDDRCTRL_DFISTATResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResDFI_LP_ACKDFI_INIT_COMPLETE
Reset value00
0x1C0Res.ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x1C4DDRCTRL_DFIPHYMSTRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResDFI_PHYMSTR_EN
Reset value1
0x1C8 - 0x200Res.ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x204DDRCTRL_ADDRMAP1Res.ADDRMAP_BANK_B2[5:0]Res.Res.ADDRMAP_BANK_B1[5:0]ADDRMAP_BANK_B0[5:0]
Reset value0000000000000000000000

Table 19. DDCRTL register map and reset values (continued)

column_1column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16column_17column_18column_19RM0441
OffsetRegister Name313 02 92 8 2 7 2 6 2 5 2 42 32 2212 0 19 1817 1615141312 1 1 10 987654 3 2 1 0
DDRCTRL_ADDRMAP2R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.
OL_ C B 5[3:0] A D D R M A P _
C OL_ B 4[3:0] A D D R M A P_
C OL_ B 3[3:0] A D D R M A P_
C OL_ B 2[3:0] A D D R M A P _
Reset value0000000000000000
DDRCTRL_ADDRMAP3R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.
C OL_ 9[4:0] B A D D R M A P _
C OL_ B 8[4:0] A D D R M A P_
C OL_ B 7[4:0] A D D R M A P _
C OL_ B 6[3:0] A D D R M A P _
Reset value0000000000000000000
DDRCTRL_ADDRMAP4R e s.R e s.R e s.R e s. R e s. R e s. R e s. R e s.R e s.R e s.R e s.R e s. R e s. R e s.R e s. R e s.R e s.R e s.R e s.R e s.R e s.R e s.
C OL_ B1 1[4:0] A D D R M A P _
C OL_ B10[4:0] A D D R M A P _
Reset value0000000000
DDRCTRL_ADDRMAP5R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.
OW_ R B 2_10[3:0] A D D R M A P_
OW_ R B1[3:0] A D D R M A P_
OW_ R B 0[3:0] A D D R M A P _
OW_ R B1 1[3:0] A D D R M A P _
Reset value0000000000000000
6G B_12G B L P D D R3 _
R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.R e s.
OW_ R B15[3:0] A D D R M A P _
OW_ R B14[3:0] A D D R M A P_
OW_ R B13[3:0] A D D R M A P_
OW_ R B12[3:0] A D D R M A P _
0x21C -Reset value00000000000000000
0x220Res.R e s.R e s.R e s.R e s. R e s. R e s. R e s. R e s.R e s.R e s.R e s.R e s. R e s. R e s.R e s. R e s.R e s.R e s.R e s.R e s. R e s. R e s.R e s. R e s.R e s.R e s.R e s.R e s. R e s. R e s. R e s. R e s.

Table 19. DDRCCTRL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x224DDRCCTRL_ADDRMAP9Res.Res.Res.Res.Res.ADDRMAP_ROW_B5[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B4[3:0]Res.Res.Res.Res.Res.ADDRMAP_ROW_B3[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B2[3:0]
Reset value0000000000000000
0x228DDRCCTRL_ADDRMAP10Res.Res.Res.Res.Res.ADDRMAP_ROW_B9[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B8[3:0]Res.Res.Res.Res.Res.ADDRMAP_ROW_B7[3:0]Res.Res.Res.Res.ADDRMAP_ROW_B6[3:0]
Reset value0000000000000000
0x22CDDRCCTRL_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 - 0x23CRes.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.
0x240DDRCCTRL_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.Res.
Reset value0100000000100000000
0x244DDRCCTRL_ODTMAPRes.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.RANK0_RD_ODTRes.Res.Res.RANK0_WR_ODT
Reset value11
0x248 - 0x24CRes.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.

Table 19. DDRCTRL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x250DDRCTRL_SCHEDRes.RDWR_IDLE_GAP[6:0]GO2CRITICAL_HYSTERESIS[7:0]Res.LPR_NUM_ENTRIES[3:0]Res.Res.Res.
Reset value0000000000000001000101
0x254DDRCTRL_SCHED1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PAGECLOSE_TIMER[7:0]Res.
Reset value000000000
0x258Res.
0x25CDDRCTRL_PERFHPR1HPR_XACT_RUN_LENGTH[7:0]Res.Res.Res.Res.Res.Res.Res.Res.HPR_MAX_STARVE[15:0]Res.
Reset value0000011110000000000000001
0x260Res.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.Res.
0x264DDRCTRL_PERFLPR1LPR_XACT_RUN_LENGTH[7:0]Res.Res.Res.Res.Res.Res.Res.Res.LPR_MAX_STARVE[15:0]Res.
Reset value0000011110000000001111111
0x268Res.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.Res.

Table 19. DDRCTRL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x26CDDRCTRL_PERFWR1W_XACT_RUN_LENGTH[7:0]Res.Res.Res.Res.Res.Res.Res.Res.W_MAX_STARVE[15:0]
Reset value000011110000000001111111
0x270 - 0x2FCRes.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.
0x300DDRCTRL_DBG0Res.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_COLLISION_PAGE_OPT
Reset value00
0x304DDRCTRL_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_HIF
Reset value00
0x308DDRCTRL_DBGCAMRes.Res.WR_DATA_PIPELINE_EMPTYRD_DATA_PIPELINE_EMPTYRes.DBG_WR_Q_EMPTYDBG_RD_Q_EMPTYDBG_STALLRes.Res.Res.DBG_W_Q_DEPTH[4:0]Res.Res.Res.DBG_LPR_Q_DEPTH[4:0]Res.Res.Res.DBG_HPR_Q_DEPTH[4:0]
Reset value000000000000000000000
0x30CDDRCTRL_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_SHORRes.Res.RANK0_REFRESH
Reset value000

Table 19. DDRCTRL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x310DDRCTRL_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.Res.Res.Res.Res.Res.Res.
Reset value000
0x314 - 0x31CRes.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.Res.
0x320DDRCTRL_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.Res.SW_DONE
Reset value1
0x324DDRCTRL_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.Res.SW_DONE_ACK
Reset value1
0x328 - 0x368Res.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.Res.
0x36CDDRCTRL_POISONCFGRes.Res.Res.Res.Res.Res.Res.RD_POISON_INTR_CLRRes.Res.Res.RD_POISON_INTR_ENRes.Res.Res.RD_POISON_SLVERR_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WR_POISON_SLVERR_ENRes.
Reset value0111
0x370DDRCTRL_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 - 0x3F8Res.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.Res.
Table 19. DDRCTRL register map and reset values (continued)
OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x3FCDDRCTRL_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_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
0x404DDRCTRL_PCFGR_0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RDWR_ORDERED_ENRes.RD_PORT_PAGEMATCH_ENRD_PORT_URGENT_ENRD_PORT_AGING_ENRes.Res.RD_PORT_PRIORITY[9:0]
Reset value01000000000000
0x408DDRCTRL_PCFGW_0Res.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 - 0x48CRes.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.Res.
0x490DDRCTRL_PCTRL_0Res.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

Table 19. DDCRTL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x494DDRCTRL_PCFGQOS0_0Res.Res.Res.Res.Res.Res.RQOS_MAP_REGION2[1:0]Res.Res.RQOS_MAP_REGION1[1:0]Res.Res.RQOS_MAP_REGION0[1:0]Res.Res.Res.Res.RQOS_MAP_LEVEL2[3:0]Res.Res.Res.Res.RQOS_MAP_LEVEL1[3:0]
Reset value10000011100000
0x498DDRCTRL_PCFGQOS1_0Res.Res.Res.Res.Res.Res.RQOS_MAP_TIMEOUTR[10:0]Res.Res.Res.Res.Res.RQOS_MAP_TIMEOUTB[10:0]
Reset value000000000000000000000
0x49CDDRCTRL_PCFGWQOS0_0Res.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_PCFGWQOS1_0Res.Res.Res.Res.Res.Res.WQOS_MAP_TIMEOUT2[10:0]Res.Res.Res.Res.Res.WQOS_MAP_TIMEOUT1[10:0]
Reset value0000000000000000000000
0x4A4 - 0x4B0Res.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.

Table 19. DDRCTRL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x4B4DDRCTRL_PCFGR_1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RDWR_ORDERED_ENRes.RD_PORT_PAGEMATCH_ENRD_PORT_URGENT_ENRD_PORT_AGING_ENRes.Res.RD_PORT_PRIORITY[9:0]
Reset value01000000000000
0x4B8DDRCTRL_PCFGW_1Res.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 - 0x53CRes.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.Res.
0x540DDRCTRL_PCTRL_1Res.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_PCFGQOS0_1Res.Res.Res.Res.Res.Res.RQOS_MAP_REGION2[1:0]Res.Res.RQOS_MAP_REGION1[1:0]Res.Res.RQOS_MAP_REGION0[1:0]Res.Res.Res.Res.RQOS_MAP_LEVEL2[3:0]Res.Res.Res.Res.RQOS_MAP_LEVEL1[3:0]
Reset value10000011100000
0x548DDRCTRL_PCFGQOS1_1Res.Res.Res.Res.Res.RQOS_MAP_TIMEOUTTR[10:0]Res.Res.Res.Res.Res.RQOS_MAP_TIMEOUTTB[10:0]
Reset value0000000000000000000000

Table 19. DDRCTRL register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x54CDDRCTRL_PCFGWQOS0_1Res.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
0x550DDRCTRL_PCFGWQOS1_1Res.Res.Res.Res.Res.WQOS_MAP_TIMEOUT2[10:0]Res.Res.Res.Res.Res.WQOS_MAP_TIMEOUT1[10:0]
Reset value00000000000000000000000

Refer to Section 2.5 on page 149 for the register boundary addresses.

ST logo
ST logo