Hazards Flashcards

1
Q

Occurs when 2 instructions need the same HARDWARE RESOURCE at the same time

A

Structural hazards

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

3 approaches in resolving structural hazards

A

Schedule
Stall
Duplicate hardware

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

Programmer explicitly avoids scheduling instructions that would create structural hazards

A

SCHEDULE

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

Addition of HARDWARE COMPONENTS that STALLS until earlier instructions are no longer using a resource

A

Stall

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

Add more hardware so that instructions can independently access the resources at the same time

A

Duplictae

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

Occurs when one instruction depends on a data value produced by a preceding instruction still in the pipeline

A

Data hazard

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

Approaches to resolve data hazard

A

Schedule
Stall
Speculate
Bypass

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

In resolving data hazards, you put in the intsruction nop / no operation

A

Schedule

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

In data hazards, this includes control logic that freezes earlier stage until oreceeding instruction has finished producing data

A

Stall

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

In data hazard, this allows values to be sent to an earlier stage before preceding instruction has left the pipeline

A

Bypass

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

In data hazard, peform operation that may not necessarily be needed

A

Speculate

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

Occur when execution of an instruction depends on a CONTROL DECISION made by an earlier instruction

A

Control hazard

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

What do we need to calculate next PC for jumps

A

OPCODE OFSET PC

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

What do we need to calculate next PC for jump registers

A

OPCODE & REGISTER VALUE

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

What do we need to calculate next PC for conditional branches

A

OPCODE, REGISTER, OFFSET, PC

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

What do we need to calculate next PC for other instructions

A

Opcode and pc

17
Q

Computer is interested in reducing __ which is the time between START AND COMPLETION OF EVENT

A

Response time / execution time

18
Q

The phrase X is faster than Y means

A

x has a lesser response time / y has more response time

19
Q

X is n times faster than Y in equation

A

N = exY / exX

20
Q

Most straighhtofrward definition of time

A

Wall clock time / response time / elapsed time