Processor Hardware and Instruction Sets Flashcards

1
Q

What is the instruction cycle?

A
Fetch instruction from memory
Decode instruction
Fetch operands
Perform computation
Write result to memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is pipelining?

A

Pipelining speeds up processing by starting an instruction before the previous one is complete. This only works if each instruction is one word long at each stage.

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

Describe CISC

A

Instructions can be any length
Instructions can be any format
Instructions can take any number of clock cycles
Difficult for pipelines to handle

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

Describe RISC

A

Instructions are one word long
Instructions are all a similar format
Instructions take one clock cycle to execute

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

What are the key registers in a CPU?

A

PC - holds the address of the next instruction
MAR - holds the address issued to the address bus
MDR - exchanges data with the data bus
IR - holds the current instruction
SP - hold current address at the top of the stack
SR - holds the status bit

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

What are the four status flags?

A

C - calculation produced a carry bit
V - calculation produced a signed overflow
Z - result is zero
N - result is negative

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

What is a machine instruction?

A

A binary word that encodes the operation to be carried out, the location of the operands and the location to store the result.

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