Factors effecting CPU performance & pipelining Flashcards

(13 cards)

1
Q

What is Clock Speed?

A

Number of cycles per second, measured in hertz (Hz)

Clock speed determines how fast a CPU can process instructions.

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

Define Cache in Computing

A

Temporary storage of data and instructions being read to and written from, located on or near the CPU

Cache helps speed up data access for the CPU.

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

What is a Core in the context of CPU’s?

A

Complete copy of a CPU. (1 core = 1 FDE cycle)

FDE = Fetch, Decode, Execute

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

What does Pipelining refer to in CPU architecture?

A

The process of fetching one instruction while executing another, which enables higher throughput of instructions in the CPU

Pipelining improves CPU efficiency.

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

What is pipelining?

A

A technique where the CPU overlaps the fetch, decode, and execute stages of multiple instructions to improve throughput.

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

What is the main purpose of pipelining?

A

To increase instruction throughput (more instructions per unit of time).

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

Does pipelining make each instruction faster?

A

No — each instruction takes the same time, but more are completed overall because they overlap.

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

Give an analogy for pipelining.

A

Like an assembly line: while one worker starts a new task, another finishes the previous one.

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

What is branch prediction?

A

The CPU guesses the outcome of a branch (e.g., an IF statement) to keep the pipeline full.

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

What is flushing the pipeline?

A

Clearing (or discarding) instructions that were incorrectly loaded into the pipeline.

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

When does flushing usually occur?

A

When branch prediction is wrong or when a jump/branch changes the flow of execution.

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

Why does flushing reduce performance?

A

Because the CPU has to throw away work already in the pipeline and restart with the correct instruction.

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

How does pipelining affect CPU performance overall?

A

It improves performance by executing more instructions per second, but hazards and flushing can reduce efficiency.

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