the journey of IAS

logistic_guy

Senior Member
Joined
Apr 17, 2024
Messages
1,639
On the IAS, describe in English the process that the CPU must undertake to read a value from memory and to write a value to memory in terms of what is put into the MAR, MBR, address bus, data bus, and control bus.
 
Before we talk about the journey of this IAS\displaystyle \text{IAS}, let us familiarize ourselves with some of the terms.

MBR\displaystyle \text{MBR} \rightarrow Memory Buffer Register

It can hold or store a word that can be either sent to or received from the memory or the I/O\displaystyle \text{I/O} unit.
 
MAR\displaystyle \text{MAR} \rightarrow Memory Address Register

It stores the memory address where the specified word will be written to or read from.
 
The address bus\displaystyle \text{address bus} carries memory locations.
 
The data bus\displaystyle \text{data bus} carries the data being processed.
 
The control bus\displaystyle \text{control bus} carries CPU\displaystyle \text{CPU} read/write signals and status signals.
 
The whole idea of this IAS\displaystyle \text{IAS} is to read from the memory or to write to the memory. It needs instructions to do that, and these instructions are done in cycles. So it performs these instruction cycles in a repeating manner.

These instruction cycles consist mainly of two sub cycles:

fetch\displaystyle \text{fetch} and execute\displaystyle \text{execute}
 
Step 1\displaystyle \text{Step} \ \bold{1}

The fetch\displaystyle \text{fetch} cycle starts. A signal is sent through the control bus\displaystyle \text{control bus} to read the address containing the opcode from the PC.
 
Step 2\displaystyle \text{Step} \ \bold{2}

The address with the opcode is transferred from the PC (Program Counter) to the MAR via the address bus.
 
Step 3\displaystyle \text{Step} \ \bold{3}

A signal is sent through the control bus\displaystyle \text{control bus} to read the content stored at the address in the MAR\displaystyle \text{MAR}. This content consists of the opcode and the address which together form an instruction.
 
Step 4\displaystyle \text{Step} \ \bold{4}

The content moves from the MAR\displaystyle \text{MAR} to the MBR\displaystyle \text{MBR} via the data bus.
 
Step 5\displaystyle \text{Step} \ \bold{5}

A signal is transmitted through the control bus\displaystyle \text{control bus} to transfer the leftmost 8\displaystyle 8 bits from the MBR\displaystyle \text{MBR} to the IR\displaystyle \text{IR} (Instruction Register).
 
Step 6\displaystyle \text{Step} \ \bold{6}

The opcode moves from the MBR\displaystyle \text{MBR} to the IR\displaystyle \text{IR} via the data bus\displaystyle \text{data bus}.
 
Top