1.1.1 Architecture of the CPU Flashcards

1
Q

What is the CPU?

A

The processor or Central Processing Unit (CPU) is the internal hardware component of the computer that is responsible for executing the instructions of programs

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

what is the CPU made up of?

A
  • arithmetic logic unit (ALU)
  • control unit (CU)
  • registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is the ALU?

A

The Arithmetic and Logic Unit (ALU) is the component of the CPU that carries out the following:

  • Arithmetic calculations: addition, subtraction, division, and multiplication
  • Logical operations: such as AND, OR, NOT
  • Comparisons between values, such as greater than, less than, equal to
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is the CU?

A

The control unit organises the execution of instructions, including managing the other components in the processor.

The control unit is responsible for the following tasks:

  • Ensures the execution of instructions in the correct sequence
  • Decodes every instruction that the processor will execute
  • Sends and receives control signals to and from other components
  • Checks that signals have been delivered successfully
  • Makes sure that data goes to the correct place at the correct time

The control unit also contains the clock. This is a tiny component that controls the rate at which instructions are executed in the processor.

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

what is the clock

A

The clock signal is used to synchronise the operations of the processor components. The system clock (also simply referred to as the clock) generates regular clock pulses by emitting a signal that continuously switches between a low (or ‘0’) and a high (or ‘1’) state.

The time taken between two sequential rising edges is called a clock cycle or a clock period. The clock speed is measured by the number of clock cycles in one second — 1 clock cycle per second is 1Hz.

Herz Measurement
1 hertz (Hz) 1 clock cycle
per second
1 million Hz megahertz (MHz)
1,000 MHz gigahertz (GHz)

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

what are registers?

A

Registers are locations of computer memory within the processor that provide extremely fast access.

General-purpose registers are used to store the results of the intermediate calculations that are part of larger computations.

Dedicated or special-purpose registers are processor-based registers that are used for a specific purpose.

  • CIR
  • MAR
  • MDR
  • PC
  • Accumulator
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the current instruction register (CIR) do?

A

Holds the current instruction that the processor is executing

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

what does the memory address register (MAR) do?

A

Temporarily stores the memory addresses used when searching for data in RAM

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

what does the memory data register (MDR) do?

A

Temporarily holds the data (data values or instructions) that are read from or written to the main memory

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

what does the program counter (PC) do?

A

Holds the address of the next instruction to be executed by the processor

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

what does the accumulator do?

A

Stores the result of any calculation

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

what is the fetch decode execute cycle?

A

The fetch-decode-execute cycle describes the basic operation of modern computers.

Instructions are loaded into memory (RAM) before the processor starts running the program

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

what is the fetch stage of the FDE cycle?

A

Each instruction is fetched from memory (in order), and put into the appropriate registers. The control unit can then access the instruction for the next stages

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

what is the decode stage of the FDE cycle?

A

The instructions (which are received in binary) need to be decoded before they can be run. This is the process the control unit uses to work out what the other components need to do.

Each processor will have slightly different encodings for instructions

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

what is the execute stage of the FDE cycle?

A

The control unit will tell the other components what they need to do in order for the instruction to work

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

what is computer architecture?

A

Computer architecture refers to the structure and organisation of a computer system. It specifies the components that make up a computer system and describes how these are interconnected, how they interact with each other, and how they are managed

17
Q

what is Von Neumann architecture?

A

In the 1940s, John von Neumann and his team developed the concept of the stored program computer. The Von Neumann architecture used the idea of storing program instructions and data in main memory and moving them between memory and the processor. Von Neumann architecture is used in many modern-day computer systems.

The von Neumann architecture consists of:
- a Processor
- a Memory unit that can communicate directly with the processor
- connections for input and output devices
- Secondary storage for saving/backing up data

The processor can access the instructions and data in the main memory as required to execute the program. It does this by using dedicated connections called buses:

  • an address bus is used to identify the addressed location
  • a data bus is used to transfer the contents to/from that location

This means that the same address and data buses are used in the process of transferring instructions and data between main memory and the processor. A third bus, the control bus, is used to synchronise and control operations.