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)

56 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. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    Microsoft azure training in Bangalore
    Power bi training in Chennai

    ReplyDelete
  16. 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
  17. 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
  18. 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
  19. And indeed, I’m just always astounded concerning the remarkable things served by you. Some four facts on this page are undeniably the most effective I’ve had.
    Data science Course Training in Chennai | No.1 Data Science Training in Chennai
    RPA Course Training in Chennai | No.1 RPA Training in Chennai

    ReplyDelete
  20. 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
  21. For Hadoop Training in Bangalore Visit : HadoopTraining in Bangalore

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

    ReplyDelete
  23. 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
  24. 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
  25. "Very good article with very useful information. Visit our websitedata science training in Hyderabad
    "

    ReplyDelete
  26. 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
  27. Thanks, for such a great post. I have tried and found it really helpful. For more details to visit ib tutors online

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

    ReplyDelete
  29. Pleasant data, important and incredible structure, as offer great stuff with smart thoughts and ideas, loads of extraordinary data and motivation, the two of which I need, because of offer such an accommodating data here. business analytics course in surat

    ReplyDelete
  30. 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
  31. 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
  32. 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
  33. 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
  34. I'm truly getting a charge out of examining your stunningly made articles. Obviously you burn-through an immense heap of energy and time on your blog. I have bookmarked it and I am hoping to investigate new articles. Keep on doing astounding.data science course in bhopal

    ReplyDelete
  35. I at long last discovered incredible post here.I will get back here. I just added your blog to my bookmark locales. thanks.Quality presents is the urgent on welcome the guests to visit the website page, that is the thing that this site page is giving.360digitmg-data science course business analytics course in mysore

    ReplyDelete

  36. 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

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...