Computer Architecture Flashcards

1
Q

What is abstraction?

A

Exclude aspects not required to focus on

the general characteristics needed

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

What is performance?

A

1/Execution Time

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

How to increase CPU performance?

A

Reducing number of clock cycles
Increasing clock rate
Hardware designer must often trade off clock
rate against cycle count
reduce leakage current occurring also when
transistor in off state

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

What is Amhalhs law?

A

States that the performance enhancement possible with a given improvement is limited by the amount that the improved feature is used.

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

What is In-lining or inline expansion?

A

A procedure which replaces a call to a function by the body of the function.

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

What is loop unrolling?

A

involves taking a loop, replicating the body multiple times, and executing the transformed loop fewer times. This will reduce the loop overhead.

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

Why a single-Cycle implementation is not used today?

A

The clock cycle must be the same for every instruction

The overall performance is poor since the clock cycle is too long

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

What is pipelining?

A

Implementation technique in which multiple instructions are overlapped in execution.

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

What are pipelining hazards?

A

Situations in pipelining when the next instruction cannot execute in the following clock cycle
Structural hazard- when hardware cannot support the combination of instructions that we want to execute in the same clock cycle. Occurs if we have a single memory instead of two memories.
Data hazard- when a planned instruction cannot execute in the proper clock cycle because data that is needed to execute the instruction is not yet available. Occurs from the dependence of one instruction on an earlier one that is still in the pipeline
Control hazard- when the proper instruction cannot execute in the proper pipeline clock cycle because the instruction that was fetched is not the one that is needed; that is, the flow of instruction addresses is not what the pipeline expected

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

What is branch prediction?

A

A method of resolving a branch hazard that assumes a given outcome for the branch and proceeds from that assumption rather than waiting to ascertain the actual outcome

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

What is the principle of locality?

A

says that most programs don’t access all code or data uniformly

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

What is AMAT?

A

(Hit Time) + (1 -h) x (Miss Penalty)

a common metric to analyse memory system performance

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