1.1.1 Structure and function of the processor Flashcards

1
Q

ALU and its purpose

A

Arithmetic logic unit
Carries out the calculations and logical decisions.

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

CU and its purpose

A

Control unit sends out signals to coordinate how the processor works.

  1. Controls the way data moves around the CPU
  2. controls and monitor the flow of data between the CPU and other components, such as memory, input devices.
  3. It executes the instructions provided by the program.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Instruction set

A

The collection of instructions CU can carry out.
It is hard-wired into the CPU when it was designed.

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

Registers

A

Tiny areas of extreme fast memory located in the CPU designed for specific purpose.
Needed during processing.

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

PC

A

Program counter
Holds the address of the next instruction to be executed.

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

ACC

A

Accumulator
1.Stores the calculation result from the ALU.
2. I/O in processor - used as a buffer.

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

MAR

A

Memory address register
Holds the address of the memory location are to be read from or written to.

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

MDR

A

Memory data register
Holds the data that are to be read from or written to memory.

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

CIR

A

Current instruction register
Holds the current instruction being fetched, divided up into operand and opcode.

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

Buses (def.)

A

A set of parallel wires which connect components to send signals and data.

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

3 types of buses and function

A

Data bus - carries data between the processor and memory

Address bus - carries the address of the memory location being read from or written to.

Control bus - sends control signals from the control unit.

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

Describe the FDE cycle

A
  1. The contents in PC are copied to MAR
  2. The read signal is sent across the control bus and the contents of the MAR are sent across the address bus
  3. The contents of the memory location stored in the MAR are then sent across data bus and stored in the MDR
  4. The contents of the MDR are then copied to the CIR
  5. PC increment by 1
  6. The contents of the CIR are sent to CU to be decoded
  7. Execution according to the instructions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How clock speed affects CPU performance

A

The FDE process follows the clock speed. Faster clock speed allows more instructions to be performed per second.

But it can be overclocked. And it is limited to smaller problems.

To increase computer power - use newer and faster CPU

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

How number of cores affects CPU performance

A

Multicore can handle different tasks simultaneously, improving performance for multi-threading applications.

  1. This can speed up smaller problems but not enough for larger problems.
  2. if one core is waiting for another core to finish processing, performance may not be improved.
  3. Parallel processing isn’t suited to all problems.

Modern CPU has multiple cores that can operate independently.

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

Cache

A

A type of high-speed RAM built into processor, used to temporarily hold data and instructions that are likely to be regularly accessed.

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

How cache affects CPU performance

A

Cache memory is closer to the CPU than RAM, meaning it can provide data and instructions at aster rate.
Computer with more cache can store more repeated use data, less time the processor as to wait for the instructions.

Cache is costly, so most computers only have a small amount.

17
Q

Other approaches to improve the performance of computer

A
  1. Supercomputers can have multiple processors.
  2. GPUs can be applied to problems with graphical processing and form co-processor to do scientific calculation. (limited to highly parallelisable problems)
  3. Pipelining
18
Q

Pipelining

A

Pipelining allows one instruction to be fetched as the previous one is being decoded and the one before that is being executed.

limitation - Certain instructions may not be able to be executed until other instructions have been fetched and decoded

19
Q

Pipelining Q1

A

Exam Q - explain how pipelining would help a CPU execute the LMC code more quickly
Answer -
《Def of pipelining above + specific explain》 (e.g. LDA could be fetched while OUT is being decoded and INT is being execute.) (e.g. LDA can be fetched as there is no branch instructions/no flush to pipeline.)

20
Q

Pipelining Q2

A

Exam Q - descibe one issue BRP may cauese for pipelining
Answer - BRP could be followed by one of two possible instructions, which will only be determined after the line above is executed. Meaning the wrong one may be fetched.

21
Q

Features for Von Neumann Architecture
AO1/AO2/AO3

A
  1. Single CU
  2. Single ALU
  3. Instructions are executed in a linear sequence
  4. Data and instructions share a single memory and one set of data/address bus

=> less complex in design
=> development is cheaper - commonly used in general-purpose computer

=> Allows for dynamic allocation between instruction and data
=> Large programs with small data (games) or small programs with large data can be equally catered

22
Q

Features of Harvard Architecture

A
  1. Dual bus system
  2. Data and instructions are stored in separate memory spaces

=>Can read/write data and instructions simultaneously
=>Faster execution time
=>More complex as requires two sets of buses
=>expensive development

=>Split memory between instruction and data in a static way (less flexibility), meaning you could ran out of one memory with unused memory in the other area.

=>used in embedded systems and real-time applications - speed advantage & predictable performance