Single Processor Computing Flashcards
Von Neumann Architecture
A stream of instructions executed in an order
Control Flow
A prescribed sequence of instructions
Stored Program
Instructions and program data stored in the same memory
Fetch, Execute, Store
Load next instruction onto processor,
Operation is executed
Writes content back to memory
Direct To Memory Architecture
Allows data to be directly sent to and from memory to processors.
Work stays in the memory
Out-of-order instruction handling
Instructions can be processed in a different order.
Why do modern processors use out-of-order instruction handling?
Increased performance with pipelining.
Pipelining
Allowing the CPU to work on multiple smaller instructions at the same time.
Execution time for pipelined instructions?
t(n) = (n + n[1/2])x
x = basic operation time
n = Linear operation time
n[1/2] = Sublinear operation time.
Instruction level parallelism (ILP)
Finding independent instructions and running them in parallel.
Speculative Execution
Assumes the test will turn out true or consistent.
Prefetching
Data can be speculatively requested before any instruction needing it is actually encountered.
Branch Prediction
Guessing whether a conditional instruction will evaluate to true and executing accordingly.
von Neumann bottleneck
Transferring data from memory takes more time than actually processing the data.
How does the memory hierarchy address the von Neumann bottleneck?
By reducing the number of times the CPU has to wait for data to be transferred
Latency
The delay between the processor issuing a request from a memory item and the item arriving.
Bandwidth
The rate at which data arrives at its destination after the initial latency is overcome.
What role do registers play in the memory hierarchy?
Registers are the fastest and allow the CPU to access data instantly without going to slower caches or memory.
What role do cache systems play in the memory hierarchy?
Cache stores frequently accessed data that the CPU might need without having the CPU go to the main memory.
Cache Tags
Info keeping track of the location and status of data in the cache.
What are the 3 types of cache misses in single-processor systems?
Compulsory: Caused when data is first accessed and is not present in the cache.
Capacity: Caused by data having been overwritten because the cache can not contain all your problem data.
Conflict: Caused by one data item being mapped to the same cache location as another.
What additional type of cache miss occurs in multi-core systems?
Coherence: multiple processor cores have copies of the same data in their cache, but those copies become inconsistent due to changes.