1.1.1 - Purpose of the CPU Flashcards

1
Q

Define what is meant by a computer.

A

A computer is an electronic device which takes input, processes data and delivers output.

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

Define what is meant by a computer program

A

A computer program is a set of instructions computers follow to process data.

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

What does the memory of a computer store

A

The memory of a computer stores the program

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

What is the purpose of the CPU

A

The purpose of the CPU is to fetch, decode and execute instructions.

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

What happens during the fetch stage

A

During the fetch stage,

The Program Counter is checked as it holds the address of the next instruction to be executed.

This address is used by the Memory Address Register (MAR) in order to fetch the instruction needed from Main Memory (RAM) and bring it (back) into the Memory Data Register (MDR).

The address in the Program Counter is incremented to point to the next instruction

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

What happens during the decode stage

A

During the decode stage, the Control Unit (CU) decodes the instruction to see what has to be done

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

What happens during the execute stage

A

The CPU carries out the instruction.

What the CPU actually does, depends on what the instruction is:

e.g. The CPU could be asked to head back to Main Memory (RAM), fetch some data and add it to the accumulator

The CPU could be asked to jump to another instruction.

The CPU could be asked to write data held in the accumulator back into Main Memory (RAM)

This could be:

load data from memory
Write data to memory
Do a calculaotion or logical operation (using the ALU)
Change the address in the PC,
Halt the program

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

Give another name for the CPU

A

The processor

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

What does CPU stand for?

A

Central Processing Unit

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