Execution Pipeline Flashcards

1
Q

What architecture uses the execution pipeline?

A

RISC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

What is the execution pipeline?

A

● Hardware optimization technique
● Allows the execution of instructions in
parallel.
● Used by RISC architectures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How is an instruction executed?

A

● 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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many operations can an N stage pipeline perform simultaneously?

A

N

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How long does each stage in a pipeline take?

A

One clock cycle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What controls the execution pipeline?

A

The processor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Generally, why does a pipe stall happen?

A

if the next instruction
depends on the result of the previous
instruction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are some specific causes of pipe stalls?

A

● 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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can a programmer avoid pipe stalls in their program?

A

● Reordering instructions
● – Avoid introducing unnecessary branches
● – Delay references to result register(s)
● - Avoid Memory access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly