Module 4 Flashcards
What are the key characteristics of memory systems?
- Location
- Capacity
- Unit of Transfer
- Access Method
- Performance
- Physical Type
- Physical characteristics
Includes aspects such as volatile/nonvolatile and erasable/nonerasable.
What is the main memory?
The memory used to store programs and data during computer operation, primarily using semiconductor integrated circuits.
What types of chips are used in main memory?
- RAM
- ROM
RAM chips can be static or dynamic.
What is the function of the bootstrap loader?
To start the computer software when the power is turned on.
What is cache memory?
A special very high-speed memory used to speed up data access for the CPU by holding frequently requested data and instructions.
Define temporal locality.
The tendency of the time intervals between references to a given address to be small.
Define spatial locality.
The tendency of the distances between consecutive memory references to be small.
What is a cache hit?
When the processor finds the memory location in the cache.
What is a cache miss?
When the processor does not find the memory location in the cache.
What is hit ratio in cache memory?
Hit ratio = hits / (hits + misses) = Number of hits / Total accesses.
What is miss penalty?
The time to move a block from a lower level in the hierarchy to satisfy the processor’s request.
What are the levels of cache memory?
- Level 1: Registers
- Level 2: Cache memory
- Level 3: Main Memory
- Level 4: Secondary Memory
What is the purpose of cache mapping?
To specify the correspondence between main memory blocks and those in the cache.
What is direct mapping in cache memory?
Maps each block of main memory into only one possible cache line.
What is the formula for determining the cache line in direct mapping?
Line number = j mod number of cache lines.
How many bits are required to determine the byte within a cache line if the line length is 32 bytes?
5 bits.
What is the total number of cache lines if the cache size is 64K and the line size is 32 bytes?
2048 lines.
In a direct mapped cache, how is the tag size calculated?
Tag size = Number of bits in physical address - (Number of bits in line number + Number of bits in block offset).
What is the tag directory size formula?
Tag directory size = Number of lines in cache x Number of bits in tag.
What is set associative mapping?
Cache lines are grouped into sets, where each set contains k number of lines, allowing a memory block to map to any available line within its set.
What is the cache set number formula in set associative mapping?
Cache set number = Main Memory Block Address Modulo Number of sets in Cache.
What is the formula to determine the cache set number a main memory block maps to?
(Main Memory Block Address) Modulo (Number of sets in Cache)
In set associative mapping, how many cache lines can a particular block of main memory map to?
One particular cache set only
What is required if the cache is full?
A replacement algorithm