Structure And Function Of Processor Flashcards

1
Q

What does the ALU do?

A

Performs calculations by receiving Opcodes and Operands. Executes instruction on opcode and outputs result to storage register

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

What components make up a modern processor?

A

CU, ALU and Registers

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

What are the types of registers?

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

What does the program counter do?

A
  • Contains address of the next instruction to be executed

- Increments when one instruction is read

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

What does the Accumulator Do?

A
  • Stores result of executions temporarily before being transferred to the memory?
  • Hold INP/out data currently being processed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of the Memory Address register?

A
  • Stores address of memory location currently in use
  • Allows communication with address bus
  • Output goes to address bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is they purpose of the MDR?

A
  • Stores data/instructions fetched from memory before use by processor
  • Buffer between CPU and memory unit. Makes it so data is written in one big go to the memory instead of writing the data individually. It makes it faster as you are only doing the slow write operation once rather than multiple times
  • Allows CPU to communicate with data bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the purpose of CIR?

A

Stores current instruction to be executed

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

What are the types of buses and what do they do?

A
  • Control bus = Used to communicate with other devices and components, carrying commands rom CPU + returning status signals
  • Data bus = carries information
  • Address bus = Carries memory address of data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the CU do?

A
  • Sends signals around the processor
  • determines how data is transferred between memory-CPU and between components of CPU.
  • Decodes instructions
  • clock is located in the CU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is cache Memory?

A

Small amount of RAM built into CPU. Stores info the CPU is most likely to need next. Faster than accessing RAM. Up to three levels (L1-L3 with L1 being smallest but fastest)

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

What is the clock rate?

A
  • Determines how fast instructions are executed
  • Each ‘tick’ begins when clock switches from 0 to 1
  • Ticks are directly proportional to speed
  • Measured in MHz or GHz
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What happens up in the fetch stage of the cycle?

A

-PC holds address of next instruction
-This address is copied to the MAR
-The contents of the address in the MAR are copied to the MDR
-contents of MDR copied to CIR
-PC is Incremented and process repeats
LOOK IN PHOTOS FOR DIAGRAM

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

What happens in the decode part of the cycle?

A
  • CU works out what instruction does
  • Checks against a set of instructions held in ROM
  • Each instruction had microcode
  • Microcode provides a step by step guide on how to perform instruction
  • Checks all necessary data is present
  • Pass instruction and data to schedule
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What happens in the schedule part of the cycle?

A
  • Decides which execute unit to send instruction to
  • Depends what type of instruction as to what one it’s passed to
  • Passes to execution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What happens in the execute part of the cycle?

A
  • Possibly several execution units working at once in parallel
  • Different types of execution units for different types of instruction: Floating point, Arithmetic unit, logic unit
  • Returns result from L1
  • Result sent to RAM/other appropriate location
17
Q

What is pipelining?

A
  • while one instruction is being executed the next is being decoded and the one after that is being fetched.
  • not always possible to accurately predict what instruction needs to be fetched and decoded next
18
Q

What does it mean to “flush out the pipes”?

A
  • an instruction, when executed, might branch to a different, random instruction. (Eg instruction 2 being executed results in branching to instruction 9)
  • flushing the pipes means removing existing instructions. So the instructions currently in the decode and fetch stage will be removed. Eg: four will be removed from fetch and three will be removed from decode
19
Q

What is a GPU?

A
  • specially designed processor to perform calculations with graphics
  • have instruction sets specially designed for the sorts of calculations required in graphics processing
  • use Single instruction multiple data (SIMD) because the same calculations often need to be carried out across multiple points on the screen
  • graphics cards contain fast GPU’s with their own memory
  • day to day PC’s will have GPU’s embedded onto the main processor
20
Q

What are GPU’s used for?

A
  • modelling physical systems
  • audio processing
  • breaking passwords
  • machine learning
  • gaming
  • rendering