Computational Pipelining Flashcards

1
Q

Q: What is pipelining in computer architecture?

A

A: An implementation technique where multiple instruction stages are overlapped to improve throughput.

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

Q: Does pipelining improve individual instruction latency?

A

A: No — it increases instruction throughput, not individual instruction speed.

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

Q: What are the 5 classic pipeline stages?

A

A: 1) Instruction Fetch (IF),
2) Instruction Decode (ID),
3) Execute (EX),
4) Memory Access (MEM),
5) Write Back (WB).

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

Q: What is the ideal CPI (Cycles Per Instruction) in a perfect pipeline?

A

A: CPI = 1.

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

Q: What limits the performance of a pipelined processor?

A

A: The slowest pipeline stage and stalls from hazards.

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

Q: What is pipeline speedup?

A

A: The ratio of unpipelined to pipelined instruction execution time — ideally equal to the number of pipeline stages.

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

Q: What causes pipeline stalls?

A

A: Dependencies or hazards that prevent the next instruction from progressing.

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

Q: What are the three types of pipeline hazards?

A

A: 1) Structural hazards, 2) Data hazards, 3) Control hazards.

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

Q: What is a structural hazard?

A

A: A conflict in hardware resources preventing simultaneous instruction execution.

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

Q: What is a data hazard?

A

A: Occurs when instructions depend on results not yet available from previous instructions.

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

Q: What is pipeline forwarding?

A

A: A technique where results are passed directly to dependent instructions without waiting for them to be written back.

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

Q: What is a control hazard?

A

A: A delay caused by branch instructions that alter the program counter (PC).

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

Q: What is branch delay?

A

A: The time lost waiting to determine if a branch is taken.

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

Q: How can control hazards be reduced?

A

A: Using branch prediction and speculative execution.

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