DDR PHY Register mapping question from Reference Manual

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DDR PHY Register mapping question from Reference Manual

2,942件の閲覧回数
shangregister
Contributor II

Hi All 

i don't know what is the DDR PHY register related to the " i.MX 8M Dual/8M QuadLite/8M Quad Applications Processors Reference Manual, Rev. 2, 08/2019"

In MX8M_LPDDR4_RPA_v23.xlsx DDR Tools it represent like this ;

DDR_PHY_Dq0LnSel_00x3C0402800x00000000
DDR_PHY_Dq1LnSel_00x3C0402840x00000001
DDR_PHY_Dq2LnSel_00x3C0402880x00000002
DDR_PHY_Dq3LnSel_00x3C04028C0x00000003
DDR_PHY_Dq4LnSel_00x3C0402900x00000004
DDR_PHY_Dq5LnSel_00x3C0402940x00000005
DDR_PHY_Dq6LnSel_00x3C0402980x00000006
DDR_PHY_Dq7LnSel_00x3C04029C0x00000007

but gen from MSCALE_DDR_Tool.exe the lpddr4_timing.c it represent like this :

struct dram_cfg_param ddr_ddrphy_cfg[] = {

{0x100a0,0x0},
{0x100a1,0x1},
{0x100a2,0x2},
{0x100a3,0x3},
{0x100a4,0x4},
{0x100a5,0x5},
{0x100a6,0x6},
{0x100a7,0x7},

....

...

..

.

 

then in the Applications Processors Reference Manual  represent like this  :

DWC_DDRPHYA_DBYTE0 base address: 1_0000h

9.4.3.3.35 Maps Phy DQ lane to memory DQ0 (Dq0LnSel - Dq7LnSel)

9.4.3.3.35.1 Offset
For n = 0 to 7:
Register Offset
DqnLnSel 140h + (n × 2h)

in this moment i know   

0x3C000000 from manual DDR PHY Register base addr

0x100a0  from lpddr4_timing.c 

0x3C040280 from the ddr tools excel 

formula in the uboot code like this 0x3C000000 + 4*0x100a0 = 0x3C040280 this is fine, i understand .

but what is the Reference Manual  represent ??? DqnLnSel 140h + (n × 2h)

i don't know how to use 140h ?? 

how can be from 0x3C000000+DqnLnSel 140h + (n × 2h) to be a 0x3C040280 ???

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

2,818件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Hanson

>what is the Reference Manual  represent ??? DqnLnSel 140h + (n × 2h)

Dq0LnSel  Offset=140h + ((n=0) × 2h)
Dq1LnSel  Offset=140h + ((n=1) × 2h)
Dq2LnSel  Offset=140h + ((n=2) × 2h)
...
e.t.c.

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

0 件の賞賛
返信

2,818件の閲覧回数
shangregister
Contributor II

hi igorpadykov,

u just repeat my question.........

i know what is n for it 

//============================

For n = 0 to 7:
Register Offset
DqnLnSel 140h + (n × 2h)

//============================

it is wrote on my top post.

anyway what is the 9.4.3.3.35 Maps Phy DQ lane to memory DQ0 (Dq0LnSel - Dq7LnSel) completed address??

i know the address is 0x3C040280 

how can be 0x3C000000 +140h + (n=0 × 2h) to get 0x3C040280 ???

which formula can get the right answer form the menu offset(140h+(n=0 x2h))?

0 件の賞賛
返信

2,818件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

description in Manual is given from IP module description (there is "NOTE":

Synopsys Proprietary. Used with permission) as "16 bit width" while MX8M_LPDDR4_RPA_v23.xlsx

uses 32 bit addresses.

Best regards
igor

0 件の賞賛
返信

2,818件の閲覧回数
shangregister
Contributor II

so any detail of that??

do you Synopsys PHY datasheet or the contact window??

0 件の賞賛
返信