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

Explain fundamental models of inter process communication, Explain the two ...

Explain the two fundamental models of inter process communication. Two kinds of message passing system are given as: (a) Direct Communication : Along with direct communicat

Advantages and disadvantages of structured analysis, Advantages and Disadva...

Advantages and Disadvantages of Structured Analysis With time, you will find out that most customers understand structured methods better than object oriented (OO) methods. As

Explain error detection and correction codes, Q. Explain Error Detection an...

Q. Explain Error Detection and Correction Codes? Before we wind up data representation in reference of today's computers one should determine about code that helps in correctio

Intuitively simple - user friendliness, Intuitively Simple - User Friendlin...

Intuitively Simple - User Friendliness This is the degree to which the system operates in congruence with human operation, in effect the machine does what we naturally think i

State the example of begin end, State the Example of begin end module s...

State the Example of begin end module sequential(); reg a; initial begin $monitor ("‰g a = ‰b", $time, a); #10 a = 0; #11 a = 1; #12 a = 0; #13 a = 1; #

Testing project, Design and test the functions that are needed: a.  Test...

Design and test the functions that are needed: a.  Test Main  in the Testing project add a new file main.c. b.  Test Drivers  in the Testing project add 2 new files, testDriver

Storing a word in memory - computer architecture, Storing a word in Memory:...

Storing a word in Memory: That is similar process with fetching a word from memory. The required address is loaded into the MAR After that data to be written are lo

Analog to Digital convertor, The A/D converter whose conversion time is ind...

The A/D converter whose conversion time is independent of the number of bits is ? Ans. Parallel conversion is the A/D converter whose conversion time is independent of the Numbe

What is interpreter, Q. What is interpreter? An interpreter translates ...

Q. What is interpreter? An interpreter translates each high-level-language statement into its equivalent set of machine-language instructions, which are then executed right awa

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