Hello David,
Thanks for your rapid response.
Even though your response is very helpful to me, I can't correctly
understand yet.
The followings are additional questions.
1) It should be like this:
https://community.nxp.com/servlet/JiveServlet/downloadImage/
2-946843-194949/pastedImage_1.png
==> It's OK if valid bit and lock bit are 1 bit.
But, I'm still confused because of the below article that is in e200z760RM
document of NXP.
============================================================
=================================================================
9.8.5 EDC Checkbit/Syndrome Coding Scheme Generation—Icache ( at
e200z760RM.pdf)
...
Each tag entry utilizes six check bits to cover the tag + valid bit, and
each double word of data in the data arrays utilizes eight check bits.
...
The lock bits utilize bit-level redundancy, thus are independently
protected.
...
============================================================
=================================================================
Where can I find the six check bits to cover the tag + valid bit ?
Are there no redundant bits for lock?
If lock bit is just 1, how to support EDC/parity check for lock bit?
2) It'll be rather 2 bits of parity.
https://community.nxp.com/servlet/JiveServlet/downloadImage/
2-946843-194950/pastedImage_2.png
<https://community.nxp.com/servlet/JiveServlet/showImage/2-946843-194950/pastedImage_2.png>
==> I think it's related to the answer of the first question.
3) No, it just points to the way. Index to cache set (line number) is
determined by several bits of virtual address => every address has only one
possible set to be stored, but it can be in 4 possible ways.
See the picture in the middle of this article, it just shows cache to
target memory mapping:
http://alasir.com/articles/cache_principles/cache_line_tag_index.html
==> A set has 4 ways.
If all of ways in a set are locked, how to find a way to fill?
Can the replacement pointer point to a way of the next set?
Thanks.
2017-09-26 21:20 GMT+09:00 davidtosenovjan <admin@community.nxp.com>:
NXP Community
<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>
Re: Some questions about the cache in MPC5674.
reply from David Tosenovjan
<https://community.nxp.com/people/davidtosenovjan?et=watches.email.thread>
in MPC5xxx - View the full discussion
<https://community.nxp.com/message/946843?commentID=946843&et=watches.email.thread#comment-946843>