Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 11 Online
OpenStudy (anonymous):

Describe the five steps of the Fetch/Execute Cycle in a computer.

OpenStudy (anonymous):

1. Fetch the instruction. Each CPU has a register which contains the current address of execution. This register is usually called the PC for Program Counter. This address is given to the memory with the fetch command to get the instruction to be executed. 2. Decode the instruction. Each instruction contains an operation code, which says what type of instruction it is. This operation code also determines what operands are needed. For instance, an add instruction needs some operands to sum, while a halt instruction needs no operands. 3. Increment the PC. Once the type of the instruction is known, the length of the instruction can be calculated. This length is then added to the Program Counter so that at the beginning of the next instruction, the current memory location will be fetched. 4. Fetch the operands. Operands of an instruction may be in memory or CPU registers. If they are in memory, the memory needs to fetch them at this time, since all work like arithmetic occurs in the CPU. This step is not needed for instructions with no memory operands. 5. Execute the instruction. Once the operands are present in the CPU, the computation may proceed. This is often an arithmetic operation, but could also be a comparison or many other things.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!