How does the L3 cache mapping to memory in P4080DS, how the address was translated?

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

How does the L3 cache mapping to memory in P4080DS, how the address was translated?

ソリューションへジャンプ
1,545件の閲覧回数
peterzheng
Contributor II

Hi,

Currently I am trying to run a program on Core 0 of P4080ds. I would like to restrict the program to only use 1/8 of the L3 cache?

May I know how could I achieve this?

Regards,

Peter Zheng

ラベル(1)
0 件の賞賛
返信
1 解決策
1,263件の閲覧回数
scottwood
NXP Employee
NXP Employee

I don't know if CodeWarrior can create standalone applications that run under the hypervisor -- I suggest starting a new thread with that in the subject to get the attention of someone who might know.  Certainly, you wouldn't be using CodeWarrior to actually run the project.  The hypervisor has to do that.

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
1,263件の閲覧回数
scottwood
NXP Employee
NXP Employee

The CPC can be partitioned by way.  If you are using the Embedded Hypervisor (Topaz), as your other questions suggest you are, this can be configured using the allocate-cpc-ways property in the hv config tree on the PMA node.

0 件の賞賛
返信
1,263件の閲覧回数
peterzheng
Contributor II

Thanks Scott. After partitioning the CPC, if I would like to do some testing, I am thinking about the following method, is this the right way?

(1) boot up the P4080DS into hypervisor, which has partitioned the CPC

(2) Start a bareboard project on CodeWarrior, for each core of P4080DS, one project was created

(3) Run the bareboard project on P4080DS

Will the test program follow the partition I created?

If not, how would you suggest to test the partition?

Regards,

Peter

0 件の賞賛
返信
1,264件の閲覧回数
scottwood
NXP Employee
NXP Employee

I don't know if CodeWarrior can create standalone applications that run under the hypervisor -- I suggest starting a new thread with that in the subject to get the attention of someone who might know.  Certainly, you wouldn't be using CodeWarrior to actually run the project.  The hypervisor has to do that.

0 件の賞賛
返信
1,263件の閲覧回数
peterzheng
Contributor II

Thanks Scott.

I will try to start a new thread on this.

0 件の賞賛
返信
1,263件の閲覧回数
lunminliang
NXP Employee
NXP Employee

Hi,

The allocation or mapping is based on the physical address, and sets-ways-lines, the P4080RM.pdf does not detail information for this part. The basic idea is mapping through physical address to sets-ways-lines. As it's not one to one mapping, the replacement algorithm is used:

Configurable pseudo-least recently used (PLRU), streaming PLRU with aging,streaming PLRU without aging, and first-in/first-out (FIFO) replacement policies with programmable allocation policy and update options.


Have a great day,
Lunmin

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

0 件の賞賛
返信