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
Fetch
. Pc holds address of next instruction
. Address stored is copied to MAR
. Sent along address bus to main memory where it waits to receive signal from control bus
. CU sends a read signal to main memory
. Contents stored can now be sent along data bus to MDR
. Data received by the MDR gets copied into CIR
. PC is incremented so it points to next instruction to be executed
Decode
. Opcode is what we need to do
. Operand is where data is or the data itself
. Control unit will decode the instruction in the CIR
Execute
. Send address down address bus to main memory
. CU sends read signal to main memory
. Co tents stored can now be sent to MDR
. Contents of MDR are now copied to the ACC
Assembly language
. Low level language
. Each instruction represents a machine code instruction so that means much longer programs than high level language
. Uses mnemonics
. To translate into machine code, use an assembler
Number of cores
. Dual core processor increases the number of cores making it faster because more FDE cycles can run at once
. A processor will often have multiple linked processors on the same circuit
Multi tasking
. Where each core can process two different instructions at once
Word size
. A natural unit of data used by a particular processor design
. A word is a fixed sized piece of data handled as a unit by the instruction set or hardware of the processor
. Each word in memory has its own specific address
Pipelining
. Allowed us to do multiple parts of FDE cycle at once. As one instruction is executed, the next can be decoded, the next can be fetched, and this reduces processing time
Pipelining: branching
. Pipelining only works if cpu knows what instructions needs to be fetched next
. If it fails to correctly forecast the instruction, entire pipeline needs to be flushed