How do the registers help in instruction execution, Computer Engineering

Assignment Help:

Q. How do the registers help in instruction execution?

We will discuss this in following steps:

Step 1:

First step of instruction execution is to fetch instruction which is to be executed. To do so we need:

  • Address of 'instruction to be fetched'. Generally Program counter (PC) register stores this information.
  • Now this address is converted to physical machine address and put on address bus with help of a buffer register sometimes termed as Memory Address Register (MAR).
  • This coupled with a request from CU for reading, fetches instruction on the data bus and transfers instruction to Instruction Register (IR).
  • On the completion of fetch PC is incremented to point to subsequent instruction.

In Step 2:

  • The IR is decoded.Let's presume that Instruction Register comprises an instruction ADD Memory location B with general purpose register R1 and store result in R1 then CU will first instruct to:
  • Get data of memory location B to buffer register for data (DR) employing buffer address register (MAR) by issuing Memory read operation.
  • This data can be stored in a general purpose register if so required let's say R2
  • Now ALU will perform addition of R1 and R2 under the command of CU and the result will be put back in R1. The status of ALUoperation for illustration result in nonzero/zero, overflow/no overflow etc. is recorded in status register.
  • In the same way the other instructions are fetched and executed by using ALU and register under control of the CU.

So for explaining instruction execution we should explain the registers layout and micro-operations, ALU design and lately the control unit organization.


Related Discussions:- How do the registers help in instruction execution

Interrupt handling - computer architecture, Interrupt handling: Handlin...

Interrupt handling: Handling Interrupts  Several  situations where the processor should avoid interrupt requests Interrupt-enable Interrupt-disable  Typical

Processing elements (pes) -array processing, Processing elements (PEs)  : E...

Processing elements (PEs)  : Every processing element consists of ALU, local memory and its registers  for storage of distributed data. This PEs has been interconnected via an inte

Algorithms, Data array A has data series from 1,000,000 to 1 with step size...

Data array A has data series from 1,000,000 to 1 with step size 1, which is in perfect decreasing order. Data array B has data series from 1 to 1,000,000, which is in random order.

How read and write is performed using sockets, How read and write is perfor...

How read and write is performed using sockets? An application program interface gives the details of how can an application program interacts along with protocol software. But

What is database integration, What is database integration? Database in...

What is database integration? Database integration is the ability to give user-friendly and cost-effective software solutions for data infrastructure management by the interfac

Illustarte basic flip-flops, Q. Illustarte Basic Flip-flops? Let's firs...

Q. Illustarte Basic Flip-flops? Let's first see a ordinary latch. A latch or flip-flop can be created employing two NOR or NAND gates. Figure (a) presents logic diagram for S-R

Determine the method for updating the main memory, The method for updating ...

The method for updating the main memory as soon as a word is removed from the Cache is known as  (A) Write-through                  (B) write-back   (C) protected write

Enginering mechanics, if 2 forces are equal at an angle alpha between them...

if 2 forces are equal at an angle alpha between them - its resultant R and its direction

Write a program to event advertised, A museum has a collection of old poste...

A museum has a collection of old posters advertising events of various kinds (theatre, sport, fairs, lectures etc.). It wishes to keep a record of these, containing, for each poste

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