structure and functions of processors Flashcards
CPU components
CU, buses, ALU, registers
control unit (CU)
coordinates the activity of all other components
bus
consists of a series of connectors that transfer signals between internal components
system bus
consists of the control,address and data bus
control bus
carries control signals
address bus
carries memory addresses
data bus
carries data
control signals (list)
memory read, memory write, bus request, bus grant, clock
memory read
causes data from the addressed location in RAM to be placed on the data bus
memory write
causes data on the data bus to be written into the address location in RAM
bus request
indicates that a device is requesting use of the data bus
bus grant
indicates that the CPU has granted access to the data bus
clock
used to synchronise operations
arithmetic logic unit (ALU)
performs arithmetic, logical and shift operations
accumulator (Acc)
stores the result of the operation done in the ALU
registers
small amounts of memory in the CPU (therefore fast access) that store a specific piece of information
program counter (PC)
holds the memory address of the next instruction to be executed
current instruction register (CIR)
holds the current instruction, split into opcode and operand
memory address register (MAR)
holds the address in memory where the processor is required to fetch/store data from/to
memory data register (MDR)
holds the data moving between the processor and main memory
accumulator (Acc)
holds the results of the operation executed by the ALU
fetch steps (fetch-execute cycle)
- the address of the next instruction copied for the PC to the MAR
- the instruction held at the address in the MAR in copied to the MDR and the contents of PC are incremented to point to the next instruction
- the contents of the MDR are copied to the CIR
decode steps (fetch-execute cycle)
- the instruction held in the CIR is decoded
- it is split into operand and opcode to determine the type of instruction, additional required data is fetched from memory if required
- and passed to the accumulator
execute steps (fetch-execute cycle)
- the instruction executed and the result is held in the Acc or stored in memory
opcode
specifies the operation that is to be carried out
operand
address of data to be used (this is copied to the MAR) or data to be used (this is copied to the MDR)
words
equal units of memory each of which has a separate memory address
address bus width
determines the maximum possible memory address of the system
data bus direction
bi-directional
data bus width
the number of wires/lines it contains
machine code instruction format
opcode (basic machine operation + addressing mode) + operand
how clock speed affects cpu perfromance
the faster the clock speed the more instructions are fetched, decoded and executed faster
system clock
a series of regular on/off signals used to synchronise the operations of the processor components
rising edge
actions are usually carried out on the rising edge of the clock
factors affecting CPU performance
clock speed, cache size and type, number of cores
how number of cores affects cpu performance
each core is theoretically able to process a different instruction at once
parallel procesing
using several processor cores working at the same time
cache
a small amount of memory on/near the processor (therefor very fast access) that stores data and instructions that have recently been used by the processor (levels 1&2 cache are held on the processor)
level 2 cache
larger but slower than level 1 cache
level 1 cache
split into instruction and data cache, data and instructions are fetched simultaneously
how cache affects cpu performanche
more cache reduces the likelihood of having to fetch from RAM therefore data can be fetched faster
pipelining
a technique used to improve performance by overlapping stages in the fetch-execute cycle or breaking down and overlapping the stages in arithmetic instruction
stored program concept
a program must be loaded to main memory to be executed
von neumann architecture - uses
PCs, laptops, servers, high performance computers