



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




What is spatial locality? The principle stating that if a data location is referenced, data locations with nearby addresses will tend to be referenced soon. temporal locality The principle stating that if a data location is referenced then it will tend to be referenced again soon. aka spatial locality locality in space synonym aka temporal locality locality in time synonym Memory Hierarchy Levels Top-Down CPU CPU Cache Physical Memory Solid State Memory Virtual Memory
CPU component processor register is a _______________ CPU cache components L1, L2, L3 are _______________ Physical Memory component Random Access Memory (RAM) is a _______________ Solid State Memory Component non-volatile flash-based memory is a ______________ Virtual Memory component flash-based memory is a ______________ CPU (Central Processing Unit) pros and cons pros and cons: super fast super expensive very small capacity CPU Cache pros and cons pros and cons: faster
Solid State Memory examples SSD (Solid State Drive) Flash Drive Virtual Memory examples mechanical hard drives Arithmetic Instructions CPU instructions that perform arithmetic operations such as: add, subtract, add/sub immediate, add/sub and set flags Data Transfer Instructions A command that moves data between memory and registers. load, store, load/store half, load/store exclusive Logical Instructions and/or comparisons inclusive/exclusive or, and immediate, exclusive/inclusive or immediate exclusive or
inclusive or ORR CPU time = (num instructions) (cycles per instruction) (cycle time) Clock cycles time CPU time formula CPU time = [(num instructions) (cycles per instruction)] / clock rate clock rate CPU time formula speedup = old speed / new speed speedup formula total time = 1 full set time + [slowest step time (num sets - 1)] time formula