Wednesday, September 30, 2009

Computer Processors - CPU Operation

The processor is an electronic circuit that executes computer programs. It performs it in four basic phases:

1. Fetch: In this phase, the processor collects the bytes to execute from memory (which may be RAM or cache). Each instruction is saved in memory as one or more bytes depending on the processor type. The more the word +length, the more complexity and power consumption of the processor. Once the processor collects the bytes, then it is ready to decode it.

2. Decoding: In this phase, the processor takes the bytes read in the previous step and input them to the decoder. The decoder activates then the line corresponding to the instruction whose bytes equal to the bytes read from the fetching phase. Each instruction in the processor is mapped to a certain bits or bytes by the designer so that when the processor fetches these bits or bytes, it can understand them. The number of bits used to represent each instruction may vary according to the processor type. Note that this number of bits may not take the whole word in the memory. For example if the word is represented by 8 bits, then the first four bits can be assigned to the instruction part and the last four bits can be assigned to the data which is needed for the instruction to execute.

3. Executing: once the processor knows the meaning of the bits by the decoder, it goes then to the execute phase. In this phase, the processor makes the necessary operation as denoted by the decoder. This operation is done on the operand contained along with the instruction bits in the memory word.. The operation can be addition, subtraction, AND, or any mathematical or logical operation.

4. Write Back: once the processor done the operation, it writes it back to the memory in the place denoted by the instruction. This result may be fed to other instructions in the same program.

Youssef Edward is an electrical engineer. He like working in the field of computers. He has many activities in networking and programming. For more information please visit http://tips-made-easy.info/computer.

Article Source: http://EzineArticles.com/?expert=Youssef_Edward

2 comments:

  1. I agree with you! CPUs can be costly and will possibly the single most exclusive component of a PC. So that you have to maintain your CPU, and keep your CPU safe.

    Thanks for the info.

    ------------------------
    UPS Battery Packs

    ReplyDelete
  2. Australia best sunglasses Bifocal Glasses frames and lenses online, save up to 70% to buy eyeglasses, prescription Sunglasses Australia. Discount eyeglasses coupon code avaliable often! Buy quality eyeglass frames and lenses with a 100% money back guarantee, anti-scratch coating, and professional service.

    ReplyDelete