imx6d lpddr2 MT42L256M64D4LM-25 and CS0_END

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6d lpddr2 MT42L256M64D4LM-25 and CS0_END

945 Views
anrov
Contributor I

Our custom board uses this config:

cpu: i.MX6D

lpddr2: MT42L256M64D4LM-25 (2GBytes)

ddr memory map: trying 4KB interleaving

Q1: Why does the "i.Mx6DQSDL LPDDR2 Script Aid" (V0.04) produce these values for CS0_END?

Chan0 CS0_END: 0x00000053  (= 0xa8000000 bytes = 2688MB)

Chan1 CS0_END: 0x00000013  (= 0x28000000 bytes = 640MB)

Q1a: Does this imply that the address space for the ram has a gap between the first 640MB (at channel 1) and the remaining 1408MB (at channel 0)?

Q1b: Given our configuration, what is the base address of our ram: 0x10000000 or 0x80000000?

Q2: What is the purpose of the ddr memory map option "4KB interleaving"? Is there an advantage/disadvantage compared to the fixed 2x32 map?

This is what I have entered into the "Register Configuration" tab in the "i.Mx6DQSDL LPDDR2 Script Aid" (V0.04):

lpddr2_00.png

Labels (2)
0 Kudos
1 Reply

492 Views
Yuri
NXP Employee
NXP Employee

Please look at my comments below.

1.

> Why does the "i.Mx6DQSDL LPDDR2 Script Aid" (V0.04) produce these values for CS0_END?

> Chan0 CS0_END: 0x00000053  (= 0xa8000000 bytes = 2688MB)

> Chan1 CS0_END: 0x00000013  (= 0x28000000 bytes = 640MB)

Hope the enclosed picture helps.

Chan0 start addr = 0x8000_0000 +0x0800_0000 ; density_MB_per_CS = 0x2000_0000

Chan0 CS0_END [(Chan0_start_addr + density_MB_per_CS) / 0x0200_0000] – 1 = 0x53

Chan1 start addr 0x1000_0000 – 0x0800_0000 ;

Chan1 CS0_END [(Chan0_start_addr + density_MB_per_CS) / 0x0200_0000] – 1 = 0x13

2.

>  What is the purpose of the ddr memory map option "4KB interleaving"? Is there an

> advantage/disadvantage compared to the fixed 2x32 map?

Increases DDR usage efficiency :

By ~30% vs. one-channel x64 DDR3

By ~10% vs. plain two-channel x32 LPDDR2

Inherent symmetric load of both DDR channels

Inherent concurrency of both DDR channels


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos