Fetch execute decode cycle Flashcards

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

What is the ALU and what does it do?

A

Arithmetic logic unit
The part of the CPU that performs calculations (arithmetic) and logical operations.
It is responsible for the arithmetic and logic processing requirements of the instructions in a running program.

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

What is the CU and what does it do

A

Control unit
The part of the CPU that organizes the actions of the other parts of the CPU.
It controls the flow of data throughout the processor and the rest of the whole computer system.
It ensures that program instructions are handled correctly.
A vital part of the control unit is a system clock that is used by the unit to synchronise processes.

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

What is the register and what does it do

A

Storage components of the CPU which allows extremely fast access times (very much faster than accessing memory).
Each register has limited storage capacity, typically 16, 32 or 64 bits.
These are used to hold an instruction, an address of a memory location, or other piece of data.
Only a relatively small number of registers are available.

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

What are the 2 types of registers

A

Specific purpose register
General purpose register

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

What is a specific purpose register and eg

A

Play a specific role in fetch execute cycle
eg: program counter, memory address register, memory data register, current instruction register

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

What is a general purpose and eg

A

if there is only one general purpose register it is referred to as the Accumulator.
This is used to store a single value at any one time.
A value is stored in the accumulator that is to be used by the ALU for the execution of an instruction.
The ALU can then store a different value in the accumulator after the execution of the instruction.

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

What is a clock

A

An electronic device inside a CPU that ‘ticks’ at regular intervals and is used to synchronise the actions of the other parts of the CPU

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

What is a bus

A

a group of connecting wires (parallel wires).
CPU and main memory are connected to each other, and to the input and output (I/O) devices by a bus

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

What is a bus width

A

The number of wires/connections that make up a bus.
This determined the range of binary numbers that can be communicated.
Greater bus width means larger number of values can be communicated.
e.g. 8-bit address bus can address 00000000 (0) to 11111111 (255) , i.e 256 28possible addresses.
if the data bus width is 8 can transfer 1 byte – one character. if the bus width is 64 can transfer 8 characters at once.

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

The bus that connects the CPU to other devices in the computer is split into three parts:

A

Address bus
Data bus
Control bus

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

What does a address bus do?

A

Carries memory addresses between the CPU and main memory to the memory identify a memory location or it can be to the I/O system to identify the source or destination of the data.
This is unidirectional means data travel one way only

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

What does a data bus do?

A

Carries the values to be read from or written to memory.
It also carry data to an output device or can carry data from an input device. It is bidirectional (two-way).

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

What does a control bus do?

A

Bidirectional bus which transmits a signal from the control unit to any other system component or transmits a signal to the control unit.
The control bus carries timing signals at time intervals dictated by the clock cycle.
This ensures that the time that one component transmits data is synchronised with the time that another component reads it. For example, it carries the signals that, determine whether to read or write the data, and when to do so.

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

What does the “Fetch” part do?

A

The CPU control unit places the memory address of the next instruction on the address bus. (Program counter and the memory address register are involved in this process)
It also sends a signal on the control bus requesting to read from memory.
The memory receives the signal and looks up that memory location sent by the CPU using the address bus.
The data in the memory is copied on to the data bus.
The data bus copies this into a special register in the CPU. (MDR/MBR and CIR are the registers involved in this process

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

What does the “Decode” part do?

A

The control unit analyses the contents of the register and sends signals to the other parts of the CPU telling them what to do. (e.g., read data from memory, write data to the memory, perform a particular calculation etc.)

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

What does the “Execute” part do?

A

The instruction is completed by the CPU.

17
Q

What factors affect CPU performance

A

Clock speed
Number of processor cores
Size of cache

18
Q

How does clock speed affect CPU performance

A

The rate at which instructions are processed by the CPU is controlled by the clock speed.
The faster the clock speed, the faster the rate of processing.
Rate of 3GHz is common in modern computer processors.

19
Q

Increasing the clock speed to increase processing speed has disadvantages

A
  • The instructions are processed by transistors and the rate at which they operate is limited.
  • The processor generates a large amount of heat and this increases as the clock speed increases. A fan and heat sink help to get rid of excess heat however, there are limits to the rate of cooling.
  • Processors with clock speed of 9GHz require cooling by liquid nitrogen.
20
Q

How does the number of processors affect clock speed

A

Multicore processor – a processor with many processor cores.
Single-core processor – a processor with only one processor core.
Dual-core processor - a processor with two processor cores.
The advantages of multicore processor over single-core processors are the cores can work:
- together on the same program – this is called parallel processing
- on different programs at the same time – this is called multitasking.
However, not all programs will run at twice the speed with a dual-core processor.
The tasks required might not be able to be carried out in parallel.
They might be sequential, so that one task requires output from a previous task.
This means the second task cannot start until the first task has finished.