Execution Pipeline Flashcards
What architecture uses the execution pipeline?
RISC
What is the execution pipeline?
● Hardware optimization technique
● Allows the execution of instructions in
parallel.
● Used by RISC architectures
How is an instruction executed?
● Fetch the next instruction
● Examine the opcode to determine the operands needed
● Fetch the operands
● Perform the specified operation
● Store the result in the indicated location
How many operations can an N stage pipeline perform simultaneously?
N
How long does each stage in a pipeline take?
One clock cycle
What controls the execution pipeline?
The processor
Generally, why does a pipe stall happen?
if the next instruction
depends on the result of the previous
instruction.
What are some specific causes of pipe stalls?
● Access to RAM
● Call an instruction that takes a long time like multiplication, division, FP arithmetic
● Branch to a new location
● Call a function
How can a programmer avoid pipe stalls in their program?
● Reordering instructions
● – Avoid introducing unnecessary branches
● – Delay references to result register(s)
● - Avoid Memory access