Consider a program having following sequence of instructions, where the syntax consists of an opcode followed by the destination register followed by one or two source registers:
Assume the use of a four-stage pipeline: fetch, decode/issue, execute, write back. Assume that all pipeline stages take one clock cycle except for the execute stage. For simple integer arithmetic and logical instructions, the execute stage takes one cycle, but for a LOAD from memory, Six cycles are consumed in the execute stage. If we have a simple scalar pipeline that allows only In-order Issue and In-order execution, Show the execution of the program in time steps. |
Get Answers For Free
Most questions answered within 1 hours.