Unit 3.1 - computer architecture Flashcards

1
Q

What is the CPU?

A

The central processing unit/microprocessor is an integrated circuit on a single microchip that accepts data input into computer and processes it into information ready for output.

Responsible for all processing that occurs in a computer and the Fetch-Decode-Execute cycle.

Does not directly carry out input, output or storage functions.

Called the brain of the computer.

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

What is the CU?

A

Control unit, one of the most important components of the CPU.

It coordinates all the activities happening in the CPU and dictates the flow of data.

Manages the other components. Initiates each step of the FDE cycle and manages the ALU.

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

What is the PC?

A

The program counter is a register that holds the address of the next instruction to be fetched/executed.

Increments by 1 when instruction is fetched.

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

What is MAR?

A

Memory address register is a register that contains the current address of the RAM location that data should be written to or read from.

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

What is the MDR?

A

Memory data register is a register used to temporarily store data that is read from/written to RAM.
All data going to/from memory must pass through here.

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

What type of value does a microprocessor us to help it make a decision?

A

Stored value (compares sensor data to a value stored in memory)

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

What is the CPU composed of?

A

Billions of transistors (tiny electrical switches) that combine to make logic gates.

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

List all the components of the CPU:

A
  1. Control unit (CU)
  2. Arithmetic Logic unit (ALU)
  3. Floating point unit (FPU)
  4. Cache memory (IAS)
  5. Program counter (PC)
  6. Current instruction register (CIR)
  7. Accumulator (ACC)
  8. Memory address register (MAR)
  9. Memory data register (MDR)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the ALU?

A

Arithmetic logic unit.
Carries out mathematical calculations and logical operations (e.g. bit shifts)

Uses the Accumulator to temporarily store data while performing these calculations.

Only works with integer values.

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

What is the FPU?

A

Floating point unit.

Performs arithmetic calculations of non-integer values.

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

What are registers?

A

Small areas of storage within the CPU.

Extremely fast to access because they are located directly within the CPU.

Usually 4 or 8 byte in size.

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

What is the CIR?

A

The current instruction register holds the instruction which is currently being decoded/executed after it is fetched from memory.

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

What is the ACC?

A

The accumulator is a register used to hold the data being worked on by the ALU/FPU or the result of the final calculation.

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

What is a bus?

A

An electronic pathway that components of the CPU use to communicate with each other and RAM.

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

State the 3 types of buses

A
  1. Control bus - carries control signals and command codes. From CU to other components or from CPU to RAM.
  2. Address bus - carries addresses from MAR and RAM to indicate which address will be used to read from/write data into. Unidirectional.
  3. Data bus - carries data and instructions. E.g. carries data written from MDR to RAM or vice versa. Bidirectional.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Explain an example of the value 50 being written into location ‘10’ in RAM

A
  • The value 50 is carried from the MDR to the RAM via a data bus
  • The value 10 is carried from the MAR to the RAM via an address bus
  • A write signal is sent from the CPU to the RAM via a control bus
17
Q

What is the fetch-decode-execute cycle?

A

Also known as the stored program concept or the Von Neumann model, it is a cycle that computers follow to run programs.
Fetch - instruction is fetched from RAM to CPU
Decode - instruction is sent from CIR to be decoded by CU to determine what type of instruction it is
Execute - instruction is executed. Usually performed by ALU. Often includes storing results.

18
Q

Breakdown of fetch stage

A
  1. The PC contains the address of the next instruction. Instructions are fetched 1 at a time.
  2. The contents of the PC are copied to the MAR
  3. The PC is incremented by 1, so that it still points to the next instruction
  4. Address bus carries the value from MAR to RAM
  5. The control bus sends a read signal to RAM
  6. Data bus carries contents of desired RAM address from RAM to MDR
  7. Contents of MDR are copied to CIR, ready to be decoded
19
Q

What 4 things affect CPU speed?

A
  1. Clock speed - clock refers to a pulse/signal used to synchronize processes occurring within the computer. Clock speed is measured in mega/gigahertz and refers to the number of ticks/second. Determines how many cycles a CPU can perform each second. Higher clock speed = more heat and energy generated/used.
  2. Cores - a processor within a CPU. 2 cores allows a CPU to work on to instructions simultaneously. Modern CPUs have 2-16 cores. Having multiple cores doesn’t always mean better performance, as some software only work with one core, while the others remain idle.
  3. Instruction sets - different processors have different machine code instructions, some more efficient than others, therefore making some processors faster.
  4. Cache memory - small amounts of very fast temporary/volatile memory located in the CPU. Used to store frequently accessed data to allow faster access to it without having to go to RAM. Greater cache size = more data it can store = fewer requests to RAM = faster CPU performance.
20
Q

What does the speed of the CPU affect?

A

The speed at which the CPU can perform FDE cycles affects its performance.
More cycles completed each second = program running faster

21
Q

What is an instruction set?

A

The list of instructions that a CPU can process. When written in binary, it is known as machine code.

22
Q

What is an embedded system?

A

A specialized computer system/single microprocessor that performs a single, dedicated function inside another device/appliance (e.g. security system).
Also known as dedicated system.
Limited functionaility but have some advantage over general computers such as : cheaper, increased reliability, simple interface.

23
Q

What does the CPU do when it tries to read data from a memory location?

A

It will first check if it exists in cache memory. If it does, it will access the data from there. If the data does not exist there, it will be accessed from the comparatively slower RAM.