Which among the following registers in Instruction Cycle holds the last instruction fetched?
Instruction Register (IR)
The central processing unit (CPU) executes instructions by going through a cycle called the instruction cycle. This cycle typically involves fetching an instruction from memory, decoding it, and then executing it. Several key registers within the CPU play vital roles in managing this process. The question asks specifically which register holds the instruction that has just been fetched from memory.
Let's look at the roles of the registers mentioned in the options during the instruction cycle:
The fetch phase is the first step of the instruction cycle where the CPU retrieves an instruction from memory. Here's how the registers are involved:
From these steps, it is clear that the Instruction Register (IR) is the register that holds the instruction after it has been fetched from memory and is ready for the decode and execute phases.
| Register | Full Name | Purpose in Fetch Cycle | Holds Fetched Instruction? |
|---|---|---|---|
| PC | Program Counter | Holds address of the next instruction | No |
| MAR | Memory Address Register | Holds address of the instruction being fetched | No |
| MBR | Memory Buffer Register | Temporarily holds data/instruction read from memory | Temporarily, before moving to IR |
| IR | Instruction Register | Holds the fetched instruction for decoding/execution | Yes |
Based on their roles in the instruction cycle and the step-by-step fetch process, the register that specifically holds the last instruction fetched is the Instruction Register (IR).
| Register | Function |
|---|---|
| PC | Points to the address of the next instruction. |
| MAR | Holds the memory address for read/write operations. |
| MBR (or MDR) | Holds data/instruction being transferred to/from memory. |
| IR | Holds the instruction currently being processed. |
The instruction cycle is a fundamental process in computer architecture. Beyond the fetch phase, it includes:
Understanding how these registers interact throughout the entire instruction cycle is crucial for understanding CPU operation.
Which among the following is incorrect about cache memory?
Which among the following statements is incorrect about secondary memory?
Which among the following statements is incorrect?