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

Database management system, Consider the following instance of the Students...

Consider the following instance of the Students relation, sorted by gpa. sid name login age gpa 53831 Madayan madayan@music 11 1.8 53832 Guldu guldu@music 12 2.0 53688 Smith smith

Define the terms - spatial locality and temporal locality, Define the terms...

Define the terms : spatial locality and temporal locality. Spatial Locality:  The spatial aspect means that instructions in close proximity to a recently implemented instruct

Communications between the user and the server, Communications between the ...

Communications between the user and the server A significant enhancement was achieved when communications between the user and the server was sent in encrypted form and later

What is read only memory (rom) and define the use of it?, What is Read only...

What is Read only memory (ROM) and Define the Use of it? A simple kind of ROM can be constructed from a decoder, Or gates, and a number of wires. Input

Analysis of algorithms, Analysis of Algorithms For this task, each stu...

Analysis of Algorithms For this task, each student should do two things: An empirical analysis of the runtime and comparisons made for all algorithms as a function of input si

Function makestk-predicate function emptystk, 1. Create the following ADTs....

1. Create the following ADTs. (a) Write the constructor function makestk, predicate function emptystk and mutator functions pushstk and popstk: i. makestk returns a new stack

Data parallel model - parallel programming model, In the data parallel mode...

In the data parallel model, many of the parallel work focus on performing operations on a data set. The data set is usually organized into a common structure, such as an array or a

Computer graphics, what isAdvantages of scan line algorithm, Computer Graph...

what isAdvantages of scan line algorithm, Computer Graphics?

Show network topology in digital system, Q. Show Network Topology in digita...

Q. Show Network Topology in digital system? This deals with the geometrical arrangement of nodes (endpoints consisting of physical devices such as terminals, printers, PCs, and

Show the bus and memory transfers, Q. Show the Bus and Memory Transfers? ...

Q. Show the Bus and Memory Transfers? A digital computer has many registers and rather than connecting wires amid all registers to transfer information between them a common bu

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