The Purpose of the CPU Flashcards

1
Q

What is the CPU?

A

Made up of billions of transistors (on-off switches). The CPU processes data, carries out instructions and control the computer’s components

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

The Fetch-Decode-Execute cycle

A
  • Fetches instructions from memory
  • Decodes these instructions
  • Then executes them
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Arithmetic Logic Unit (ALU)

A

Responsible for:
- Arithmetic operations (add, subtract etc)

  • Logical operators (AND, OR etc)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Control Unit (CU)

A

It co-ordinates the activity of the CPU by:

  • Fetching and decoding instructions from memory
  • Sending signals to control how data moves around the components and memory to execute the instructions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Cache Memory

A
  • Temporary storage that the CPU can access very quickly
  • Used to store instructions that are frequently or likely to be used
  • Faster than extracting the instructions from the memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Registers

A
  • Memory locations within the CPU that temporarily hold data
  • Can be accessed very quickly
  • They accept, store, and transfer data and instructions for immediate CPU use
  • The registers are used during the Fetch-Decode-Execute cycle
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Von Neumann architecture

A
  • Data and instructions are both stored as binary digits
  • Data and instructions are both in primary storage (memory)
  • Instructions are fetched from memory one at a time and in order (serially)
  • The CPU decodes and executes the instruction before moving onto the next
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 4 registers in Von Neumann Architecture?

A

Program Counter (PC)
Memory Data register (MDR)
Memory Address Register (MAR)
Accumulator (ACC)

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

Program Counter (PC)

A
  • Keeps track of the memory location of the next instruction
  • As each instruction gets fetched, the Program Counter increments by 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Memory Data Register (MDR)

A
  • Stores any data fetched from memory
  • Stores any data that is to be transferred and stored in memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Memory Address Register (MAR)

A
  • Stores the address of the current instruction that is to be fetched from memory
  • The memory address of where the data needs to go
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Accumulator (ACC)

A
  • Stores the results of any calculations made by the ALU
  • Stores the value of inputs and outputs to and from the CPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What happens in the FETCH stage?

A

1 The address of the next instruction is copied
from the PC and placed in the MAR

2 The MAR now holds a memory address. The CU
FETCHES the data at that address and copies it
to MDR

3 The PC is incremented by 1 to point to the next instruction

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

What happens in the DECODE stage?

A

4 The MDR now contains the instruction. The CU then DECODES the instruction

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

What happens in the EXECUTE stage?

A

5 The decoded instruction is EXECUTED. Maybe the ALU has to do a calculation

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