<?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: Question Regarding SRAM and Instruction Cache MPC5643L in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Question-Regarding-SRAM-and-Instruction-Cache-MPC5643L/m-p/261671#M285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pascal &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;...Thanks for the reply. I was busy with some more experiments. Below are the answers to your questions. Please have a look and let me know &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;First of all I need to know what is your core configuration, Normally Leopard runs as Lock-step mode so the both cores execute same instruction unless user change the LSM mode to DPM mode. I hope that you are using LSM. Please let me know what mode you are executing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am running the processor in the Decoupled Parallel Mode. One more thing I want to ask is that in decoupled parallel mode access to each of the RAM controller is performed via its respective XBAR so that means that if both the CPU try to access the same area then we should see some degradation? Right? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Check the system status register in SSCM module. It’s LSM bit show the mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; list-style-type: lower-alpha; color: #3d3d3d;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;In Leopard two 64Kb SRAM arrays are present to address 128Kb SRAM. Two Address decoders present and one is access to lower half of SRAM. So when both cores read a location in SRAM only one address decoder selected and it allow to read the SRAM. Then there is a Read multiplexer it duplicate the read and send to both cores. So there is no penalty or no performance degradation. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;In DPM when both the core try to access the same RAM controller we must see degradation. Assuming Fixed Priority or Round Robin Mode of the Salve port.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; list-style-type: lower-alpha; color: #3d3d3d;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Regarding the I-Cache if you runs on RAM you may not see the difference. I hope that you are running the system @120MHz? Normally the SRAM wait is define in MUDCR register. If the system frequency is &amp;lt;= 80MHz then 0 wait state else it should need to set as 1 wait state. If you are running the code in Flash and then you will see that I-Cache enable will give you better performance than disabled. As Flash need longer waits states so if the instructions are in cache the it speeded up. Also the performance depend on the code. In automotive there are many branch instruction in the code which change the flow etc and impact on performance.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;What type of application are you working on?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;I want to run the chip in DPM mode and measure bottlenecks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;To enable the I cache: example: user need to invalidate before using the cache&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For I Cache I have done this thing the one you mentioned. By the way for both cores same SPR exist right? I mean each core has its own instruction cache that means that if i want to enable the instruction cache of respective core I have to call run same piece of code on both right?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;# invalidate and enable the instruction cache&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;__icache_cfg:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_li r5, 0x2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; mtspr 1011,r5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_li r7, 0x4&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_li r8, 0x2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_lwi r11, 0xFFFFFFFB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;__icache_inv:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; mfspr r9, 1011&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; and.&amp;nbsp; r10, r7, r9&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_beq __icache_no_abort&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; and.&amp;nbsp; r10, r11, r9&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; mtspr 1011, r10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_b __icache_cfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;__icache_no_abort:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; and.&amp;nbsp; r10, r8, r9&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_bne __icache_inv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; mfspr r5, 1011&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_ori&amp;nbsp;&amp;nbsp; r5, r5, 0x0001&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;se_isync&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;msync&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; mtspr 1011, r5&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Feb 2014 19:16:19 GMT</pubDate>
    <dc:creator>tektronix</dc:creator>
    <dc:date>2014-02-21T19:16:19Z</dc:date>
    <item>
      <title>Question Regarding SRAM and Instruction Cache MPC5643L</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Question-Regarding-SRAM-and-Instruction-Cache-MPC5643L/m-p/261669#M283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;I have a question regarding the MPC5643L architecture. I saw&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;the reference manuals and the e200z4 data sheet too but&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;could not find this information. There is very little information&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;regarding the SRAM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;I enabled both the core of MPC5643L with both core&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;accessing the SRAM in their particular area. According to the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;architecture of the Chip the processor cores share the SRAM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;bus and must see a performance degradation. This is perhaps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;not the case, the time to read for example a certain number of&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;32-bit word is same as when only one core access the RAM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;instead of two. This tells that there is something in between&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;that is taking care of it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;(Note: I am not running the code from the Flash, I am running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;the code from SRAM directly. We are using TRK-USB-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;MPC5643L processor).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;My other question is regarding the Instruction Cache. I tried&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;enabling the instruction cache by writing 3 to spr register&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;1011. Then inorder to evaluate the performance of the cache i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;called few instructions&amp;nbsp; in the code but I don't&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;see any difference in the timings with/without instruction&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;cache enabled/Disabled)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;Note: (For this task also I directly download the code to the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;SRAM and start executing it from there.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;If I am missing anything please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 17:09:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Question-Regarding-SRAM-and-Instruction-Cache-MPC5643L/m-p/261669#M283</guid>
      <dc:creator>tektronix</dc:creator>
      <dc:date>2013-12-13T17:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding SRAM and Instruction Cache MPC5643L</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Question-Regarding-SRAM-and-Instruction-Cache-MPC5643L/m-p/261670#M284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all we're very sorry for the delay of this feedback.&lt;/P&gt;&lt;P&gt;It seems this thread was out of our scope.&lt;/P&gt;&lt;P&gt;We're working to improve the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The development team has been contacted and below the info I found - associated to the SR# 1-1250781390.&lt;/P&gt;&lt;P&gt;+++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;First of all I need to know what is your core configuration, Normally Leopard runs as Lock-step mode so the both cores execute same instruction unless user change the LSM mode to DPM mode. I hope that you are using LSM. Please let me know what mode you are executing? Check the system status register in SSCM module. It’s LSM bit show the mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;In Leopard two 64Kb SRAM arrays are present to address 128Kb SRAM. Two Address decoders present and one is access to lower half of SRAM. So when both cores read a location in SRAM only one address decoder selected and it allow to read the SRAM. Then there is a Read multiplexer it duplicate the read and send to both cores. So there is no penalty or no performance degradation.&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;Regarding the I-Cache if you runs on RAM you may not see the difference. I hope that you are running the system @120MHz? Normally the SRAM wait is define in MUDCR register. If the system frequency is &amp;lt;= 80MHz then 0 wait state else it should need to set as 1 wait state. If you are running the code in Flash and then you will see that I-Cache enable will give you better performance than disabled. As Flash need longer waits states so if the instructions are in cache the it speeded up. Also the performance depend on the code. In automotive there are many branch instruction in the code which change the flow etc and impact on performance.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;What type of application are you working on? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;To enable the I cache: example: user need to invalidate before using the cache&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;# invalidate and enable the instruction cache&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;__icache_cfg:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; e_li r5, 0x2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; mtspr 1011,r5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; e_li r7, 0x4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; e_li r8, 0x2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; e_lwi r11, 0xFFFFFFFB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;__icache_inv:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; mfspr r9, 1011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; and.&amp;nbsp; r10, r7, r9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; e_beq __icache_no_abort&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; and.&amp;nbsp; r10, r11, r9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; mtspr 1011, r10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; e_b __icache_cfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;__icache_no_abort:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; and.&amp;nbsp; r10, r8, r9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; e_bne __icache_inv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; mfspr r5, 1011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; e_ori&amp;nbsp;&amp;nbsp; r5, r5, 0x0001&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt; se_isync&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt; msync&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;nbsp; mtspr 1011, r5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;Flash wait states need to be set in PFCRx register.&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="424"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border-bottom: white 3pt solid; border-left: white 1pt solid; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #00608b; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;Frequency &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 3pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #00608b; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="105"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;Flash Wait State &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 3pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #00608b; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="75"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;B02_APC &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 3pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #00608b; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;B02_WWSC &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 3pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #00608b; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;B02_RWSC &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: white 1pt solid; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #cbd2da; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;lt;=120MHz&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #cbd2da; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="105"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;3 cycles &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #cbd2da; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="75"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;3 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #cbd2da; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;3 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #cbd2da; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;3 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: white 1pt solid; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #e7eaee; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;lt;=80 MHz &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #e7eaee; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="105"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;2 cycles &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #e7eaee; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="75"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;2 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #e7eaee; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;2 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #e7eaee; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;2 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: white 1pt solid; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #cbd2da; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;&amp;lt;=60 MHz &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #cbd2da; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="105"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;1 cycle &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #cbd2da; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="75"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;1 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #cbd2da; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;1 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: medium none; padding-bottom: 3.6pt; padding-left: 7.2pt; padding-right: 7.2pt; background: #cbd2da; border-top: medium none; border-right: white 1pt solid; padding-top: 3.6pt;" valign="top" width="81"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;1 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 11:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Question-Regarding-SRAM-and-Instruction-Cache-MPC5643L/m-p/261670#M284</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-01-28T11:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding SRAM and Instruction Cache MPC5643L</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Question-Regarding-SRAM-and-Instruction-Cache-MPC5643L/m-p/261671#M285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pascal &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;...Thanks for the reply. I was busy with some more experiments. Below are the answers to your questions. Please have a look and let me know &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;First of all I need to know what is your core configuration, Normally Leopard runs as Lock-step mode so the both cores execute same instruction unless user change the LSM mode to DPM mode. I hope that you are using LSM. Please let me know what mode you are executing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am running the processor in the Decoupled Parallel Mode. One more thing I want to ask is that in decoupled parallel mode access to each of the RAM controller is performed via its respective XBAR so that means that if both the CPU try to access the same area then we should see some degradation? Right? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Check the system status register in SSCM module. It’s LSM bit show the mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; list-style-type: lower-alpha; color: #3d3d3d;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;In Leopard two 64Kb SRAM arrays are present to address 128Kb SRAM. Two Address decoders present and one is access to lower half of SRAM. So when both cores read a location in SRAM only one address decoder selected and it allow to read the SRAM. Then there is a Read multiplexer it duplicate the read and send to both cores. So there is no penalty or no performance degradation. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;In DPM when both the core try to access the same RAM controller we must see degradation. Assuming Fixed Priority or Round Robin Mode of the Salve port.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; list-style-type: lower-alpha; color: #3d3d3d;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Regarding the I-Cache if you runs on RAM you may not see the difference. I hope that you are running the system @120MHz? Normally the SRAM wait is define in MUDCR register. If the system frequency is &amp;lt;= 80MHz then 0 wait state else it should need to set as 1 wait state. If you are running the code in Flash and then you will see that I-Cache enable will give you better performance than disabled. As Flash need longer waits states so if the instructions are in cache the it speeded up. Also the performance depend on the code. In automotive there are many branch instruction in the code which change the flow etc and impact on performance.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;What type of application are you working on?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;I want to run the chip in DPM mode and measure bottlenecks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;To enable the I cache: example: user need to invalidate before using the cache&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For I Cache I have done this thing the one you mentioned. By the way for both cores same SPR exist right? I mean each core has its own instruction cache that means that if i want to enable the instruction cache of respective core I have to call run same piece of code on both right?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;# invalidate and enable the instruction cache&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;__icache_cfg:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_li r5, 0x2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; mtspr 1011,r5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_li r7, 0x4&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_li r8, 0x2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_lwi r11, 0xFFFFFFFB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;__icache_inv:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; mfspr r9, 1011&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; and.&amp;nbsp; r10, r7, r9&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_beq __icache_no_abort&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; and.&amp;nbsp; r10, r11, r9&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; mtspr 1011, r10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_b __icache_cfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;__icache_no_abort:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; and.&amp;nbsp; r10, r8, r9&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_bne __icache_inv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; mfspr r5, 1011&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; e_ori&amp;nbsp;&amp;nbsp; r5, r5, 0x0001&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;se_isync&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;msync&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; mtspr 1011, r5&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 19:16:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Question-Regarding-SRAM-and-Instruction-Cache-MPC5643L/m-p/261671#M285</guid>
      <dc:creator>tektronix</dc:creator>
      <dc:date>2014-02-21T19:16:19Z</dc:date>
    </item>
  </channel>
</rss>

