Midterm 2 - Terms pg. 6-7 Flashcards
pipeline:
state of development, preparation, or production
analogous to laundry:
keep all parts of the machine operating on different parts of multiple instructions at the same time
Pipelining MIPS - 5 Stage Pipeline:
IF, ID, EX, MEM, WB
IF:
instruction fetch
ID:
instruction decode and register read
EX:
execute operation or calc address
MEM:
access memory operands
WB:
write back result to register
(Equation) Performance of 5 Stage Pipeline:
Ideal:
time between instructions (pipelined) =
Time between instructions (non-pipe) / # of pipe stages
speedup is due to:
increased throughput.
NO SPEEDUP GAIN for FIRST instruction
Hazards:
situation that would prevent starting next instruction
Structural hazard:
required resource is busy
can’t read from instruction memory and data memory at same time
Data hazard:
need to wait for prev instruction to finish read/write
Control hazard:
deciding on control action depends on prev instruction
Memory structure hazard:
separate instruction/data memory OR instruction/data caches