1.1.1 Structure and function of the processor Flashcards
Function of an ALU
Performs all the mathematical and logical calculations.
Function of an Accumulator
Stores the intermediate results performed by the ALU.
Function of a program counter
Holds the address of the current instruction to be executed.
Function of an MAR
Holds the address of a location that is to be read or written from.
Function of an MDR
Stores the data that has been read or need to be written to.
Function of an CIR
Holds the current instruction being executed and splits it into operand and opcode.
What is a Control Bus?
Bi-directional bus that transmits Control signals between components.
What is a Data Bus?
Bi-directional bus that transports data and instructions between components.
What is a Address Bus?
Transmit memory addresses specifying where the data should be sent or retrieved from.
Describe the FDE Cycle
1) Address from PC gets copied into the MAR
2) Instruction from this address gets copied into MDR
3) PC is incremented by 1
4) Data from MDR copied into CIR
5) Data in CIR is split into opcode and operand
6) Instruction gets executed
What are the 3 factors that affects CPU performance?
- Clock Speed
- Number of Cores
- Amount of Cache
How can Clock Speed affect CPU performance?
Clock Speed is the number of FDE Cycles that can be done per second. The higher the Clock Speed the more instructions executed each second.
How can Number of Cores affect CPU performance?
More cores means each core can do different tasks simultaneously. Therefore improves CPU performance as you can execute lots of instructions at once.
How can Amount of Cache affect CPU performance?
- Cache is a fast memory that stores frequently used data. Meaning when the data is needed, CPU won’t have to fetch it from main memory which is much more faster.
What is Pipelining?
Where Instruction is being fetched, Decoded and executed at the same time simultaneously. Branching occurs where useless information is fetched by the CPU, we will need to flush the pipeline then.