Sequence of micro -operations to perform a specific function, Computer Engineering

Assignment Help:

Q. Sequence of micro -operations to perform a specific function?

A digital system executes a sequence of micro-operations on data stored in registers or memory. Specific sequence of micro-operations performed is predetermined for an instruction. So an instruction is a binary code specifying a definite sequence of micro-operations to perform a specific function.

For illustration a C program instruction sum = sum + 7 will first be converted to equivalent assembly program:

  • Move data from memory location 'sum' to register R1 (LOAD R1, sum)
  • Add an immediate operand to register (R1) and store the results in R1

(ADD R1, 7)

  • Store data from R1 register to memory location 'sum' (STORE sum, R1).

So several machine instructions may be required (this will differ from machine to machine) to execute a simple C statement. However how will every one of these machine statements be executed with the help of micro-operations? Let's try to explain the execution steps:

  • Fetch instructions.
  • Pass address of Program Counter (PC) to Memory Address Register (MAR).
  • Issue the memory read operation to fetch instruction in Buffer Register for data like (MBR).
  • Increment Program Counter to refer to subsequent instruction in sequence and bring instruction to Instruction Register (IR).
  • Execute instruction
  • Decode instruction to ascertain operation.
  • As one of the operands is already available in R1 register and second operand is an immediate operand thus fetch operand step is not needed. The immediate operand is available in address part of instruction.
  • Perform ALU based addition with R1 and buffer register store result in R1.

So we may have to execute instruction in several steps. For later discussion, for simplicity let's presume that every micro-operation can be completed in one clock period though some micro-operations need memory write/read which may take more time.


Related Discussions:- Sequence of micro -operations to perform a specific function

Equivalence between vhdl and c, Equivalence between VHDL and C? There i...

Equivalence between VHDL and C? There is concept of understanding in C there is structure.Based upon requirement structure provide facility to store collection of various data

Write a cgi program that prints date and time, Write a CGI program that pri...

Write a CGI program that prints date and time at which it was run. #!/bin/sh # # CGI script that prints the date and time at which it was run # # Output the documen

Two ways of converting a two input nand gate to an inverter, 1)      Short ...

1)      Short both I/Ps of NAND gate & use the gate as an inverter. 2)      Connect any one of the two I/Ps to VCC & use the remaining I/P & use the gate as an inverter.

Categorized the optimization transformations, Categorized Optimization tr...

Categorized Optimization transformations The structure of program and the way in that data is defined and used in this provide vital clues for optimization. Optimization t

What is the advantage of buffering, What is the advantage of buffering? Is ...

What is the advantage of buffering? Is buffering always effective? Justify your answer with help of an example. I/O buffer: One type of input-output requirement arises from d

Convert the binary number to gray code, Convert the binary number 10110 to ...

Convert the binary number 10110 to Gray code ? Ans. For changing binary number 10110 in its equivalent Gray code the rules are as, the left most bit that is MSB in Gray code is 1

First-order logic - artificial intelligence, First-Order Logic We, as h...

First-Order Logic We, as humans, have always prided ourselves on our ability to think things through for this reason things are out and come to the only conclusion possible in

What is the main problem with segmentation, What is the main problem with s...

What is the main problem with segmentation? Problem with segmentation (i) Is with paging, such mapping needs two memory references per logical address that slows down the

Computer Architecture, As an advocate of CISC architecture to RISC architec...

As an advocate of CISC architecture to RISC architecture, what are the merits and demerits of CISC to RISC architecture

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