1-5 Procedures for computer execution instructions

Source: Internet
Author: User

First, the main steps of a computer to execute an instruction

First step: Take a finger (fetch)

Step two: Decoding (Decode)

Step Three: Execute (EXECUTE)

Fourth step: Write Back (Write-back)

Ii. examples of execution directives

For example instruction: ADD R0, [6];

instruction function: Adding the data of register R0 and storage unit with address 6 and updating the result to R0

The first step: Take the finger

1. The controller sent the address of the instruction (the contents of the PC) to the memory

2. The memory reads the instruction content at the given address and returns it to the controller (typically stored in the IR register)

3. Update your PC

Part II: Decoding

1. Operation Nature of the controller analysis instructions

2. Control signals required by the controller to issue instructions to the relevant parts

Step Three: Execute

1. The controller removes the operand from the general register or memory

2. The controller command operator operates on instructions specified by the operand

Fourth step: Write Back

Writes the result of the operation to a universal register or memory

The next instruction will be executed automatically (take the value of the PC to continue execution)

1-5 Procedures for computer execution instructions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.