Topic 11 theory Flashcards

1
Q

CPU Instruction cycle and activities

A

Fetch instructions, decode instructions, fetch data, process data, write data.

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

4 Instruction cycles

A

Fetch,execute,interrupt,indirect

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

Indirect instruction cycle

A

check for any indirect addressing involved, if so required operands are fetched using indirect addressing

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

Decoding of indirect addressing is done by?

A

Control unit

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

Branch penalty

A

Conditional branch makes next instruction address unknown.
If a branch is taken, pre-fetched instruciton must be discarded to fetch new instructions.
unable to achieve execution time = fetch time

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

Six stage Instruction pipeline instructions

A
  1. Fetch Instruction
  2. Decode Instruction
  3. Calculate Operands
  4. Fetch Operands
  5. Execution Instruction
  6. Write Operand
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Issues of instruction pipeline

A

Branch penalty, Interrupt invalidating pre-fetched instructions, Somse stages depending on the contents of register, can be altered by previous instructions still in pipeline.

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

Potential issues of multi stage pipeline

A

Overhead in moving data and functions, lengthens execution time.
amount of control logic required to optimize increases enormously

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

Total time of non pipeline

A

n = instructions,
k = stages
clock cycle time
n x k x clock cycle time

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

total time of pipelined

A

n = instructions
k = stages
(k+ (n - 1) ) x clock cycle time

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

speed up factor

A

total non pipeline time / total pipeline timer

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

Pipeline hazards

A

when pipeline stalls as condition do not permit execution

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

Resource/structural hazards

A

When two or more instructions in the pipeline uses the same resources, instructions are executed in series rather than parallel

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

Data hazard

A

Conflict in accessing an operand location, two instructions are executed in sequence

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

Control hazard

A

make wrong decisions on branch predictions

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

Definition of CISC

A

Complex Instruction set computer
- perform numerous low level operations in single instructions

17
Q

Definition of RISC

A

Reduced Instruction set computer
small highly-optimized set of instructions,simple commands

18
Q

Characteristics of CISC

A

Instructions take several clock cycle
complex and varied-length instructions
large number of instructions
take more time to decode and execute
Complex Instructions implemented as microcode
More efficient use of RAM
Hardware centric

19
Q

Characteristics of RISC

A

Single-cycle instructions
Simple and standardized instructions
a Small number of fixed-length instructions
can run at higher clock speed due to simplicity
Only one layer of instructions
Heavy use of RAM
Software centric