Memory Mapping in P1015

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Memory Mapping in P1015

跳至解决方案
1,014 次查看
pavankumarg
Contributor II

Hi,

I am currently using a P1015 based custom board which is to be booted using U-boot. I am currently planning to have a custom memory mapping for the board.

The memory mapping of the custom board is as follows:

0x0000_0000 - 0x0FFF_FFFF    DDR3 (Size - 256M)

0x1010_0000 - 0x101F_FFFF    NVRAM (Size - 1M)

0x1030_0000 - 0x122F_FFFF    FPGA  (Size - 32M)

0xF7F0_0000 - 0xF7FF_FFFF   CCSR (Size - 1M)

0xF800_0000 - 0xF8FF_FFFF    Boot Flash (Size - 16M)

Am I correct in assuming that the memory mapping can be changed to suit our requirements. Or are there any constraints to be followed in the memory mapping. Please advice.

标签 (1)
0 项奖励
回复
1 解答
883 次查看
r8070z
NXP Employee
NXP Employee


Have a great day,

Yes the memory mapping can be changed. Notice in the memory controller you should set base address aligned to the bank size. I.e. for 32 M you cannot set 0x1030_0000 as base address. Set for example 0x1200_0000.

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

在原帖中查看解决方案

0 项奖励
回复
3 回复数
884 次查看
r8070z
NXP Employee
NXP Employee


Have a great day,

Yes the memory mapping can be changed. Notice in the memory controller you should set base address aligned to the bank size. I.e. for 32 M you cannot set 0x1030_0000 as base address. Set for example 0x1200_0000.

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

0 项奖励
回复
883 次查看
pavankumarg
Contributor II

Should the constraint of setting the base address aligned to bank size be followed for FPGA strictly, because the FPGA's internal memory mapping has been done using 0x1030_0000 as the base address. Also should this alignment of base address mentioned by you be followed for other devices too (like the NVRAM or CCSR) ?

0 项奖励
回复
883 次查看
r8070z
NXP Employee
NXP Employee


Have a great day,

Actually external device memory map and memory controller (eLBC) bank sizes can be different. The memory controller bank size is set in the bank option register as bit mask for address. Due to that continuous memory block will be aligned on its size boundary. You can set bank memory size greater than the FPGA requires and use only unaligned part of it.

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

0 项奖励
回复