15. DDR performance monitor (DDRPERFM)

15.1 DDRPERFM introduction

The DDRPERFM is intended to monitor DDR controller performance by counting events from a set of signals and gathering results under the software control. The DDRPERFM can be used to feedback important statistics such as the DDR utilization, read/write bandwidth, bank activation, idle state duration for some off-line analysis of the DDR system performance and for optimal parameter settings to improve the DDR utilization, and for power optimization.

15.2 DDRPERFM main features

15.3 DDRPERFM block diagram

Figure 44 presents the overall architecture of the DDRPERFM. The DDRPERFM either sniffs signals on the DFI interface, or receives inputs from the DDRCTRL performance port. Based on the filtering scheme programmed in its registers, the DDRPERFM counts filtered event occurrences in one of its eight internal counters. An interrupt is fired when a stop condition occurs (the counter overflows or the stop is reached).

Figure 44. DDRPERFM top view

Block diagram of DDRPERFM top view showing internal components like DDRCTRL, DFI AC decoder, LPDDR4, DDR3, DDR4, EVCNT counters, TCNT, and APB CR, along with external interfaces like ddrperfm1_int.

The diagram illustrates the DDRPERFM top view. It shows the DDRCTRL block on the left, which receives ddr_cer_ck and provides DFI address/command to the DDRPERFM block. The DDRPERFM block contains a DFI AC decoder with LPDDR4, DDR3, and DDR4 options. It also includes a Perfmon_clk block, three event counters (EVCNT<0>, EVCNT<1>, EVCNT<7>), a time counter (TCNT), and an APB CR block. The EVCNT counters are connected to the DFI address/command and the Perfmon_clk. The TCNT is connected to the EVCNT counters and the APB CR. The APB CR block is connected to the pclk and APB interfaces. The output of the APB CR is ddrperfm1_int. A legend indicates that 'F' represents Rank/bank group/bank filtering. The diagram is labeled MSv67484V2.

Block diagram of DDRPERFM top view showing internal components like DDRCTRL, DFI AC decoder, LPDDR4, DDR3, DDR4, EVCNT counters, TCNT, and APB CR, along with external interfaces like ddrperfm1_int.

15.4 DDRPERFM functional description

A free running 32-bit time counter (TCNT) shares the DDRCTRL counter, and enables to compute the DDRSS statistics. The maximum value is programmable through the APB register. The default value is 0xFFFF FFFF. The TCNT is incremented every 4 DFI_CLK (= 8 DRAM_CLK cycles = burst length). When the TCNT overflows, all counters are frozen. The counter values can be read through the APB interface.

The DDRPERM implements eight independent 32-bit counters: EVCNT<7-0> sharing DDRCTRL clock. The counters input selection is configured through a dedicated control register (SEL_EVENT<I>) which enables to choose one of the 64 events that are available.

For each counter, a filtering can be applied based on bank or bank group (for DDR4 only). This filtering is managed through FILT_EVENT<i>.

The EVTCNT counters can be cleared by software through the APB interface, and their values can be read through the APB registers.

The DDRPERFM is inactive by default. It starts counting events when a start triggered by software is received. Counters are stopped when a stop is triggered by the software.

When the counter overflows, all counters are frozen and a dedicated maskable interruption line is asserted (ddrperfm_int). When an interrupt is detected, before clearing the interrupt, the software must clear the counters to avoid the interrupt to be raised again.

15.4.1 DDRPERFM performance monitor events

The commands sent by the controller can be monitored either at the DFI interface (signal name DFI_xxx), or at the performance logging interface (signal name OP_xxx).

A better granularity is provided for commands captured at DFI interface:

The list of events which can be captured by the performance monitor is given in the tables below:

Table 62. Signals coming from DFI command-address decoder

-N0Signal nameDescription
DFI decoded DRAM commands0DFI_IS_ACTAsserted when an ACT command is sent by the controller
1DFI_IS_PREPBAsserted when a PRE per bank command is sent by the controller
2DFI_IS_PREABAsserted when a PRE all banks command is sent by the controller
3DFI_IS_RDAsserted when a RD command is sent by the controller (AP bit ignored)
4DFI_IS_RDAAsserted when a RD with AP command is sent by the controller
5ReservedReserved
6DFI_IS_WRAsserted when a WR command is sent by the controller (AP bit ignored)
7DFI_IS_WRAAsserted when a WR with AP command is sent by the controller
8ReservedReserved
9DFI_IS_MWRAsserted when a MWR command is sent by the controller (AP bit ignored, LPDDR4 only)
10DFI_IS_MWRAAsserted when a MWR with AP command is sent by the controller (LPDDR4 only)
11ReservedReserved
12DFI_IS_MRWAsserted when a MRW command is sent by the controller
13DFI_IS_MRRAsserted when a MRR command is sent by the controller
14DFI_IS_REFPBAsserted when a refresh per bank command is sent by the controller
15DFI_IS_REFABAsserted when a refresh all banks command is sent by the controller
16DFI_IS_MPCAsserted when an MPC command is sent by the controller (LPDDR4 only)

Table 63. Signals monitored at performance logging interface (provided by DDRCTRL)

-N0Signal nameDescription
DDRC recorded DRAM commands32PERF_OP_IS_ACTAsserted for every DRAM activate command logged by the controller
33PERF_OP_IS_RDAsserted for every DRAM read command logged by the controller
34PERF_OP_IS_WRAsserted for every DRAM write command logged by the controller
35PERF_OP_IS_MWRAsserted for every DRAM masked write command logged by the controller
36PERF_OP_IS_REFAsserted for every DRAM refresh command logged by the controller
37PERF_OP_IS_CRIT_REFAsserted for every critical DRAM refresh command logged by the controller
38PERF_OP_IS_SPEC_REFAsserted for every speculative DRAM refresh command logged by the controller
39PERF_OP_IS_ZQCALAsserted for every ZQCS or ZQCL calibration command logged by the controller
40PERF_OP_IS_ENTER_POWDNAsserted for every entry into DRAM power-down mode
41PERF_OP_IS_ENTER_SELFREFAsserted for every entry into DRAM self-refresh mode
42PERF_OP_IS_PREAsserted for every precharge command logged by the controller
43PERF_OP_IS_PRE_FOR_RDWRAsserted when the precharge command is associated to a read or write command
44PERF_OP_IS_PRE_FOR_OTHERSAsserted when the precharge command is due to requests other than read or write
45PERF_OP_IS_RD_ACTIVATEAsserts for every read activate that is issued
DDRCTRL p.i. (performance indicators)48PERF_HPR_REQ_WITH_NOCREDITAsserted when there is a high priority read request (from XPI to port arbiter) which is not served due to no available credit
49PERF_LPR_REQ_WITH_NOCREDITAsserted when there is a low priority read request (from XPI to port arbiter) which is not served due to no available credit
50PERF_HPR_XACT_WHEN_CRITICALAsserted for every high priority read transaction that is scheduled when the high priority queue is in critical state
51PERF_LPR_XACT_WHEN_CRITICALAsserted for every low priority read transaction that is scheduled when the low priority queue is in critical state
52PERF_WR_XACT_WHEN_CRITICALAsserted for every high priority write transaction that is scheduled when the write queue is in critical state
53PERF_RDWR_TRANSITIONSAsserted for every read to write and write to read bus turnaround
54PERF_WAR_HAZARDAsserted for every write after read collision that happens in the DDRC
55RAW_HAZARDAsserted for every read after write collision that happens in the DDRC
56PERF_WAW_HAZARDAsserted for every write after write collision that happens in the DDRC
57ReservedReserved
58PERF_RANKGives the rank number for every scheduled command through the DDRC.

Table 63. Signals monitored at performance logging interface (provided by DDRCTRL) (continued)

-N0Signal nameDescription
DDRCTRL.p.i59PERF_READ_BYPASSAsserts for every read command that is sent through the bypass path
60PERF_ACT_BYPASSAsserts for every activate command that is sent through the bypass path
61PERF_WINDOW_LIMIT_REACHED_RDIndicates that at least one RD CAM entry reaches visible window limit at this cycle. Performance feature to avoid extreme starvation.
62PERF_WINDOW_LIMIT_REACHED_WRIndicates that at least one WR CAM entry reaches visible window limit at this cycle. Performance feature to avoid extreme starvation.
63NO_EVENTSignal number to be selected for event counters that are unused in the DDRPERFM module

15.4.2 DDRPERFM DFI command decoder

The DFI command decoder is implemented to extract specific events decoding the DFI commands sent by controller to PHY. The inputs are:

The DFI command decoder has a selector (dram_type) which defines the DRAM type attached to the device. It is used to select the DFI decoder depending on the DRAM protocol used.

The following table lists the events generated by DFI command address decoder (concerned filters are highlighted in gray).

Table 64. Events generated by the DFI command address decoder

Event nameDRAM typeBank filterBG filterComment
DFI_IS_MRWLPDDR4NoNoAsserted when a mode register write (MRW) commands is sent by the controller: MRS in DDR3/4
LPDDR3NoNo
DDR4NoNo
DDR3NoNo
DFI_IS_MRRLPDDR4NoNoAsserted when a mode register read (MRR) commands is sent by the controller: Does not exist in DDR3/4
LPDDR3NoNo
DFI_IS_MPCLPDDR4NoNoAsserted when a multi-purpose command (MPC) is sent by the controller. Only for LPDDR4.
DFI_IS_REFPBLPDDR4YesNoAsserted when a refresh per bank command is sent by the controller. For LPDDR3, bank to refresh is defined in DRAM round robin algorithm.
LPDDR3NoNo
DFI_IS_REFABLPDDR4NoNoAsserted when a refresh all banks command is sent by the controller. For DDR3/4, the refresh addressing is generated by the internal refresh controller.
LPDDR3NoNo
DDR4NoNo
DDR3NoNo

Table 64. Events generated by the DFI command address decoder (continued)

LPDDR4YesNoAsserted when an PRE per bank command is sent by the controller.
LPDDR4YesNo
LPDDR3 DFI_IS_PREPBYesNoAsserted when an PRE per bank command is sent by the
DDR4YesYescontroller.
DDR3YesNo
LPDDR4NoNo
LPDDR3 DFI_IS_PREABNoNoAsserted when an PRE all banks command is sent by the
DDR4NoNocontroller.
DDR3NoNo
LPDDR4YesNo
LPDDR3YesNo
DFI_IS_ACT DFI_IS_ACTAsserted when an ACTIVATE command is sent by the controller.
DDR4YesYes
DDR3YesNo
LPDDR4YesNo
LPDDR3 DFI_IS_WRYesNoAsserted when a WR command is sent by the controller (AP bit
DDR4YesYesignored).
DDR3YesNo
LPDDR4YesNo
LPDDR3YesNo
DFI_IS_WRA DFI_IS_WRAAsserted when a WR with AP command is sent by the controller.
DDR4YesYes
DDR3YesNo
DFI_IS_MWR LPDDR4YesNoAsserted when a masked write command is sent by the controller
DFI_IS_MWRA LPDDR4YesNoAsserted when a masked write command with AP is sent by the
LPDDR4YesNo
LPDDR3 DFI_IS_RDYesNoAsserted when a RD command is sent by the controller (AP bit is
DDR4YesYesignored)
DDR3YesNo
LPDDR4YesNo
LPDDR3YesNo
DFI_IS_RDA DFI_IS_RDAAsserted when a RD command with AP is sent by the controller
DDR4YesYes
DDR3YesNo
RM0506 Rev 2 699/ 4831

15.5 DDRPERFM registers

This section presents the registers for controlling the performance monitor.

15.5.1 DDRPERFM control register (DDRPERFM_CTRL)

Address offset: 0x0000

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

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

Bit 1 STOP:

Writing 1 stops all counters. Writing 0 has no effect. Writing 1 when counters are stopped has no effect.

Bit 0 START:

Writing 1 starts all counters. All internal counters and status bits are cleared before events are monitored. Writing 0 has no effect. Writing 1 when counters are running has no effect.

15.5.2 DDRPERFM interrupt mask register (DDRPERFM_IMSK)

Address offset: 0x0004

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.INTRM
SK
rw

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

Bit 0 INTRMSK:

0: No effect

1: DDRPERFM interruption signal masked.

15.5.3 DDRPERFM interrupt clear register (DDRPERFM_ICLR)

Address offset: 0x0008

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

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

Bit 1 INTRSET:

0: No effect

1: Set the interruption signal when asserted.

Bit 0 INTRCLR:

0: No effect

1: Clear the interruption signal when asserted.

Note: The counters must be cleared first (to remove the interruption condition) before the interruption is cleared.

15.5.4 DDRPERFM counter clear register (DDRPERFM_CLR)

Address offset: 0x000C

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.TNTCLRCNTCLR[7:0]
rwrwrwrwrwrwrwrwrw

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

Bit 8 TNTCLR:

0: No effect

1: Clear free running counter and associated status bits (timeout and overflow indicators).

Note: Setting this bit is ignored if BUSY = 1 in DDRPERFM_STATUS.

Bits 7:0 CNTCLR[7:0]:

0: No effect

1: Clear corresponding counters and associated status bits (timeout and overflow indicators).

Note: Setting this bit is ignored if BUSY = 1 in DDRPERFM_STATUS.

15.5.5 DDRPERFM configuration register 0 (DDRPERFM_CFG0)

Address offset: 0x0010

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.SEL_EVENT3[5:0]Res.Res.SEL_EVENT2[5:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.SEL_EVENT1[5:0]Res.Res.SEL_EVENT0[5:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 29:24 SEL_EVENT3[5:0]: Selection of the performance logging signal to be monitored by the event counter 3

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

Bits 21:16 SEL_EVENT2[5:0]: Selection of the performance logging signal to be monitored by the event counter 2

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

Bits 13:8 SEL_EVENT1[5:0]: Selection of the performance logging signal to be monitored by the event counter 1

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

Bits 5:0 SEL_EVENT0[5:0]: Selection of the performance logging signal to be monitored by the event counter 0

15.5.6 DDRPERFM configuration register 1 (DDRPERFM_CFG1)

Address offset: 0x0014

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.SEL_EVENT7[5:0]Res.Res.SEL_EVENT6[5:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.SEL_EVENT5[5:0]Res.Res.SEL_EVENT4[5:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 29:24 SEL_EVENT7[5:0]: Selection of the performance logging signal to be monitored by the event counter 7

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

Bits 21:16 SEL_EVENT6[5:0]: Selection of the performance logging signal to be monitored by the event counter 6

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

Bits 13:8 SEL_EVENT5[5:0]: Selection of the performance logging signal to be monitored by the event counter 5

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

Bits 5:0 SEL_EVENT4[5:0]: Selection of the performance logging signal to be monitored by the event counter 4

15.5.7 DDRPERFM configuration register 2 (DDRPERFM_CFG2)

Address offset: 0x0018

Reset value: 0x0000 0000

31302928272625242322212019181716
FILT_POL3[2:0]FILT_RBG3[4:0]FILT_POL2[2:0]FILT_RBG2[4:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FILT_POL1[2:0]FILT_RBG1[4:0]FILT_POL0[2:0]FILT_RBG0[4:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:29 FILT_POL3[2:0]: Selection of the performance logging signal to be monitored by the event counter 3

Filtering policy for the event counter 3 (refer to Table 65).

Bits 28:24 FILT_RBG3[4:0]: Configuration of the rank/bank/bank group filtering for the event counter 3 based on FILT_POL3 value

Bit 4: Define the rank value when rank filtering is activated. Value 0 means that only commands applied on Rank0 are counted. Value 1 means that only commands applied on rank1 are counted.

Bits 3:0: Define drank group/bank address/ used for filtering

When filtering is activated:

- For DDR4, the FILT_RBGx[3:2] bits correspond to bank group, and FILT_RBGx[1:0] correspond to bank address.

- For LPDDR3/4, the DDR3 bits FILT_RBGx[2:0] bits correspond to bank address, and FILT_RBG3 is unused.

Bits 23:21 FILT_POL2[2:0]: Filtering policy for the event counter 2. (refer to Table 65)

Bits 20:16 FILT_RBG2[4:0]: Configuration of the rank/bank/bank group filtering for the event counter 2 based on FILT_POL2 value

Bits 15:13 FILT_POL1[2:0]: Filtering policy for the event counter 1 (refer to Table 65)

Bits 12:8 FILT_RBG1[4:0]: Configuration of the rank/bank/bank group filtering for the event counter 1 based on FILT_POL1 value

Bits 7:5 FILT_POL0[2:0]: Filtering policy for the event counter 0 (refer to Table 65)

Bits 4:0 FILT_RBG0[4:0]: Configuration of the rank/bank/bank group filtering for the event counter 0 based on FILT_POL0 value

Table 65. Filtering policy

FILT_POLxRank filteringBank group filtering(1)Bank filteringcomment
000NoNoNoNo filtering is applied. The counter counts all events whatever rank, bank group and bank address.
001NoNoYesFiltering based on FILT_RBGx value
010NoYesNoFiltering based on FILT_RBGx value
011NoYesYesFiltering based on FILT_RBGx value
100YesNoNoFiltering based on FILT_RBGx value
101YesNoYesFiltering based on FILT_RBGx value
110YesYesNoFiltering based on FILT_RBGx value
111YesYesYesFiltering based on FILT_RBGx value

1. Only relevant for DDR4.

15.5.8 DDRPERFM configuration register 3 (DDRPERFM_CFG3)

Address offset: 0x001C

Reset value: 0x0000 0000

31302928272625242322212019181716
FILT_POL7[2:0]FILT_RBG7[4:0]FILT_POL6[2:0]FILT_RBG6[4:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FILT_POL5[2:0]FILT_RBG5[4:0]FILT_POL4[2:0]FILT_RBG4[4:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

15.5.9 DDRPERFM configuration register 4 (DDRPERFM_CFG4)

Address offset: 0x0020

Reset value: 0xFFFF FFFF

Timeout value for the time counter.

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

Bits 31:0 TIME_OUT[31:0]: Timeout value for the time counter

When this value is reached, the DDRPERFM automatically stops: All counters are frozen.
The status bit TCNT_TIMEOUT is asserted. The (maskable) interrupt signal is asserted.

15.5.10 DDRPERFM event counter enable register (DDRPERFM_CFG5)

Address offset: 0x0024

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

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

Bits 7:0 EVCNT_EN[7:0]: Event counter enable

When bit <i> is set, the corresponding counter is enabled.

Note: Enable must be written when counters are not running.

15.5.11 DDRPERFM DRAM information register (DDRPERFM_DRAMINF)

Address offset: 0x0028

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.DRAM_TYPE[1:0]
rwrw

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

Bits 1:0 DRAM_TYPE[1:0]: DRAM information used for DFI decoding

15.5.12 DDRPERFM event counter 0 register (DDRPERFM_EVCNT0)

Address offset: 0x0040

Reset value: 0x0000 0000

31302928272625242322212019181716
EVCNT0[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
EVCNT0[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 EVCNT0[31:0]:Counter value for event 0

15.5.13 DDRPERFM event counter 1 register (DDRPERFM_EVCNT1)

Address offset: 0x0044

Reset value: 0x0000 0000

31302928272625242322212019181716
EVCNT1[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
EVCNT1[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 EVCNT1[31:0]:Counter value for event 1

15.5.14 DDRPERFM event counter 2 register (DDRPERFM_EVCNT2)

Address offset: 0x0048

Reset value: 0x0000 0000

31302928272625242322212019181716
EVCNT2[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
EVCNT2[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 EVCNT2[31:0]: Counter value for event 2

15.5.15 DDRPERFM event counter 3 register (DDRPERFM_EVCNT3)

Address offset: 0x004C

Reset value: 0x0000 0000

31302928272625242322212019181716
EVCNT3[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
EVCNT3[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 EVCNT3[31:0]: Counter value for event 3

15.5.16 DDRPERFM event counter 4 register (DDRPERFM_EVCNT4)

Address offset: 0x0050

Reset value: 0x0000 0000

31302928272625242322212019181716
EVCNT4[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
EVCNT4[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 EVCNT4[31:0]: Counter value for event 4

15.5.17 DDRPERFM event counter 5 register (DDRPERFM_EVCNT5)

Address offset: 0x0054

Reset value: 0x0000 0000

31302928272625242322212019181716
EVCNT5[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
EVCNT5[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 EVCNT5[31:0]: Counter value for event 5

15.5.18 DDRPERFM event counter 6 register (DDRPERFM_EVCNT6)

Address offset: 0x0058

Reset value: 0x0000 0000

31302928272625242322212019181716
EVCNT6[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
EVCNT6[15:0]
rrrrrrrrrrrrrrrr
Bits 31:0 EVCNT6[31:0] : Counter value for event 6

15.5.19 DDRPERFM event counter 7 register (DDRPERFM_EVCNT7)

Address offset: 0x005C

Reset value: 0x0000 0000

31302928272625242322212019181716
EVCNT7[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
EVCNT7[15:0]
rrrrrrrrrrrrrrrr
Bits 31:0 EVCNT7[31:0] : Counter value for event 7

15.5.20 DDRPERFM time counter register (DDRPERFM_TCNT)

Address offset: 0x0060

Reset value: 0x0000 0000

31302928272625242322212019181716
TCNT[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
TCNT[15:0]
rrrrrrrrrrrrrrrr
Bits 31:0 TCNT[31:0] : Time counter value

Must only be read when the PERFM is stopped.

15.5.21 DDRPERFM status register (DDRPERFM_STATUS)

Address offset: 0x0080

Reset value: 0x0000 0000

31302928272625242322212019181716
BUSYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TCNT_OVFL
rr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.EVCNT7_OVFLEVCNT6_OVFLEVCNT5_OVFLEVCNT4_OVFLEVCNT3_OVFLEVCNT2_OVFLEVCNT1_OVFLEVCNT0_OVFL
rrrrrrrr

Bit 31 BUSY: Real-time busy indicator

This bit is asserted as long as counters are running, and deasserted when a stop condition occurs (software controlled stop command or counter overflow).

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

Bit 16 TCNT_OVFL:

When read to 1, the DDRPERFM is stopped due to time counter reaching the timeout value.

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

Bit 7 EVCNT7_OVFL:

When read to 1, the DDRPERFM is stopped due to event counter 7 overflow.

Bit 6 EVCNT6_OVFL:

When read to 1, the DDRPERFM is stopped due to event counter 6 overflow.

Bit 5 EVCNT5_OVFL:

When read to 1, the DDRPERFM is stopped due to event counter 5 overflow.

Bit 4 EVCNT4_OVFL:

When read to 1, the DDRPERFM is stopped due to event counter 4 overflow.

Bit 3 EVCNT3_OVFL:

When read to 1, the DDRPERFM is stopped due to event counter 3 overflow.

Bit 2 EVCNT2_OVFL:

When read to 1, the DDRPERFM is stopped due to event counter 2 overflow.

Bit 1 EVCNT1_OVFL:

When read to 1, the DDRPERFM is stopped due to event counter 1 overflow.

Bit 0 EVCNT0_OVFL:

When read to 1, the DDRPERFM is stopped due to event counter 0 overflow.

15.5.22 DDRPERFM version register (DDRPERFM_VERR)

Address offset: 0x3F4

Reset value: 0x0000 0020

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MAJREV[3:0]MINREV[3:0]
rrrrrrrr

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

Bits 7:4 MAJREV[3:0]: DDRPERFM major revision

Bits 3:0 MINREV[3:0]: DDRPERFM minor revision

15.5.23 DDRPERFM identification register (DDRPERFM_ID)

Address offset: 0x3F8

Reset value: 0x0014 0061

31302928272625242322212019181716
ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 ID[31:0]: DDRPERFM unique identification

15.5.24 DDRPERFM magic ID register (DDRPERFM_SID)

Address offset: 0x3FC

Reset value: 0xA3C5 DD01

31302928272625242322212019181716
SID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 SID[31:0]: Magic ID for automatic DDRPERFM discovery

15.5.25 DDRPERFM register map

Table 66. DDRPERFM register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000DDRPERFM_CTRLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STOPSTART
Reset value00
0x004DDRPERFM_IMSKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INTRMSK0
Reset value00
0x008DDRPERFM_ICLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INTRCLR00
Reset value00
0x00CDDRPERFM_CLRRes.Res.Res.Res.Res.Res.Res.Res.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 value
0x010DDRPERFM_CFG0Res.Res.Res.Res.Res.Res.Res.Res.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 value
0x014DDRPERFM_CFG1Res.Res.Res.Res.Res.Res.Res.Res.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 value
0x018DDRPERFM_CFG2FILT_POL3[2:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]FILT_RB3[4:0]
Reset value00000000000000000000000000000000
0x01CDDRPERFM_CFG3FILT_POL7[2:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]FILT_RB7[4:0]
Reset value00000000000000000000000000000000
0x020DDRPERFM_CFG4TIME_OUT[31:0]
Reset value11111111111111111111111111111111
0x024DDRPERFM_CFG5Res.Res.Res.Res.Res.Res.Res.Res.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 value
0x028DDRPERFM_DRAMINFRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0
0x02C-0x03CReservedReserved
0x040 + 0x4 * x (x=0 to 7)DDRPERFM_EVCNTxEVCNTx[31:0]
Reset value00000000000000000000000000000000
0x060DDRPERFM_TCNTTCNT[31:0]
Reset value00000000000000000000000000000000
0x064-0x07CReservedReserved
0x080DDRPERFM_STATUSBUSYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0

Table 66. DDRPERFM register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x084-0x3F0ReservedReserved
0x3F4DDRPERFM_VERRResResResResResResResResResResResResResResResResResResResResResResMAJREV[3:0]MINREV[3:0]
Reset value0000100000
0x3F8DDRPERFM_IDID[31:0]
Reset value000000000001010000000000001100001
0x3FCDDRPERFM_SIDSID[31:0]
Reset value100100111011010111001100000000001

Refer to Section 2.4 for the register boundary addresses.

ST logo
ST logo