1.1.1a/b - The CPU & Fetch, Decode, Execute Cycle Flashcards
The Control unit
Directs the flow of data and information into the CPU. Additionally, it controls other parts of the CPU.
Arithmetic and Logic Unit
(ALU)
It performs simple calculations and logical operations. Additionally acts as a ‘revolving door’ for data going into and out of the CPU.
Registers
The registers and temporary storage spaces for data and instructions in the CPU. The registers are used during the FDE Cycle.
Program Counter
(PC)
A register that tracks the RAM address of the next instruction to be fetched.
Memory Address Register
(MAR)
A register that tracks the RAM address of data that is currently being accessed.
Memory Data Register
(MDR)
A register that stores the data that is transferred from the RAM to the CPU.
Current Instruction Register
(CIR)
A register that stores the information that has been fetched from RAM, and is about to be decoded or executed.
Accumulator
(ACC)
The ACC stores the results of executions performed in the FDE cycle.
Explain the process of the FDE cycle
(7 Points)
- The Program Counter (PC) register displays the address in RAM of the next instruction to be processed.
- The PC register is increased by 1. This prepares the CPU for the next instruction to be fetched.
- The CPU checks the address in RAM which matches the address held in the MAR.
- The instruction in RAM is transferred to the Memory Data Register (MDR).
- The instruction in the MDR is copied into the Current Instruction Register (CIR).
- The instruction in the CIR is decoded and executed. Any result of and execution is stored in the Accumulator (ACC).
- The cycle repeats by returning to the first step and checking the program counter for the address of the next instruction.
Address Bus
Sends a memory address of where data is stored. The address is sent from the CPU to the RAM during the FDE cycle.
Data bus
Transfers data between components. Data is sent both ways.
Control bus
Sends control signals from the control unit to other components of the system. Status signals are sent back to the CPU.
State the function of the opcode and operand
The opcode specifies the instruction to be
performed and the addressing mode. The
operand holds a value which is related to the
data on which the instruction is to be
performed.
Instruction set
The possible number of instructions that the CPU can understand and decode