Made with ScholarlyMake flashcards like these from your own notes
Question:What are the different types of memory organization in a computer system?
Answer:Memory units are organized in a hierarchy, including Registers, Cache, Main Memory, Virtual Memory, and ROM.
Question:What is RAM?
Answer:RAM stands for Random Access Memory and is a type of main memory.
Question:What is Dynamic RAM (DRAM)?
Answer:DRAM is made of capacitors that discharge over time and needs constant refreshing.
Question:What is Static RAM (SRAM)?
Answer:SRAM does not need constant refreshing, is made from D-flip-flops circuits, is faster, but more expensive than DRAM.
Question:What is ROM?
Answer:ROM stands for Read-Only Memory, which does not allow writing access, does not require refreshing, and retains memory with little charge.
Question:What distinguishes main memory from other types of memory?
Answer:Main memory can either be RAM or ROM and is characterized as memory that is of a faster speed but also more expensive as it approaches the CPU.
Question:How does the CPU access data if it is not in its registers?
Answer:If the data is not in the CPU's registers, it requests data from the nearest memory cache; if not found, it checks the main memory, and if not there, it requests it from the disk.
Question:What is a 'cache hit'?
Answer:A cache hit occurs when data is found on a device.
Question:What is a 'cache miss'?
Answer:A cache miss occurs when data isn't found on a device.
Question:What is the 'hit rate'?
Answer:The hit rate is the percentage of time data is found in a device.
Question:What is the 'miss rate'?
Answer:The miss rate is the percentage of time data isn't found in a device.
Question:What is the formula for calculating miss rate?
Answer:Miss rate = 1 - hit rate.
Question:What is 'hit time'?
Answer:Hit time is the time it takes to find and access data.
Question:What is 'miss penalty'?
Answer:Miss penalty is the time wasted processing a miss, including replacing blocks of memory and delivering data to the processor.
Question:What are registers in the context of memory access?
Answer:Registers are the smallest access time memory units, directly addressing data for the CPU.
Question:What are the levels of cache memory?
Answer:Cache memory typically contains levels such as Level 1 and Level 2.
Question:What is virtual memory?
Answer:Virtual memory involves hard disks and SSDs, has higher access time, and provides more storage space at a lower cost.
Question:What is the principle of locality?
Answer:The principle of locality states that if a piece of data is needed, nearby data will likely be needed soon after.
Question:What is 'temporal locality'?
Answer:Temporal locality refers to the concept that recently accessed data will be accessed again soon.
Question:What is 'spatial locality'?
Answer:Spatial locality indicates that access tends to cluster, with related data being accessed together.
Question:What is 'sequential locality'?
Answer:Sequential locality describes the accessing of instructions in a sequential manner.
Question:What is content addressable memory?
Answer:Content addressable memory speeds up access to data and is smaller than main memory.
Question:Why is one large cache not ideal?
Answer:One large cache is not ideal because the 'content' that searches the cache is in a part of the memory address called a field, and it's inefficient to manage.
Question:What is a tag field in cache memory?
Answer:A tag field selects a block to search through in cache memory.
Question:What is the significance of the offset field in cache memory?
Answer:The offset field points to the specific data within the selected block in cache memory.
Question:What is a direct mapped cache?
Answer:In a direct mapped cache, each main memory block is assigned a specific block in the cache.
Question:How can a cache block be calculated?
Answer:Cache block can be calculated using the formula: Cache block = block from memory mod number of cache blocks.
Question:What is meant by fully associative cache?
Answer:In a fully associative cache, not each memory block is mapped to a specific cache address. Instead, each address has tag and offset fields.
Question:What is set associative cache?
Answer:Set associative cache combines concepts of direct mapped and fully associative caches, mapping a block of memory to different cache blocks.
Question:What is a replacement policy in cache memory?
Answer:A replacement policy selects which cache block to evict when the cache is full.
Question:What is Least Recently Used (LRU) replacement policy?
Answer:The LRU algorithm tracks the last time each block was used, evicting the one that has remained unused the longest.
Question:What is First-In-First-Out (FIFO) replacement policy?
Answer:FIFO evicts the block that has been in the cache the longest, regardless of how often it is used.
Question:What is the Random replacement policy?
Answer:The Random policy replaces a block at random, which can sometimes replace blocks that are needed soon after.