131 Week 5 - Control Unit Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What does the control unit (CU) do?

A

Controls and sequences the other architectural modules (mostly ALU and main memory) using their respective control lines.
It’s driven by a “clock” which gives regular electric pulses or “ticks” and endlessly executes the FDE cycle

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

How does the control unit control registers and the ALU?

A

Latch and output enable control lines for registers and function select, shift L/R and carry in for the ALU

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

Instruction register

A

A special register that holds the instruction that is currently being executed.

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

Memory address register (MAR)

A

A special purpose register that holds the memory address which the processor will write to/ read from depending on the instruction.

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

Memory data register (MDR)

A

A special purpose register that holds data going to/ coming from the memory address held in MAR.

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

Finite state machine

A

A way of implementing the FDE cycle.
It is a hard wired sequential logic circuit built in terms of NAND gates.
It is high performance but expensive and hard to evolve.

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

Microcode

A

A way of implementing the FDE cycle.
It is a sequence of micro-instructions in a micro-memory.
It is slightly lower performance but much more flexible as manufacturers can easily add new instructions.

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

Opcode

A

Specifies the operation to be performed on the data

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

Operand

A

The data to be acted on or the memory location of the data in a register.

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

Pipelining

A

A way to speed up the fetch decode execute cycle by overlapping instructions so that different instructions can use different parts of the CPU simultaneously.

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

Pipeline hazards

A

Situations that cause the pipeline to stall and slow down. The pipeline then needs to be flushed to be able to continue.
They can be categorised into control, data and structural hazards.

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

Control hazard

A

A control transfer instruction changes the flow of execution and therefore what instructions need to be executed next.
This means the semi-executed instructions in the pipeline are not needed yet and different instructions are now needed to be executed.

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

Data hazard

A

When an instruction depends on the outcome of the previous instruction or when 2 instructions on the pipeline needs to access the same data.

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

Structural hazards

A

When 2 parts of the pipeline need to access the same piece of hardware (e.g., ALU, address decoder)

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