Structure and role of the processor and its components Flashcards
What is the system clock?
A device that generates a timing signal which changes at a regular frequency.
What is the purpose of the system clock?
The signal is used to synchronise communication between the components of the processor and the rest of the computer system.
What is the fetch execute cycle?
A continuous cycle performed by the processor, consisting of three stages.
Fetch
Execute
Decode
What occurs in the fetch stage of the cycle?
The next instruction to execute is retrieved from main memory
What are the steps involved in the fetch cycle?
- The content of the PC is copied to the MAR
- The content of the MAR is transferred to main memory by the address bus
- The instruction is sent from main memory to the MBR by the data bus
- The PC is incremented by one
- The content of the MBR is copied to the CIR
What occurs in the decode stage?
The fetched instruction is decoded
What are the steps involved in the decode stage?
- The content of the CIR is decoded by the control unit
2. The decoded instruction is split into two parts: opcode and operand.
What is the opcode?
Specifies the operation to be carried out
What is the operand?
Data on which the operation is performed
What happens in the execute stage of the cycle?
Instruction is carried out in the execute stage of the cycle
What are the steps involved in the execute stage of the cycle?
- Any data required by the instruction that isn’t present in the registers is fetched
- The instruction is carried out
- Results of any calculations are stored in general purpose registers or main memory
What happens to the status register?
Between each execute stage and fetch stage of the cycle, the content of the status register is checked for changes that could signify the occurrence of an interrupt
What is a processor’s instruction set?
group of instructions it can carried out, each type of processor has its own instruction set.
Why might one instruction not be compatible with another processor?
Each type of processor has its own instruction set, so instructions for one processor may not be compatible with other processors.