<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Some questions about the cache in MPC5674. in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Some-questions-about-the-cache-in-MPC5674/m-p/712522#M9357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) It should be like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35870i81E5DF2CFC00ADFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) It'll be rather 2 bits of parity.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35907iDE2CF8CE16D6D34C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) No, it just points to the way. Index to cache set (line number) is determined by several bits of virtual address =&amp;gt; every address has only one possible set to be stored, but it can be in 4 possible ways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the picture in the middle of this article, it just shows cache to target memory mapping:&lt;/P&gt;&lt;P&gt;&lt;A href="http://alasir.com/articles/cache_principles/cache_line_tag_index.html"&gt;http://alasir.com/articles/cache_principles/cache_line_tag_index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2017 12:20:34 GMT</pubDate>
    <dc:creator>davidtosenovjan</dc:creator>
    <dc:date>2017-09-26T12:20:34Z</dc:date>
    <item>
      <title>Some questions about the cache in MPC5674.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Some-questions-about-the-cache-in-MPC5674/m-p/712521#M9356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; background-color: #ffffff; text-indent: 0pt; font-size: 13.3333px; margin: 0px 0pt;"&gt;I have three questions related to the cache of MPC5674.&lt;BR /&gt;The followings are the details of my questions.&lt;BR /&gt;1. 11.2 16 KB cache organization (P584 ~ P585 in e200z759CRM.pdf)&lt;BR /&gt;- What are the correct length of TAG, Lock bits, Dirty bits and Valid bit of cache line format ?&lt;BR /&gt;&amp;nbsp; : TAG - Physical Address Tag (22bit) + Parity (?)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lock bits(?)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dirty bits (?)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Valid bit (?)&lt;/P&gt;&lt;P style="color: #222222; background-color: #ffffff; text-indent: 0pt; font-size: 13.3333px; margin: 0px 0pt;"&gt;2. 11.3 Cache lookup (P585 ~ P587 in e200z759CRM.pdf)&lt;BR /&gt;- What are the length of the TAG REFERENCE and the OFFSET ?&lt;BR /&gt;&amp;nbsp; My understanding is that the length of TAG is 20. (32bit Address = 20 bits for tag + 7 bits for set(line) + 5 bits for word offset)&lt;BR /&gt;&amp;nbsp; But, in the document, the length of TAG is 22. It's duplicated A［20,21］ of physical address and virtual address. Is it correct?&lt;BR /&gt;&amp;nbsp; Almost of documents for cache describes that address size is equal to the sum of tag, index(set) and offset.&lt;/P&gt;&lt;P style="color: #222222; background-color: #ffffff; text-indent: 0pt; font-size: 13.3333px; margin: 0px 0pt;"&gt;3. 11.7.3 Cache line replacement (P597 in e200z759CRM.pdf)&lt;BR /&gt;- Please describe the pseduo-round-robin replacement in more detail.&lt;BR /&gt;&amp;nbsp; In the document, the pseduo-round-robin replacement is described as following.&lt;BR /&gt;&amp;nbsp; : There is a single replacement counter for each cache. The replacement algorithm acts as follows: &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; On a miss, if the replacement pointer is pointing to a way that is not enabled for replacement (the selected line or way is locked), &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; it is incremented until an available way is selected (if any). &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; After a cache line is successfully filled without error, the replacement pointer increments to point to the next cache way. &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If no way is available for the replacement, the access is treated as a single beat access and no cache linefill occurs.&lt;/P&gt;&lt;P style="color: #222222; background-color: #ffffff; text-indent: 0pt; font-size: 13.3333px; margin: 0px 0pt;"&gt;&amp;nbsp; ==&amp;gt; The replacement pointer is pointing to a way. Is the meaning that the replacement pointer is pointing to the first line of a way?&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, we should find a available line to be filled. But, I can't find the description to search an available line in the document.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you check my understanding is correct ?&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a. The replacement point can just point ways.(0 way, 1 way, 2way and 3way)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. The replacement point shout move to next way if the way is locked or all of lines in the way are locked.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. To find an available line, search sequentially from the first line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 05:28:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Some-questions-about-the-cache-in-MPC5674/m-p/712521#M9356</guid>
      <dc:creator>lukekim</dc:creator>
      <dc:date>2017-09-25T05:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Some questions about the cache in MPC5674.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Some-questions-about-the-cache-in-MPC5674/m-p/712522#M9357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) It should be like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35870i81E5DF2CFC00ADFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) It'll be rather 2 bits of parity.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35907iDE2CF8CE16D6D34C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) No, it just points to the way. Index to cache set (line number) is determined by several bits of virtual address =&amp;gt; every address has only one possible set to be stored, but it can be in 4 possible ways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the picture in the middle of this article, it just shows cache to target memory mapping:&lt;/P&gt;&lt;P&gt;&lt;A href="http://alasir.com/articles/cache_principles/cache_line_tag_index.html"&gt;http://alasir.com/articles/cache_principles/cache_line_tag_index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 12:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Some-questions-about-the-cache-in-MPC5674/m-p/712522#M9357</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2017-09-26T12:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Some questions about the cache in MPC5674.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Some-questions-about-the-cache-in-MPC5674/m-p/712523#M9358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your rapid response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though your response is very helpful to me, I can't correctly&lt;/P&gt;&lt;P&gt;understand yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The followings are additional questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) It should be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/servlet/JiveServlet/downloadImage/" target="test_blank"&gt;https://community.nxp.com/servlet/JiveServlet/downloadImage/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2-946843-194949/pastedImage_1.png&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt; It's OK if valid bit and lock bit are 1 bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I'm still confused because of the below article that is in e200z760RM&lt;/P&gt;&lt;P&gt;document of NXP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;============================================================&lt;/P&gt;&lt;P&gt;=================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9.8.5 EDC Checkbit/Syndrome Coding Scheme Generation—Icache ( at&lt;/P&gt;&lt;P&gt;e200z760RM.pdf)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each tag entry utilizes six check bits to cover the tag + valid bit, and&lt;/P&gt;&lt;P&gt;each double word of data in the data arrays utilizes eight check bits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lock bits utilize bit-level redundancy, thus are independently&lt;/P&gt;&lt;P&gt;protected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;============================================================&lt;/P&gt;&lt;P&gt;=================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I find the six check bits to cover the tag + valid bit ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there no redundant bits for lock?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If lock bit is just 1, how to support EDC/parity check for lock bit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) It'll be rather 2 bits of parity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/servlet/JiveServlet/downloadImage/" target="test_blank"&gt;https://community.nxp.com/servlet/JiveServlet/downloadImage/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2-946843-194950/pastedImage_2.png&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/servlet/JiveServlet/showImage/2-946843-194950/pastedImage_2.png&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt; I think it's related to the answer of the first question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) No, it just points to the way. Index to cache set (line number) is&lt;/P&gt;&lt;P&gt;determined by several bits of virtual address =&amp;gt; every address has only one&lt;/P&gt;&lt;P&gt;possible set to be stored, but it can be in 4 possible ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the picture in the middle of this article, it just shows cache to&lt;/P&gt;&lt;P&gt;target memory mapping:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://alasir.com/articles/cache_principles/cache_line_tag_index.html" target="test_blank"&gt;http://alasir.com/articles/cache_principles/cache_line_tag_index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt; A set has 4 ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    If all of ways in a set are locked, how to find a way to fill?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Can the replacement pointer point to a way of the next set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-09-26 21:20 GMT+09:00 davidtosenovjan &amp;lt;admin@community.nxp.com&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;NXP Community&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt;&lt;/P&gt;&lt;P&gt;Re: Some questions about the cache in MPC5674.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from David Tosenovjan&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/people/davidtosenovjan?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;MPC5xxx&lt;/STRONG&gt; - View the full discussion&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/message/946843?commentID=946843&amp;amp;et=watches.email.thread#comment-946843&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 00:18:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Some-questions-about-the-cache-in-MPC5674/m-p/712523#M9358</guid>
      <dc:creator>lukekim</dc:creator>
      <dc:date>2017-09-28T00:18:54Z</dc:date>
    </item>
  </channel>
</rss>

