Memory Architecture Flashcards
What is memory latency?
The time it takes to retrieve binary data from memory
DRAM vs SRAM
DRAM is slower, smaller, cheaper and needs refreshing whereas SRAM is faster, larger, expensive and doesn’t need refreshing
Cache vs RAM
Cache is faster, located closer to the CPU, expensive but is smaller compared to RAM
Does cache use SRAM or DRAM?
SRAM
List the levels of the memory hierarchy (fastest to slowest).
Cache (L1, L2, L3)
RAM
Secondary Memory
List the levels of Cache
L1 - Fastest, slower, and embedded within the CPU
L2 - Larger and can be embedded within the CPU
L3 - Supports L1 and L2, slower but larger
(As levels go down it gets slower but larger)
What is stored in RAM?
Programs, data, and addresses currently in use
What is Virtual memory and why is it used?
Logical memory that appears to exist in the RAM but is stored in SSD and HDD and it is used to run larger programs that cannot fit in the physical RAM
Cache Hit Vs Miss
A cache hit is when required data is found within the cache memory whereas cache miss is when data cannot be found and has to be found within physical memory
What is the formula to calculate number of locations within bus?
2^width of bus