Answer to Question #324599 in Computer Networks for Mimi

Question #324599

Using an appropriate diagram:


1. Apply the fetch, decode & execute machine cycle to explain


pipelining and parallelism in the context of computing

1
Expert's answer
2022-04-06T07:11:07-0400


The fetch cycle is the point in which the CPU’s control unit will read the next instruction to perform from memory. Since everything in a computer is in the form of data in some way, the actual instructions it has to follow also have to come from somewhere. The fetch cycle is ensuring that once an instruction is executed, the next instruction is on its way into the pipeline. Modern CPUs will rarely have just one instruction being done at a time per core, but will do their best to saturate their pipelines with as many stages of as many instructions as possible.

The execute cycle is actually any cycle in which the actual procedures defined by the opcode are being carried out. This would include reading data from memory or another register, performing some math or logical operation, and outputting the result. While fetch is about figuring out what to do next, the execute is about actually doing what it found out.

Below is the procedure how the execution is done.


  1. The CPU fetches the instructions one at a time from the main memory into the registers. One register is the program counter (pc). ...
  2. The CPU decodes the instruction.
  3. The CPU executes the instruction.
  4. Repeat until there are no more instructions.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS