1.1 Processors Flashcards
CPU; FDE cycle; Factors affecting CPU performance; Pipeling; Von Neumann and Harvard architectures; CISC and RISC; GPUs; Multicore and parallel systems; I/O devices; RAM and ROM; Storage devices; Virtual storage
What does CPU stand for?
Central Processing Unit
What is the CPU?
Internal piece of hardware responsible for executing/processing instructions of programs
What does CU stand for?
Control Unit
What does the CU do?
Coordinates/synchronises activities of the CPU
Organises sequence in which program instructions are executed
Directs flow of data between CPU and other devices
Deals with inputs and outputs to the CPU
What does ALU stand for?
Arithmetic Logic Unit
What does the ALU do?
Arithmetic: complete arithmetic operations (+, -, *, /)
Logical: completes logical operations (==, >, <, !=)
What are registers?
Small memory locations inside the processor
What do registers do?
Store values/data temporarily to allow CPU fast access
What do general-purpose registers do?
Used to keep the results of intermediate calculations produced as part of a larger computation
What are dedicated registers?
Processor-based registers used for specific purpose
What are some examples of dedicated registers?
MAR
PC
ACC
MDR
CIR
What does MAR stand for?
Memory Address Register
What does the MAR do?
Stores the address of the memory location from which data/instructions are going to be fetched/written
What does PC stand for?
Program Counter
What does the PC do?
Stores address of the next instruction to be executed
What does ACC stand for?
Accumulator
What does the ACC do?
Holds results of calculations made by ALU
What does MDR stand for?
Memory Data Register
What does the MDR do?
Stores data being read from or being written to the RAM
What does CIR stand for?
Current Instruction Register
What does the CIR do?
Stores the instruction currently being executed
Stores data while it’s being decoded
What is data split into?
Opcode
Operand
What are buses?
Series of wires connecting the processor to the main memory and input/output devices
What are buses used for?
Transferring data between CPU and main memory
How many devices can send signals on a bus at one time?
One
What are the three types of buses?
Address
Data
Control
What is the address bus used for?
Transfers address to read data from or write data to between MAR and main memory
Is the address bus bidirectional or one direction?
One direction between CPU to RAM
What does the control bus do?
Transfers a read/write signal from CU to main memory
Is the control bus bidirectional or one direction?
Bidirectional
What does the data bus do?
Transfer data between main memory and the CPU
Is the data bus bidirectional or one direction?
Bidirectional
What is main memory?
Where programs and data are stored while waiting to be processed
What happens in the fetch stage of the FDE cycle?
The PC holds the address of the next instruction to be used
This address is copied into the MAR
The contents of the PC are incremented
The data found in the address in the MAR is copied to the MDR
The contents of the MDR are copied to the CIR
What happens in the decode stage of the FDE cycle?
The contents of the CIR are divided into the binary code for the operation to be carried out and probably the address of the data that will be used by the program
The CU then interprets the operation code so that the processor knows what to do next
What happens in the execute stage of the FDE cycle?
The address part of the instruction is copied from the CIR to the MAR
The data is used
What factors affect the performance of the CPU?
Number of cores
Size of registers
Size of RAM
Clock speed
Width of data bus
Cache
Word length/size
How does the number of cores affect the performance of the CPU?
Processor can have many processors/cores on a single chip, meaning that more than one instruction can be executed at one time
Why might there be delays on a core?
It requires a task on another core to be completed before continuing
What is parallel procesing?
Organising a task and sending the appropriate data and instructions to the appropriate core
How does the size of the registers affect the performance of the CPU?
Size determines the amount of data with which the computer can work at one time
How does the size of RAM affect the performance of the CPU?
More RAM, more programs and data can be held in memory
RAM is faster than a storage disk
If there isn’t enough memory, PC must move data between RAM and hard disk frequently, which is slow
What is clock speed?
Number of cycles per second
What is clock speed measured in?
Hertz
How does clock speed affect the performance of the CPU?
Faster the clock speed, the more instructions can be executed per second
What is the width of the data bus?
Number of parallel wires running between CPU and main memory
What does the width of the data bus determine?
How many bits can be transmitted between CPU and other devices
How does the width of the data bus affect the performance of the CPU?
Wider the bus, the more bits can be transferred at once, the fewer number of fetches needed
What else about the data bus affects the performance of the CPU?
The speed of the data transfer
What is cache?
High speed memory holding most recent data and instructions loaded by the CPU
Where is cache located?
Directly on the CPU so there’s faster access to them compared to RAM
How does cache affect the performance of the CPU?
The more cache, the fewer numbers of fetches
What is L1 cache?
Part of the circuitry of each core
Smallest and fastest
What is L2 cache?
Shared by cores
Slower and larger than L1
What is L3 cache?
Sits on or near the processor on the motherboard
Slower and larger than L2