1.1.1 Structure and Function of the Processor

0.0(0)
studied byStudied by 7 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/60

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

61 Terms

1
New cards

What are the 7 internal structures of the CPU?

  • Control unit

  • Program counter

  • Memory address/buffer register

  • Memory data register

  • Current instruction register

  • Arithmetic logic unit

  • Accumulator

2
New cards

What is the ALU responsible for?

Performing mathematical calculations and logical operations on data

3
New cards

What are the tasks of the ALU?

  • Performing addition, subtraction, multiplication, division

  • Performing logical bitwise operations, such as AND, OR, NOT, and XOR

  • Performing comparisons between values

  • Shifting binary patterns to the left or right

4
New cards

What is the Control Unit?

A component of the processor that directs the operations of the CPU

5
New cards

What are the jobs of the CU?

  • Controlling and coordinating the activities of the CPU

  • Managing the flow of data between the CPU and other devices

  • Accepting the next task, decoding tasks

  • Storing the resulting data back in memory

6
New cards

How does the CU work?

Uses control signals to enable data to be read from and written to memory

7
New cards

What is the CPU?

An electronic chip that fetches instructions from main memory, decodes them, executes them and produces an output

8
New cards

What is the Program Counter?

Holds the address of the location of the next instruction to be executed

9
New cards

What does the MAR do?

Temporarily holds the address of the memory location that is to be read from or written to

10
New cards

What does the MDR do?

Temporarily holds the data that has been read from or that needs to be written to main memory

11
New cards

What does the CIR do?

Holds the current instruction being executed - divided up into operand and opcode

12
New cards

What does the ACC do?

Stores the results from calculations performed by the ALU

13
New cards

What is a bus?

A set of parallel wires that connect two or more components

14
New cards

What are the 3 system buses?

  • Address bus

  • Data bus

  • Control bus

15
New cards

What does uni-directional mean?

Information flows in one direction - from the processor to main memory

16
New cards

What does bi-directional mean?

Information flows both ways

17
New cards

What buses are uni-directional?

Only the address bus

18
New cards

What buses are bi-directional?

Data and control bus

19
New cards

What needs to be done for a program’s intructions to be ready to be carried out?

  • Translated into machine code

  • Instructions have been loaded from secondary storage into main memory

20
New cards

What are external buses?

Connects the peripherals to the processor via serial or parallel connections

21
New cards

What is the purpose of the address bus?

Carries memory addresses that identify where the data is being read from and written to

22
New cards

What is the purpose of the data bus?

Transports data and instructions between components

23
New cards

What is the purpose of the control bus?

Carries command and control signals between internal and external components

24
New cards

What is an instruction set?

A collection of instructions that the CPU uses to carry out its tasks

25
New cards

What is assembly language?

Programming language that is written in a readable format

26
New cards

What is LMC?

Little Man Computer - A simplified instruction set

27
New cards

What are the 11 mnemonics in LMC and what is the translation?

  • ADD - Add

  • SUB - Subtract

  • STA - Store

  • LDA - Load

  • BRA - Branch Always

  • BRZ - Branch if zero

  • BRP - Branch if positive

  • INP - Input

  • OUT - Output

  • HLT - End program

  • DTA - Data Location

28
New cards

What are the 6 factors that can affect CPU performance?

  • Clock speed

  • Number of cores

  • Cache size

  • Size of RAM

  • GPU

  • Pipelining

29
New cards

What is clock speed?

Number of instructions a single processor core can carry out per second

30
New cards

What is a core?

A complete processing unit that has its own registers, ALU and CU

31
New cards

What is cache?

A small amount of fast RAM that stores regularly used data for fast CPU access

32
New cards

How does the clock speed affect CPU performance?

The greater the clock speed, the faster the CPU can run, resulting in more instructions being processed every second and programs take less time to run

33
New cards

What is a disadvantage of having a high clock speed and how can it be combatted?

Power is used with every clock tick, which generates heat. If overclocking occurs, the heat can damage the chip. A heat sink can be used

34
New cards

What is overclocking?

When the CPU is run faster that its normal design speed

35
New cards

How does having multiple cores affect CPU performance?

  • Multi-tasking - Multiple F-D-E cycles can be run at the same time on multiple cores

  • Parallel Processing - when a single task is split into two or more parts and each is processed at the same time

36
New cards

What is a dual-core?

A CPU with two cores

37
New cards

What is a quad-core?

A CPU with four cores

38
New cards

What is a disadvantage of increasing the number of cores?

Not all programs take advantage of multiple cores

39
New cards

How does increasing the cache size affect CPU performance?

  • Less retrieval from RAM - regularly used instructions will be retrieved from the cache at a faster rate

  • More space for data/instructions in cache memory

40
New cards

What is a disadvantage of increasing cache size?

Cache is more expensive than RAM

41
New cards

What are the 3 levels of cache?

  • Level 1 (L1) - Very fast but has the smallest capacity

  • Level 2 (L2) - Relatively fast with a medium-sized capacity

  • Level 3 (L3) - Slow but has the largest capacity

42
New cards

Where is L1 cache found?

Inside the CPU chip

43
New cards

Where is L2 and L3 cache found?

Inside or outside the CPU

44
New cards

What is RAM?

Random Access Memory - Main memory that is used to store computer programs and data currently in use

45
New cards

What happens if there is not enough RAM?

  • The computer will perform poorly - some applications may not load at all

  • Applications are swapped out to virtual memory

46
New cards

What is virtual memory?

  • An area set aside on the hard disk to act as very slow RAM

  • Stores some of the currently running programs and data if RAM is full

47
New cards

What is pipelining?

The process of fetching an instruction, whilst the prior one is being decoded and the one before that is being executed

48
New cards

What is instrucion pipelining?

Seperating out the instruction into fetching, decoding and executing

49
New cards

What is arithmetic pipeling?

Breaking down the arithmetic operations and overlapping them as they are performed

50
New cards

What is the fetch, decode, execute cycle?

The sequence of operations that are completed in order to execute an instruction

51
New cards

What is the fetch stage?

  1. Contents of the PC is copied into the MAR, which is connected to the address bus. The address of the next instruction to be executed is placed on the address bus

  2. CU instructs a memory read operation to allow the contents of the memory location to be transferred to the processor. Instruction stored at that address is transferred using the data bus from RAM to the processor, and is copied into the MDR

  3. Contents of the MDR is copied into the CIR and the PC is incremented by 1 simultaneously to hold the address of the next instruction

52
New cards

What is the decode phase?

CU decodes the instruction into operand and opcode in the CIR

53
New cards

What is the execute phase?

Instruction is executed

54
New cards

What is the Von Neumann Architecture?

  • The idea of storing program instructions and data in main memory and moving them between memory and the processor

  • Shared memory and shared data bus for both data and instructions

55
New cards

What does the Von Neumann Architecture include?

A single CU, ALU, registers and memory units

56
New cards

What are the issues with the Von Neumann Architecture?

  • Shared memory for data and programs is a security threat

  • Defective programs may fail to release the memory when finished using it

  • Von Neumann bottleneck

  • Bottlenecked data bus

57
New cards

What is the Harvard Architecture?

Physically seperates memories for instructions and data

58
New cards

What are the isseues with the Harvard Architecture?

  • More physical space needed

  • Complex to handle two seperate blocks of memory

  • Increases potential cost designs

59
New cards

What are the advantages of Von Neumann?

  • Cheaper to develop as the CU is easier to design

  • Programs can be optimised in size

60
New cards

What are the advantages of Harvard?

  • Quicker execution - data and inctructions can be fetched in parallel

  • Memories can be different sizes, which can make more efficient use of space

61
New cards

What is contemporary processing?

Uses both Harvard and Von Neumann Architecture.

  • Harvard for communication between CU and caches - divides cache into instruction cache and data cache

  • Von Neumann is used when working with data and instructions in main memory