{"id":114,"date":"2022-10-03T20:48:02","date_gmt":"2022-10-03T20:48:02","guid":{"rendered":"http:\/\/learnlearn.uk\/ibcs\/?page_id=114"},"modified":"2025-04-08T11:29:22","modified_gmt":"2025-04-08T11:29:22","slug":"ram-rom","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/","title":{"rendered":"RAM &#038; ROM"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">RAM<\/h2>\n<div class=\"tabcontent\">\n\n<div class=\"arconix-column-two-thirds\">\n<h3>Random Access Memory (RAM)<\/h3>\n<p>RAM is a type of<strong> very fast memory<\/strong> that is used to<strong> temporarily hold data about currently running programs<\/strong>. When you load any file from the hard drive there is a lag between the request and the data being sent, this would cause massive slow down of the CPU if data was constantly being requested from the hard drive. Instead a single request is sent to the hard drive when the program loads and the whole program is loaded in to RAM. The RAM is electronic memory and all the data is stored in flop flop circuits using electrical currents and transistors. This means that there is <strong>very little latency<\/strong> and there the computer loads the program much faster than if it wasn&#8217;t used. However because RAM data is stored electronically, RAM is <strong>volatile<\/strong> &#8211; once power is lost all data is lost as well.<\/p>\n<\/div>\n<div class=\"arconix-column-one-third\">\n<p><a href=\"https:\/\/learnlearn.uk\/gcsecs\/wp-content\/uploads\/sites\/8\/2017\/01\/ram-ocr-memory.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-351\" src=\"https:\/\/learnlearn.uk\/gcsecs\/wp-content\/uploads\/sites\/8\/2017\/01\/ram-ocr-memory-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<\/div>\n\n<\/div><h2 class=\"tabtitle\">ROM<\/h2>\n<div class=\"tabcontent\">\n\n<div class=\"arconix-column-two-thirds\">\n<h3>Read Only Memory ( ROM)<\/h3>\n<p>Read only memory is mainly used in a PC to store the tiny mini operating system called <strong>the BIOS<\/strong>. The BIOS data is flashed to the ROM chip when the motherboard is made and does not change for it&#8217;s entire lifetime (hence the term Read Only). If you want to update the BIOS, you need to <strong>flash the ROM chip<\/strong>.<\/p>\n<p>The BIOS is responsible for doing a system hardware check before the system starts to make sure all the connected devices are functioning. Once it has completed the check it boots up the operating system.<\/p>\n<\/div>\n<div class=\"arconix-column-one-third\">\n<p><a href=\"https:\/\/learnlearn.uk\/gcsecs\/wp-content\/uploads\/sites\/8\/2018\/01\/bios-system.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-648\" src=\"https:\/\/learnlearn.uk\/gcsecs\/wp-content\/uploads\/sites\/8\/2018\/01\/bios-system-300x188.png\" alt=\"\" width=\"300\" height=\"188\" \/><\/a><\/p>\n<\/div>\n\n<\/div><h2 class=\"tabtitle\">Cache Memory<\/h2>\n<div class=\"tabcontent\">\n\n<h3 class=\"\" data-start=\"142\" data-end=\"158\">Cache Memory<\/h3>\n<p class=\"\" data-start=\"160\" data-end=\"571\">Cache memory is a small, high-speed type of memory located directly on or very close to the <strong data-start=\"252\" data-end=\"259\">CPU<\/strong>. It stores <strong data-start=\"271\" data-end=\"316\">frequently accessed data and instructions<\/strong>, allowing the processor to retrieve this information more quickly than if it had to access the main memory (RAM). Cache acts as a buffer between the CPU and RAM, helping to reduce the time it takes to access data and improving overall system performance.<\/p>\n<p class=\"\" data-start=\"573\" data-end=\"858\">Cache memory is typically built using <strong data-start=\"611\" data-end=\"649\">SRAM (Static Random-Access Memory)<\/strong>, which is faster but more expensive and power-hungry than DRAM (used in regular RAM). SRAM retains data as long as power is supplied and does <strong data-start=\"792\" data-end=\"799\">not<\/strong> need to be refreshed like DRAM, making it ideal for cache.<\/p>\n<p data-start=\"865\" data-end=\"881\">\n<\/div><h2 class=\"tabtitle\">SRAM vs DRAM<\/h2>\n<div class=\"tabcontent\">\n<\/p>\n<h3 class=\"\" data-start=\"865\" data-end=\"881\">SRAM vs DRAM<\/h3>\n<p class=\"\" data-start=\"883\" data-end=\"905\"><strong data-start=\"883\" data-end=\"904\">SRAM (Static RAM)<\/strong>:<\/p>\n<ul data-start=\"906\" data-end=\"1208\">\n<li class=\"\" data-start=\"906\" data-end=\"953\">\n<p class=\"\" data-start=\"908\" data-end=\"953\">Used in <strong data-start=\"916\" data-end=\"929\">CPU cache<\/strong> (L1, L2, sometimes L3).<\/p>\n<\/li>\n<li class=\"\" data-start=\"954\" data-end=\"1019\">\n<p class=\"\" data-start=\"956\" data-end=\"1019\">Made of <strong data-start=\"964\" data-end=\"986\">flip-flop circuits<\/strong> (usually 6 transistors per bit).<\/p>\n<\/li>\n<li class=\"\" data-start=\"1020\" data-end=\"1055\">\n<p class=\"\" data-start=\"1022\" data-end=\"1055\"><strong data-start=\"1022\" data-end=\"1032\">Faster<\/strong> and more <strong data-start=\"1042\" data-end=\"1054\">reliable<\/strong>.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1056\" data-end=\"1127\">\n<p class=\"\" data-start=\"1058\" data-end=\"1127\"><strong data-start=\"1058\" data-end=\"1086\">Does not need refreshing<\/strong> \u2013 it holds data as long as it&#8217;s powered.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1128\" data-end=\"1181\">\n<p class=\"\" data-start=\"1130\" data-end=\"1181\">More <strong data-start=\"1135\" data-end=\"1148\">expensive<\/strong> and takes up more space per bit.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1182\" data-end=\"1208\">\n<p class=\"\" data-start=\"1184\" data-end=\"1208\">Consumes more <strong data-start=\"1198\" data-end=\"1207\">power<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<p class=\"\" data-start=\"1210\" data-end=\"1233\"><strong data-start=\"1210\" data-end=\"1232\">DRAM (Dynamic RAM)<\/strong>:<\/p>\n<ul data-start=\"1234\" data-end=\"1551\">\n<li class=\"\" data-start=\"1234\" data-end=\"1288\">\n<p class=\"\" data-start=\"1236\" data-end=\"1288\">Used in <strong data-start=\"1244\" data-end=\"1266\">main system memory<\/strong> (regular RAM sticks).<\/p>\n<\/li>\n<li class=\"\" data-start=\"1289\" data-end=\"1351\">\n<p class=\"\" data-start=\"1291\" data-end=\"1351\">Stores each bit of data in a <strong data-start=\"1320\" data-end=\"1350\">capacitor and a transistor<\/strong>.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1352\" data-end=\"1421\">\n<p class=\"\" data-start=\"1354\" data-end=\"1421\">Must be <strong data-start=\"1362\" data-end=\"1405\">refreshed thousands of times per second<\/strong> to retain data.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1422\" data-end=\"1482\">\n<p class=\"\" data-start=\"1424\" data-end=\"1482\"><strong data-start=\"1424\" data-end=\"1434\">Slower<\/strong> than SRAM but <strong data-start=\"1449\" data-end=\"1460\">cheaper<\/strong> and <strong data-start=\"1465\" data-end=\"1481\">more compact<\/strong>.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1483\" data-end=\"1551\">\n<p class=\"\" data-start=\"1485\" data-end=\"1551\">Allows for higher <strong data-start=\"1503\" data-end=\"1521\">memory density<\/strong> (more data in smaller space).<\/p>\n<\/li>\n<\/ul>\n<hr class=\"\" data-start=\"1553\" data-end=\"1556\" \/>\n<h3 class=\"\" data-start=\"1558\" data-end=\"1584\">How They Work Together<\/h3>\n<ol data-start=\"1586\" data-end=\"1820\">\n<li class=\"\" data-start=\"1586\" data-end=\"1636\">\n<p class=\"\" data-start=\"1589\" data-end=\"1636\"><strong data-start=\"1589\" data-end=\"1626\">CPU first checks the cache (SRAM)<\/strong> for data.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1637\" data-end=\"1731\">\n<p class=\"\" data-start=\"1640\" data-end=\"1731\">If data isn&#8217;t in the cache (a <strong data-start=\"1670\" data-end=\"1684\">cache miss<\/strong>), it retrieves it from <strong data-start=\"1708\" data-end=\"1730\">main memory (DRAM)<\/strong>.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1732\" data-end=\"1820\">\n<p class=\"\" data-start=\"1735\" data-end=\"1820\">Once retrieved, the data is usually stored in the cache for quicker access next time.<\/p>\n<\/li>\n<\/ol>\n<p class=\"\" data-start=\"1822\" data-end=\"2019\">This tiered memory hierarchy helps bridge the speed gap between the ultra-fast CPU and slower main memory, with <strong data-start=\"1934\" data-end=\"1966\">SRAM as the high-speed layer<\/strong> and <strong data-start=\"1971\" data-end=\"2018\">DRAM as the larger but slower backing layer<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Virtual Memory<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Virtual Memory<\/h3>\n<p>Often when you open up multiple programs at the same time, or if you are completing memory intensive tasks ( such as modern 3D gaming) your computer will run out of available RAM. This would potentially cause the computer to crash as it would have to dump the contents of the RAM. Instead it creates an area of pretend RAM on your main hard disk, storing excess RAM instead of a page file. This stops the PC from crashing, but is much slower than RAM, so your PC will often slow down or become unresponsive when this is necessary.<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Flash Memory<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Flash Memory<\/h3>\n<p>Flash memory is a form of ROM that is commonly used in embedded devices such as washing machines or smart tvs.<\/p>\n<p>Flash memory is:<\/p>\n<ul>\n<li>Very reliable<\/li>\n<li>Relatively Secure( because it requires the memory to be flashed, files can&#8217;t just be copied \/ edited in place.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Cache Memory Cache memory is a small, high-speed type of memory located directly on or very close to the CPU. It stores frequently accessed data and instructions, allowing the processor to retrieve this information more quickly than if it had to access the main memory (RAM). Cache acts as a buffer between the CPU and&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">RAM &#038; ROM<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"off","neve_meta_content_width":70,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RAM &#038; ROM - IB Computer Science<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RAM &#038; ROM - IB Computer Science\" \/>\n<meta property=\"og:description\" content=\"Cache Memory Cache memory is a small, high-speed type of memory located directly on or very close to the CPU. It stores frequently accessed data and instructions, allowing the processor to retrieve this information more quickly than if it had to access the main memory (RAM). Cache acts as a buffer between the CPU and&hellip;&nbsp;Read More &raquo;RAM &#038; ROM\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/\" \/>\n<meta property=\"og:site_name\" content=\"IB Computer Science\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-08T11:29:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learnlearn.uk\/gcsecs\/wp-content\/uploads\/sites\/8\/2017\/01\/ram-ocr-memory-300x225.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/\",\"name\":\"RAM &#038; ROM - IB Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#website\"},\"datePublished\":\"2022-10-03T20:48:02+00:00\",\"dateModified\":\"2025-04-08T11:29:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"IB Computer Science\",\"item\":\"https:\/\/learnlearn.uk\/ibcs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RAM &#038; ROM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#website\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/\",\"name\":\"IB Computer Science\",\"description\":\"- learnlearn..uk\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/ibcs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#organization\",\"name\":\"IB Computer Science\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png\",\"width\":300,\"height\":41,\"caption\":\"IB Computer Science\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RAM &#038; ROM - IB Computer Science","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/","og_locale":"en_GB","og_type":"article","og_title":"RAM &#038; ROM - IB Computer Science","og_description":"Cache Memory Cache memory is a small, high-speed type of memory located directly on or very close to the CPU. It stores frequently accessed data and instructions, allowing the processor to retrieve this information more quickly than if it had to access the main memory (RAM). Cache acts as a buffer between the CPU and&hellip;&nbsp;Read More &raquo;RAM &#038; ROM","og_url":"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/","og_site_name":"IB Computer Science","article_modified_time":"2025-04-08T11:29:22+00:00","og_image":[{"url":"https:\/\/learnlearn.uk\/gcsecs\/wp-content\/uploads\/sites\/8\/2017\/01\/ram-ocr-memory-300x225.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/","url":"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/","name":"RAM &#038; ROM - IB Computer Science","isPartOf":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#website"},"datePublished":"2022-10-03T20:48:02+00:00","dateModified":"2025-04-08T11:29:22+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/ibcs\/ram-rom\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/ibcs\/ram-rom\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"IB Computer Science","item":"https:\/\/learnlearn.uk\/ibcs\/"},{"@type":"ListItem","position":2,"name":"RAM &#038; ROM"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/ibcs\/#website","url":"https:\/\/learnlearn.uk\/ibcs\/","name":"IB Computer Science","description":"- learnlearn..uk","publisher":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/ibcs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/ibcs\/#organization","name":"IB Computer Science","url":"https:\/\/learnlearn.uk\/ibcs\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png","contentUrl":"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png","width":300,"height":41,"caption":"IB Computer Science"},"image":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/"}}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/ibcs\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"Cache Memory Cache memory is a small, high-speed type of memory located directly on or very close to the CPU. It stores frequently accessed data and instructions, allowing the processor to retrieve this information more quickly than if it had to access the main memory (RAM). Cache acts as a buffer between the CPU and&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/114"}],"collection":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":2,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/114\/revisions"}],"predecessor-version":[{"id":1296,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/114\/revisions\/1296"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/media?parent=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}