1.1.1 Structure And Function Of The Processor Flashcards
What is the CPUs function?
The CPU is responsible for processing all the data within the computer
What are the components of the CPU?
The CPU consists of :
ALU
CU
Registers:
- PC
- MDR
- MAR
- ACC
- CIR
What are (special) registers ?
-Small fast memory cells used for (temporarily) storing data, within the processor.
-They have faster access speeds than RAM/secondary storage.
What is the Purpose of the ALU ?
Performs any arithmetical or logical operations.
E.g adding binary or using AND, OR, NOT
What is the purpose of the CU ?
- Accepts the next instruction.
- decodes instructions [1]
- Sends control signals to coordinate the movement of data through the processor [1]
Program counter (PC)
- Holds the address of the next instruction to be executed. [1]
- is incremented by 1 on every cycle [1]
- contents of the PC can be changed by BRANCH/JUMP instructions
Accumulator (ACC)
- temporarily Stores the result of calculations ( usually from the ALU ) [2]
- holds all input/Output in processor [1]
- used as a buffer [1]
- checked for conditional branching [1]
Memory address register (MAR)
- Hold the address of a location from which data/ instructions is to be fetched from of written to. [2]
- holds the address of the instruction sent from the PC [2]
Memory data register (MDR)
- Temporarily stores data/instructions that has been read or data that needs to be written. [1]
- acts as a buffer [1]
Current instruction register (CIR)
Holds the current instruction being executed divided up into operand and opcode
Bi-directional
Bits can be carried in both directions
What are BUSES?
- are a set of Parallel wires which connect 2 or more components inside the CPU.
- there are 3 buses which connect the CPU with the main memory (RAM) :
The Data bus , address bus and control bus - collectively known as the system bus
Address bus
- Used to transmit memory addresses specifying where data is to be sent or retrieved from.
- adding a wire to the address bus doubles the number of addressable locations .
Control bus
- this is a bi directional bus
- transmits control signals from the CU to other parts of the processor (to allow synchronisation of signals to the rest of the processor) [1]
- control signals include:
Bus grants
Bus requests
Memory write
Memory read
Interrupt requests
Clock
Assembly language
- Assembly code uses mnemonics to represent instrucions e.g ADD represents addition
- it is a simplified way of representing machine code
- the instruction is divided up into operand and opcode