Section 2 Review Flashcards
What are the four primary memory technologies?
DRAM, SRAM, Flash semiconductor memory and magnetic disk
What is flash memory?
A special type of memory that lets you save data without needing power
What is wear levelling?
A technique used to spread out where data is written so it doesn’t get written to the same spot and eventually wear it out
What is a magnetic disk?
Consist of platters to store information. Coated with magnetic material to save data
How is a magnetic disk organized?
Each platter is divided into concentric circles called tracks. Each tracks are divided into sectors that contain the information
What is seek?
The process of position a read- write head over the proper track of the disk
What is seek time?
The time to move the head to the desired track
What is rotational latency?
The time for the desired sector of a disk to rotate under the read/write head.
What is transfer time?
The time required to transfer a block of bits
What is a direct mapped cache?
A cage structure in which each memory location is mapped to exactly one location in the cache
What is a tag?
A field in a table used for a memory hierarchy that contains the address information required to identify whether the associated block in the hierarchy corresponds to a requested word
What is a valid bit?
A field in a the tables of a memory hierarchy that indicates that the associated block in the hierarchy contains valid data
What is a cache miss?
A request for data in the cache that cannot be filled because the data is not present in the cache
What are the four steps to handling a cache miss?
- Send the original PC value to memory
- Instruct main memory to perform a read and wait for memory to complete its access
- Write the cache entry, put the data from memory in the data portion of the entry, write the upper bits in tag field and turn valid bit on
- Restart the instruction execution which will fetch the instruction, finding it in the cache
What is a write-through?
A scheme where writes always update both the cache and the next lower level of the memory hierarchy- to make sure that data is consistent between the two
What is a write buffer?
A queue that holds data while the data is waiting to be written to memory
What is write back?
A scheme that handles writes by updating values only to the block in the cache, then writing the modified block to the lower level of the hierarchy ch y when the block is replaced
What is a split cache?
A scheme in where are level of the memory hierarchy is composed of two independent caches that operate in parallel with each other with one handling instructions and one handling data
What is an example of the Table- cache’s
index|V|Tag|Data
000. |Y|10basetwo| Memory(10000basetwo)
What is the formula to find block for direct mapped cache?
Block address modulo number of blocks in the cache.
Ex: if cache has eight entries, and address 9. 9 modulo 8 equal 1. It would map to entry 1
What is a fully associative cache?
A cache structure where a block can be placed in any location in the cache
What is a set associative cache?
A cache structure that has a fixed number of locations(at least 2) where each block can be placed
How is the set associative cache organized?
The cache is divided into sets, each set contains a fixed number of blocks. A block from memory is mapped to a specific set using the index field. Within that set, block can occupy any slots
What is the formula to find position in set associative cache?
Block number modulo number of sets in the cache entry