Fetch-Execute Cycle Flashcards
What is ‘Von Neumann Architecture’?
When program instructions and data are stored in the same memory. Memory is accessed via the same bus.
Summarise the Fetch-Execute Cycle
The Fetch-Execute Cycle consists of each instruction within a program being read one at a time into the CPU from program memory and then decoded and performed.
What 3 main components are part of the Fetch-Execute Cycle?
The CPU, Memory and Buses.
What is meant by ‘Fetch’?
Read the ‘next’ instruction from memory. The ‘next’ instruction is determined by the Program Counter.
What is meant by ‘Decode’?
Make sense of what needs to be done.
What is meant by ‘Execute’?
Do the task, such as arithmetic, storing, making decisions, etc.
What is the Program Counter?
The Program Counter holds the address of the next instruction to fetch. Each value in the Program Counter represents an address.
What is the Instruction Register?
The Instruction Registry holds the current instruction being decoded. It is where it is interpreted by the decoder component of the Control Unit.
What is the Arithmetic and Logic Unit?
The ALU performs all the arithmetic needed for operations.
What are General Registers?
A very fast but expensive way to store data.
What is the Memory Address Register (MAR)?
The MAR holds the address of the current instruction that is to be fetched from memory, or the address of where data is to be transferred.
What is the Memory Data Register? (MDR)
The MDR holds the contents found at the address held in the MAR, or data that is to be transferred to primary storage. Where values/instructions are stored before they are used by the CPU.
Describe the Fetch-Decode-Execute Cycle
What is the Opcode?
What do we need to do. The Opcode is a part of an instruction that tells the CPU what should be done. It includes the data to be acted on, or the memory location of the data in a register.
What is the Operand?
What do we need to do it to. Either the value that the instruction uses or manipulates, or the address where that data is found.