<?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: RAM banks in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-banks/m-p/584319#M21019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by charchar on Mon Jan 30 13:06:37 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another question is about simultaneous access--- in section 3.5 of the user manual:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"When two or more bus masters try to access the same slave, a round robin arbitration scheme is used; each&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;master takes turns accessing the slave in circular order."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sounds good--- if the M4 and M0 want to access the same RAM bank at the same time, the 1st requester will get access 1st. But the RAM is 0 wait-state and the M4 and M0 are on the same clock, so simultaneous access is the only case that needs arbitration.&amp;nbsp; Is there a fixed priority that gets applied?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:10:23 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:10:23Z</dc:date>
    <item>
      <title>RAM banks</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-banks/m-p/584317#M21017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by charchar on Sat Jan 28 09:09:52 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Figure 5 in the 4300 User Manual shows the AHB matrix connections.&amp;nbsp; I have some questions--- Is there anything special about "AHB SRAM" vs "LOCAL SRAM"--- for example, do they have the same access speeds?&amp;nbsp; I see that they are attached to the M4 buses differently, namely the AHB SRAM is attached to the system bus but not the I and D buses.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But more specifically, I'm wondering if the following 2 scenarios are the same from a performance perspective:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Data in 72Kb local SRAM bank&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Code in 128K local SRAM bank&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Data in 16Kb AHB SRAM bank &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Code in 128K local SRAM bank&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm assuming that in the 2nd scenario, the data in the 16K AHB SRAM bank can be accessed at the same rate over the system bus when compared to the 1st scenario, where the data is in the 72Kb local SRAM bank, which is connected to the D bus.&amp;nbsp; (ie, I'm a little unclear about the system bus vs the D bus.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tnanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:10:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-banks/m-p/584317#M21017</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: RAM banks</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-banks/m-p/584318#M21018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Sun Jan 29 13:34:10 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;From reading the book "The definitive Guide to the ARM Cortex-m3" I believe in both scenarios the data/code access is simultaneous.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The data access can be given higher priority over code access for better performance when trying to access the same memory region. I assume that NXP made separate local SRAM's (memory regions) for increased performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know anything about bus access speed though so one scenario may still be faster even though data/code access is simultaneous in both.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:10:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-banks/m-p/584318#M21018</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: RAM banks</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-banks/m-p/584319#M21019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by charchar on Mon Jan 30 13:06:37 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another question is about simultaneous access--- in section 3.5 of the user manual:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"When two or more bus masters try to access the same slave, a round robin arbitration scheme is used; each&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;master takes turns accessing the slave in circular order."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sounds good--- if the M4 and M0 want to access the same RAM bank at the same time, the 1st requester will get access 1st. But the RAM is 0 wait-state and the M4 and M0 are on the same clock, so simultaneous access is the only case that needs arbitration.&amp;nbsp; Is there a fixed priority that gets applied?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:10:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-banks/m-p/584319#M21019</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:10:23Z</dc:date>
    </item>
  </channel>
</rss>

