Wednesday, August 08, 2012

Memory Hirerarchy in Embedded Systems

Memory Hierarchy


The cache memory is defined as the first level of memory after the Registers. In the memory hierarchy, it is placed right below the processor registers as shown in the figure above.

Speed Vs Distance Vs Size of the Memory
 The above diagram shows the position of the Cache memory based on the Speed, Distance from the Processor and the Size.

How the Processor check for the data?


The cache is generally made up of SRAM because of the high speed of operation of SRAMs and the faster a cache operates, faster data can be made available to the processor for processing.

Components in the Memory Hierarchy


The cache stores in it the data of memory locations that the processor uses repeatably or is expected to use very soon in future. When the processor wants to access data of a certain memory location, the data might be present in cache or not, this is defined by the terms cache hit and cache miss respectively.

Cache Miss

Cache Miss


When the processor does not find, the memory location which it wants to access, stored in the cache it has to fetch the data from the main memory. As the data is missing in the cache this is termed as a cache miss.

Cache Hit

Cache Hit
If the memory location is present in the cache, processor can fetch the data from cache itself and need not go to the main memory to fetch it. This is termed as a cache hit.

Temporal Locality

Temporal Locality
A memory location accessed once will be accessed again soon and hence need to be stored close to the processor. This is an assumption and if the same data is required in the near future, we can save time by doing this.

Spatial Locality

Spatial Locality


The memory locations around the memory that the processor accesses might also be accessed by the processor soon and hence need to stored close the processor in the cache.This is also based on an assumption and we believe that the data next to the current location will be required for the next computation.


I think this below 3 Dimensional Diagram will make the Memory Hierarchy much more clear to the readers.

How the CPU Access the Memory





  1. The address of the needed data is formed in the processor execution or instruction-fetch unit. Most addresses are then mapped from virtual to real through the Translation Look aside Buffer (TLB). Certain ranges of addresses are not mapped, and bypass the TLB.
  2. Most addresses are presented to the primary cache, a cache in the processor chip. If a copy of the data with that address is found, it is returned immediately. Certain address ranges are never cached; these addresses pass directly to the bus.
  3. When the primary cache does not contain the data, the address is presented to the secondary cache. If it contains a copy of the data, the data is returned immediately. The size and the architecture of the secondary cache differ from one CPU model to another.
  4. The address is placed on the system bus. The memory module that recognizes the address places the data on the bus.

(Courtesy: www.mbeded.blogspot.in, www.techpubs.sgi.com)

60 comments:


  1. My cousin recommended this blog and she was totally right keep up the fantastic work!














    Embedded System Projects

    ReplyDelete
  2. Thanks for another great post. The place else may anyone get that type of information in such a perfect way of writing? I’ve a presentation next week, and I’m at the look for such information. embedded training in Chennai | embedded systems training in Chennai

    ReplyDelete
  3. This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharng this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

    ReplyDelete
  4. Thanks for providing such a great information.I ‘d mention that most of us visitors are endowed to exist in a fabulous place with very many wonderful individuals with very helpful things.
    selenium training in bangalore

    ReplyDelete
  5. It is really amazing...thanks for sharing....provide more useful information...

    Embedded training in chennai | Embedded training centre in chennai

    ReplyDelete
  6. Read all the information that i've given in above article. It'll give u the whole idea about it.
    Click here:
    Angularjs training in chennai

    Click here:
    angularjs training in bangalore

    Click here:
    angularjs training in online

    Click here:
    angularjs training in Annanagar

    ReplyDelete
  7. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.
    Blueprism training in Chennai

    Blueprism training in Bangalore

    Blueprism training in Pune

    Blueprism online training

    ReplyDelete
  8. Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.
    fire and safety course in chennai

    ReplyDelete
  9. Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition.
    best safety training in chennai

    ReplyDelete
  10. Wow, Nice blog. Thank you so much for the efforts of this blog. Visit for
    Best Offshore VPS

    ReplyDelete
  11. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.

    Tableau Training in Chennai
    Tableau Training

    ReplyDelete
  12. Thanks for sharing this valuable information.Its more useful to us.its very interesting to know the blog
    with clear vision.

    Article submission sites
    Guest posting sites

    ReplyDelete
  13. Some us know all relating to the compelling medium you present powerful steps on this blog and therefore strongly encourage contribution from other ones on this subject while our own child is truly discovering a great deal. Have fun with the remaining portion of the year.
    Data Science training in Chennai
    Data science online training

    ReplyDelete
  14. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.
    Data Science course in rajaji nagar
    Data Science with Python course in chenni
    Data Science course in electronic city
    Data Science course in USA
    Data science course in pune | Data Science Training institute in Pune

    ReplyDelete
  15. Incredible Article… I want to peruse your articles on the grounds that you're composing style is too great, its is extremely useful for every one of us and I never get exhausted while perusing your article in light of the fact that
    Devops Training in Chennai | Devops Training Institute in Chennai

    ReplyDelete
  16. I would like to thank you for your nicely written post, its informative and your writing style encouraged me to read it till end. Thanks

    angularjs online training

    apache spark online training

    informatica mdm online training

    devops online training

    aws online training

    ReplyDelete
  17. This blog is wonderful i like studying your posts. Keep up the great work! You understand, lots of persons are hunting around for this info, you could help them greatly.
    R Training Institute in Chennai | R Programming Training in Chennai

    ReplyDelete
  18. Amazing article. Your blog helped me to improve myself in many ways thanks for sharing this kind of wonderful informative blogs in live.
    IT Institute in KK nagar | angularjs training in chennai | dot net training in chennai | Web Designing Training in Chennai

    ReplyDelete
  19. For Hadoop Training in Bangalore Visit : HadoopTraining in Bangalore

    ReplyDelete
  20. Many of the blogs i have seen not provided a good content like you Hacking course online

    ReplyDelete
  21. I am happy for sharing on this blog its awesome blog I really impressed. thanks for sharing. Great efforts.

    Start your journey with In Software Training in Bangalore and get hands-on Experience with 100% Placement assistance from experts Trainers @eTechno Soft Solutions Located in BTM Layout Bangalore.

    ReplyDelete
  22. It's really nice and informative, it has all the information and it also has a big impact on new technologies. Thanks for sharing it.

    360DigiTMG Business Analytics Course in Bangalore

    ReplyDelete
  23. "Very good article with very useful information. Visit our websitedata science training in Hyderabad
    "

    ReplyDelete
  24. This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck.
    DevOps Training in Chennai

    DevOps Course in Chennai


    ReplyDelete
  25. Thanks, for such a great post. I have tried and found it really helpful. For more details to visit ib tutors online

    ReplyDelete
  26. The article posted was very informative and useful. You people are doing a great job. Keep going.
    data science training

    ReplyDelete
  27. Infycle Technologies, the best software training institute in Chennai offers the best AWS training in Chennai for tech professionals. Apart from the AWS Course, other courses such as Oracle, Java, Hadoop, Digital Marketing, Selenium, Big Data Android, and iOS Development, DevOps and Azure will also be trained with 100% hands-on training. Dial 7502633633 to get more info and a free demo

    ReplyDelete
  28. We have analyzed Mmjff and other stock information for you so that you can stay up-to-date on the latest Mmjff market trends.

    ReplyDelete
  29. Highly informative article. This site has lots of information and it is useful for us. Thanks for sharing.I want to share about Best MicroNutrients Company in India

    ReplyDelete
  30. best sat coaching in madhapur.
    SAT Training Institutes In Hyderabad

    SAT i.e. ‘Scholastic Aptitude Test’ is a general standardized test which is required for getting admission in undergraduate school of the foreign colleges or universities. It’s mandatory to clear the SAT examination for entering the undergraduate program of foreign universities in the countries such as USA, Canada, UK, Australia and so on. Many schools offer SAT scholarship to the students along with admission to the undergraduate courses based on the students SAT score. The SAT exam is conducted by the respective College Board. The SAT exam tests your mathematics, critical reading and writing skills in order to judge your preparedness for foreign undergraduate level academic studies and work.

    ReplyDelete

  31. The new wave of innovation that is changing the way people do business is called data science. Gain expertise in organizing, sorting, and transforming data to uncover hidden patterns Learn the essential skills of probability, statistics, and machine learning along with the techniques to break your data into a simpler format to derive meaningful information. Enroll in Data science in Bangalore and give yourself a chance to power your career to greater heights.
    Data Science Training in Jodhpur

    ReplyDelete
  32. Thanks for the clear explanation of memory hierarchy in embedded systems! Your breakdown of different memory types and their roles is really helpful for understanding performance optimization. I appreciate the depth of information you provided—great job

    Data Science Courses in Brisbane

    ReplyDelete
  33. This was a fantastic read on memory hirearchy in embedded systems! I’m currently working on it and your explanation of this systems will definitely come in handy. Thanks for providing such practical insights.
    https://iimskills.com/data-science-courses-in-westminster/


    ReplyDelete
  34. Thanks for explaining the memory hierarchy in embedded systems! Understanding how different levels of memory interact is crucial for optimizing performance and efficiency. Your insights on the trade-offs between speed and cost at each level really clarify why careful memory management is essential in embedded design. Great resource for developers!

    ReplyDelete
  35. Great overview of memory hierarchy in embedded systems! Your explanation of how various memory types work together to optimize performance is really helpful. It’s fascinating to see how designers must balance speed, cost, and power consumption. This knowledge is vital for anyone working in embedded development!

    ReplyDelete
  36. Thanks for shedding light on the memory hierarchy in embedded systems! It's crucial for developers to understand how different memory types impact performance and efficiency. Your breakdown of the various levels and their roles offers valuable insights that can help optimize system design. Excellent resource for anyone in the field!
    Data science Courses in hamburg

    ReplyDelete

  37. This overview of the memory hierarchy in embedded systems provides a clear understanding of how cache memory functions and its critical role in optimizing processor performance. By illustrating concepts such as cache hits and misses, as well as temporal and spatial locality, it emphasizes the importance of efficient data retrieval strategies.

    The distinction between SRAM for cache memory and other types of memory highlights why speed is crucial in these scenarios. Furthermore, the explanation of how the CPU accesses memory, including the role of the Translation Lookaside Buffer (TLB) and the interaction between primary and secondary caches, effectively conveys the complexity of memory management in modern processors.

    Incorporating a 3D diagram to illustrate the memory hierarchy would indeed enhance comprehension for readers, making the relationships between different memory types and their impact on performance even clearer. Overall, this content serves as a valuable resource for understanding the intricacies of memory systems in embedded applications. Data science courses in Gurgaon

    ReplyDelete

  38. This is a well-explained article on memory hierarchy in embedded systems! The breakdown of cache memory, cache hits and misses, and concepts like temporal and spatial locality clearly shows how these principles optimize data access for the processor. The distinction between primary and secondary cache levels and the use of SRAM in cache also highlights why speed and proximity to the processor are critical for system performance. Data science courses in Visakhapatnam

    ReplyDelete
  39. "Your blog is an invaluable resource for Spring developers. Thank you!"

    ReplyDelete
  40. This blog offers a clear and insightful explanation of the memory hierarchy in embedded systems, especially on how cache levels impact processing speed. The explanations of concepts like cache hit, cache miss, and locality principles make it easy to understand the structure and importance of memory management in system performance. A great read for anyone wanting to grasp how memory hierarchy works with the CPU!
    Data science courses in Gujarat

    ReplyDelete

Thank you for your valuable suggestion. If you feel this post useful, please share our Blog with others!!! Comments just for Backlinking your Website or Blog will be Deleted...