Show the steps of execution of instructions, Computer Engineering

Assignment Help:

Q. Show the steps of execution of instructions?

Fetch First Instruction into CPU:

Step 1: Find/calculate the address of first instruction in memory. In this machine illustration next instruction address is contained in PC register. It comprises 1 that is the address of first instruction to be executed. (Figure above part a).

Step 2: Bring binary instruction to IR register. This stage requires:

  • Passing content of PC to Memory Address Registers so that instruction pointed to by PC is obtained i.e. location 1's content is fetched.
  • CPU concerns 'Memory read' operation so brings contents of location pointed by MAR (1 in this particular case) to MBR register.
  • Content of MBR is transferred to IR and PC is incremented to point to subsequent instruction in sequence (2 in this particular case).

Execute the Instruction

Step 3: IR has instruction LOAD A that is decoded like 'Load the content of address A in the accumulator register'.

Step 4: Address of operand which is 13 i.e. A is transferred to MAR register.

Step 5: Content of memory location (signified by MAR which is location 13) is transferred to MBR.

Step 6: Content of MBR is transferred to Accumulator Register.

So the accumulator register is loaded with content of location A that is 5. Now the instruction 1 execution is finished and the subsequent instruction which is 2 (specified by PC) is obtained and PC is incremented to 3. This instruction is ADD B that instructs CPU to add the contents of memory location B to accumulator. On execution of this instruction accumulator will comprise sum of its earlier value which is A and value stored in memory location B.

On execution of instruction at memory location 3 Program Counter becomes 4 and the accumulator results are stored in location C which is 15 and IR still comprises the third instruction. This condition is displayed in figure above part(C).

Please remember that execution of the instructions in above illustration is very simple and needs only data transfer and data processing operations in every instruction. Also these instructions need one memory reference at the time of its execution.


Related Discussions:- Show the steps of execution of instructions

What is meant by questionnaires, What is meant by Questionnaires This ...

What is meant by Questionnaires This includes sending out questionnaires to the work force or/and to customers to find out their views of existing system and to find out how.

Pebble merchant, There is a pebble merchant.He sells the pebbles,that are u...

There is a pebble merchant.He sells the pebbles,that are used for shining the floor.His main duty is to take length of the room''s sides. program 1 : package test.padovanstring

Mobile cameras, Mobile cameras are characteristically low-resolution Digita...

Mobile cameras are characteristically low-resolution Digital cameras integrated in mobile set. Photographs are characteristically only good enough to show on low resolution mobile

What is virtual memory, Virtual Memory is a way of extending a computer's m...

Virtual Memory is a way of extending a computer's memory by using a disk file to replicate add'l memory space. The OS remain track of these add'l memory addresses on the hard disk

The concept of process-parallel computing, The Concept of Process Infor...

The Concept of Process Informally, a method is a program in execution, behind the program has been loaded in the main memory. However, a method is more than just a program code

Scsi bus - computer architecture, SCSI Bus:   Defined by ANSI - X3....

SCSI Bus:   Defined by ANSI - X3.131   50, 68 or 80 pins   Max. transfer rate - 160 MB/s, 320 MB/s. SCSI Bus Signals   Small Computer System Interface

Perform the subtraction using 1's complement, Perform the subtraction using...

Perform the subtraction using 1's complement of 11001 - 10110 Ans. 11001 - 10110 = X - Y                            X = 11001 1's complement of Y = 01001

Evidence of intelligent behavior - artificial intelligence, Evidence of int...

Evidence of intelligent behavior - Artificial Intelligence: Machines mean they could simply be personal computers, or they could be robots with embedded automative systems, or

Give the example of spreadsheet, Give the example of Spreadsheet By sel...

Give the example of Spreadsheet By selecting cell C1 and dragging the formula down to C5 the below formulae will be replicated in C2 to C5: (A2*B2), (A3*B3), (A4*B4) and (A5*B5

Program which take input two images by homography, The goal of this questio...

The goal of this question is to create a program that takes as input two images that are related by a homography, and which "warps" the second image (piscine2.bmp) to align with th

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd