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 statements is incorrect?
Which among the following statements is incorrect about secondary memory?
Which among the following statements is incorrect?
________ holds address of the active memory location.
A computer system has a memory capacity of 4K x 8 bits. How many address lines are required on the address bus to identify every byte in this memory uniquely?
Which among the following is not a magnetic storage?
________ a high-speed device used in CPU that is utilised to store data temporarily during processing.
Which among the following is incorrect about cache memory?
One Exabyte is equal to ______.
Which of the following memory is volatile?
Which of the following needs to be refreshed to retain data even when power is on (electric current flows)?
Which of the following is NOT an external memory?