Structure And Function Of Processor Flashcards
What is the CPU and what does it do
. Central processing unit
. Made up of switches
. Processes data, search, sorts, calculations
. Components: ALU, Registers, buses, control unit
RAM
. Random access memory
. Volatile
. Where all data files and programs are stored when being used- they are copied from secondary storage and deleted when closed
. Fasted than secondary but slower than cache
. Holds data being used currently
. Expensive
. Can have more programs open
Clock speed
. Processor runs to the timings of a clock signal. This is measured in hertz
. Overclocking is manipulating the clock speed to increase it but it can cause the computer to overheat
. Higher clock speed, more instructions can run per second
Cache
. Super fast primary storage
. Sits on the CPU and can’t hold much because it is so expensive
. Stores frequently or recently used instructions
Control unit
. Manages the execution of machine code by sending out the control signals to control how the cpu works
. Directs flow of data
. Synchronises instructions with clock speed
Control bus
. Bi directional
. Carries control signals around cpu
. Signals are generated by control unit
Data bus
. Bi directional
. Carries data and instructions between cpu and RAM
Address bus
. One directional
. Carries memory addresses from the processor to the RAM
. Can be the address of data that is being read or written
. Address is either used during fetch or execute part of the cycle
ALU
. Perform arithmetic and logical operations of data
. Shift operations, boolean logic, addition, subtract
. Contains the accumulator register where results of the calculations are stored
Registers
. Memory that operates at a very high speed, the same speed as the processor
. 4 or 8 bytes
. Volatile
. General purpose registers perform calculations
. Special purpose registers are essential for the cpu to work
Program counter
. Contains address of the next instruction executed
. Helps processor keep track of where it is in the program
. When address moves to MAR, PC is incremented to point to the address of the next instruction in the sequence
. Value incremented is calculated from size of instructions in the given instruction set
MAR
. Holds the address of the memory location from which an instruction or data is to be fetched or written
. If an instruction is being fetched then the pc and the MAR will hold the same value
. Can hold different address to pc
MDR
. Stores the data that is to be fetched from or written to RAM
CIR
. CIR stores instruction that is being executed
Operand- specifies the data that needs to be acted on
. Opcode- tells the processor the job that needs to be done
ACC
. Used to temporarily store data whilst calculations are being performed within the ALU