{"id":116,"date":"2024-06-25T12:40:11","date_gmt":"2024-06-25T12:40:11","guid":{"rendered":"https:\/\/study.madeeasy.in\/?p=116"},"modified":"2025-09-08T15:46:34","modified_gmt":"2025-09-08T10:16:34","slug":"cache-memory-design","status":"publish","type":"post","link":"https:\/\/www.madeeasy.in\/study\/cs-it\/cache-memory-design","title":{"rendered":"Cache Memory Design"},"content":{"rendered":"\r\n<h2 style=\"text-align: justify;\">Cache Memory<\/h2>\r\n<p style=\"text-align: justify;\">Cache is a random access memory used by the central processing unit (CPU) to reduce the average time to access memory. Cache memory stores instructions that are repeatedly required to run programs.<\/p>\r\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-74 aligncenter\" src=\"http:\/\/study.madeeasy.in\/wp-content\/uploads\/2024\/06\/cache-memory.png\" alt=\"Cache Memory\" width=\"427\" height=\"87\" \/><\/p>\r\n<h2 style=\"text-align: justify;\">Direct Mapped Cache (1-way Set Associative Cache)<\/h2>\r\n<p style=\"text-align: justify;\">The simplest way to determine cache locations in which to store memory blocks. In direct mapping technique, the mapping is expressed as<\/p>\r\n<p><br \/><em>i <\/em>= <em>j <\/em>% <em>m <\/em><br \/>where,\u00a0 <em> <br \/>i <\/em>= Cache line number <br \/><em>j <\/em>= Main memory block number<br \/><em> m <\/em>= Number of lines in the cache <br \/><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-77\" src=\"http:\/\/study.madeeasy.in\/wp-content\/uploads\/2024\/06\/direct-mapped.png\" alt=\"Direct Mapped Cache\" width=\"384\" height=\"49\" \/><\/p>\r\n\r\n\r\n\r\n<p style=\"text-align: center;\"><a class=\"btn btn-danger\" role=\"button\" href=\"https:\/\/study.madeeasy.in\/cs-it\/what-is-primary-memory-and-its-types\/\" target=\"_blank\" rel=\"noopener\">&lt;&lt; Previous<\/a> | <a class=\"btn btn-success\" role=\"button\" href=\"https:\/\/study.madeeasy.in\/cs-it\/floating-point-representation\/\" target=\"_blank\" rel=\"noopener\"> Next &gt;&gt;<\/a> <br \/><strong> Must Read: <\/strong> <a href=\"https:\/\/study.madeeasy.in\/subjects\/what-is-computer-organization-and-architecture\/\" target=\"_blank\" rel=\"noopener\"><strong>What is Computer Organization and Architecture?<\/strong><\/a><\/p>\r\n<p>&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Cache Memory Cache is a random access memory used by the central processing unit (CPU) to reduce the average time<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[47,48,49],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-cs-it","category-computer-organization-and-architecture","tag-1-way-set-associative-cache","tag-cache-memory","tag-direct-mapped-cache"],"_links":{"self":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":0,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}