Address Map - Address Map - 1.0 English - PG353

Versal Adaptive SoC Soft DDR4 SDRAM Memory Controller LogiCORE IP Product Guide (PG353)

Document_ID
PG353
Release_Date
2025-06-25
Version
1.0 English

The app_addr to the DRAM address map is described in the User Interface section. Six mapping options are included:

  • ROW_COLUMN_BANK
  • ROW_BANK_COLUMN
  • BANK_ROW_COLUMN
  • ROW_COLUMN_LRANK_BANK
  • ROW_LRANK_COLUMN_BANK
  • ROW_COLUMN_BANK_INTLV

For a purely random address stream at the user interface, all of the options would result in a similar efficiency. For a sequential app_addr address stream, or any workload that tends to have a small stride through the app_addr memory space, the ROW_COLUMN_BANK mapping generally provides a better overall efficiency. This is due to the Memory Controller architecture and the interleaving of transactions across the Group FSMs. The Group FSMs are described in the Memory Controller section. This controller architecture impact on efficiency should be considered even for situations where DRAM timing is not limiting efficiency. The table shows two mapping options for the 4 Gb (x8) DRAM components.

Table 1. DDR4 4 Gb (x8) DRAM Address Mapping without 3DS Options
DRAM Address DDR4 4 Gb (x8)
ROW_BANK_COLUMN ROW_COLUMN_BANK
Row 15 – –
Row 14 28 28
Row 13 27 27
Row 12 26 26
Row 11 25 25
Row 10 24 24
Row 9 23 23
Row 8 22 22
Row 7 21 21
Row 6 20 20
Row 5 19 19
Row 4 18 18
Row 3 17 17
Row 2 16 16
Row 1 15 15
Row 0 14 14
Column 9 9 13
Column 8 8 12
Column 7 7 11
Column 6 6 10
Column 5 5 9
Column 4 4 8
Column 3 3 7
Column 2 2 2
Column 1 1 1
Column 0 0 0
Bank 2 - -
Bank 1 11 6
Bank 0 10 5
Bank Group 1 13 4
Bank Group 0 12 3
Note: Highlighted bits are used to map addresses to Group FSMs in the controller.

From the DDR4 map, you might expect reasonable efficiency with the ROW_BANK_COLUMN option with a simple address increment pattern. The increment pattern would generate page hits to a single bank, which DDR4 could handle as a stream of back-to-back CAS commands resulting in high efficiency. But looking at the emphasized bank bits in the previous table show that the address increment pattern also maps the long stream of page hits to the same controller Group FSM.

The same address to Group FSM mapping issue applies to x16 DRAMs. The map for DDR4 4 Gb (x16) is shown in this table. The ROW_COLUMN_BANK option gives the best efficiency with sequential address patterns. The bits used to map to the Group FSMs are highlighted.

Table 2. DDR4 4 Gb (x16) Address Mapping
DRAM Address ROW_BANK_COLUMN ROW_COLUMN_BANK
Row 15 – –
Row 14 27 27
Row 13 26 26
Row 12 25 25
Row 11 24 24
Row 10 23 23
Row 9 22 22
Row 8 21 21
Row 7 20 20
Row 6 19 19
Row 5 18 18
Row 4 17 17
Row 3 16 16
Row 2 15 15
Row 1 14 14
Row 0 13 13
Column 9 9 12
Column 8 8 11
Column 7 7 10
Column 6 6 9
Column 5 5 8
Column 4 4 7
Column 3 3 6
Column 2 2 2
Column 1 1 1
Column 0 0 0
Bank 2 – –
Bank 1 12 5
Bank 0 11 4
Bank Group 1 – –
Bank Group 0 10 3

For example, the following table shows how the first 12 app_addr decodes to the DRAM address and maps to the Group FSMs for the ROW_COLUMN_BANK mapping option.

Table 3. DDR4 4 Gb (x16) app_addr Mapping Options
app_addr ROW_COLUMN_BANK
Row Column Bank Group_FSM
0xF8 0x0 0x18 0x3 3
0XE8 0x0 0x18 0x2 2
0XF0 0x0 0x18 0x3 1
0XE0 0x0 0x18 0x2 0
0X78 0x0 0x8 0x3 3
0X68 0x0 0x8 0x2 2
0X70 0x0 0x8 0x3 1
0x60 0x0 0x8 0x2 0
0x38 0x0 0x0 0x3 3
0x28 0x0 0x0 0x2 2
0x30 0x0 0x0 0x3 1
0x20 0x0 0x0 0x2 0

As mentioned in the Memory Controller section, a Group FSM can issue one CAS command every three system clock cycles, or every 12 DRAM clock cycles, even for page hits. Therefore with only a single Group FSM issuing page hit commands to the DRAM for long periods, the maximum efficiency is 33%.

The same Group FSM issue exists for DDR4. With an address increment pattern and the DDR4 ROW_BANK_COLUMN option, the first 4k transactions map to a single Group FSM, as well as mapping to banks within a single DRAM bank group. The DRAM would limit the address increment pattern efficiency due to the tCCD_L timing restriction. The controller limitation in this case is even more restrictive, due to the single Group FSM. Again the efficiency would be limited to 33%.

With the ROW_COLUMN_BANK option, the address increment pattern interleaves across all the DRAM banks and bank groups and all of the Group FSMs over a small address range.

The following figure shows how the DDR4 4 Gb (x8) ROW_COLUMN_BANK address map for the first 128 bytes of app_addr. This graph shows how the addresses map evenly across all DRAM banks and bank groups, and all four controller Group FSMs.

Figure 1. DDR4 4 Gb (x8) Address Map ROW_COLUMN_BANK Graph

The following figure shows the first 64 bytes of app_addr mapping evenly across banks, bank groups, and Group FSMs.

Figure 2. DDR4 4 Gb (x16) Address Map ROW_COLUMN_BANK Graph

When considering whether an address pattern at the user interface results in good DRAM efficiency, the mapping of the pattern to the controller Group FSMs is as important as the mapping to the DRAM address. The app_addr bits that map app_addr addresses to the Group FSMs are shown in the table for 4 Gb and 8 Gb components.

Table 4. DDR4 Map Options for 4 Gb and 8 Gb
Memory Type DDR4
Map Option ROW_BANK_COLUMN ROW_COLUMN_BANK
DRAM Component Width x4, x8 x16 x4, x8, x16
Component Density – – –
4 Gb 13,12 12,10 4,3
8 Gb 13,12 12,10 4,3