1.1 structure and function of the CPU Flashcards

1
Q

what is the ALU and what is its job?

A

the arithmetic logic unit, this carries out calculations and logical decisions.

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

what is the control unit and what is its job?

A

The control unit sends out signals to co-ordinate the processor. Controls how the data moves around parts of the CPU and how it moves between CPU and memory.

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

what are buses?

A

buses are a pathway for electrical signals to travel on.

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

what is a register?

A

a register is a memory location inside the processor that can hold one instruction.

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

what kind of registers are there?

A
  • program counter
  • accumulator
  • memory data register
  • memory address register
  • current instruction register.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is a program counter?

A

a program counter is a register that keeps track of the line of code being executed. It gets incremented to point to the next instruction, with each cycle of the FDE cycle, allowing the program to be ran line by line.

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

what is an accumulator?

A

an accumulator is a register that

stores the results of the calculations made by the ALU.

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

what is a MDR?

A

MDR is a memory data register and it stores the data that has been fetched from or stored in memory.

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

what is a MAR?

A

MAR is a memory address register and it stores the address of the data or instructions that are to be fetched or sent.

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

what is a CIR?

A

CIR is a current instruction register and it stores the most recently fetched instruction waiting to be decoded and executed.

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

what is machine code?

A

Machine code is binary instruction and is split into OPCODE and data it is very effective as it means the computer has to do less work to carry out the instruction but not user friendly.

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

what is assembly code?

A

Assembly code is one above machine code and allows the programmer to read/write code easier. The mnemonic for the op code is three letters.

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

what are high level languages?

A

High level languages like python is easiest for coding as it is easy to understand and read.

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

what is the FDE cycle/

A

FDE- fetch, decode, execute.

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

what is a clock cycle?

A

A single clock cycle is a complete FDE cycle.

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

what is clock speed measured in?

A

Clock speed is measured in hertz.

17
Q

what is the advantage of having a faster clock speed?

A

The greater clock speed the more calculations can be carried out per second.

18
Q

what is cache?

A

Cache memory is a special type of fast memory used for instructions and data likely to be needed by the processor.

19
Q

what are the three levels of cache memory?

A

Three levels of cache memory are L1, L2 and L3.

L1 being the smallest and L3 being the biggest but furthest away from processor.

L3 is a shared cache between multiple cores.

20
Q

what are the limitations of cache?

A
  • it is very expensive.
  • Must be physically small to fit onto the chip.
  • Performance decreases as memory size increases.
21
Q

why do processors usually have more than one core?

A

it becomes increasingly harder to improve clock speed so manufacturers increase the number of cores on a chip, more cores means the more data processed at the same time.

22
Q

what is the disadvantage of multi core processors?

A

having more than one core, for example quad core, this does not mean the data is processed four times as fast as not all processes can be split down into multiple cores.

23
Q

what is the John Von Neuman architecture?

A

In the john von Neumann architecture the programs and data is held in the memory; the processor and memory are separate and the data moves between the two.

24
Q

what is the Von Neuman bottleneck?

A

The bottle neck is caused by the processor being so fast that it processes data faster than the memory can transfer it so the CPU is left idle longer the faster it is.

25
Q

what is the Harvard architecture and how does it get rid of the bottle neck?

A

The Harvard architecture has two separate buses to the data and memory, this gets rid of the bottle neck as having two separate buses to instructions and the data memory gets rid of the delay of having the CPU idle waiting for the data.

26
Q

what is a microprocessor?

A

A dedicated processor for carrying a specific, narrow or constrained task.

27
Q

what is a SoC?

A

A SoC (system on chip) is a integrated circuit that has all components of a computer or other electronic system on a single chip.

28
Q

what is pipelining?

A

loading the next instruction while the last one is being processed. it only works if the next instruction can be predicted.