Midterm 2 - Terms pg. 6-7 Flashcards

1
Q

pipeline:

A

state of development, preparation, or production

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

analogous to laundry:

A

keep all parts of the machine operating on different parts of multiple instructions at the same time

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

Pipelining MIPS - 5 Stage Pipeline:

A

IF, ID, EX, MEM, WB

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

IF:

A

instruction fetch

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

ID:

A

instruction decode and register read

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

EX:

A

execute operation or calc address

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

MEM:

A

access memory operands

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

WB:

A

write back result to register

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

(Equation) Performance of 5 Stage Pipeline:

A

Ideal:

time between instructions (pipelined) =
Time between instructions (non-pipe) / # of pipe stages

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

speedup is due to:

A

increased throughput.

NO SPEEDUP GAIN for FIRST instruction

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

Hazards:

A

situation that would prevent starting next instruction

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

Structural hazard:

A

required resource is busy

can’t read from instruction memory and data memory at same time

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

Data hazard:

A

need to wait for prev instruction to finish read/write

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

Control hazard:

A

deciding on control action depends on prev instruction

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

Memory structure hazard:

A

separate instruction/data memory OR instruction/data caches

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

Forwarding/Bypassing:

A

use result when its computed

skips having to save it anywhere

17
Q

Load-Use Data hazard:

A

data not produced until 4th stage, may be needed in 3rd stage
(cannot forward/bypass)

18
Q

code scheduling:

A

removing load-use stalls by performing some other calculation between load and use.