In this section, you will evaluate how long it takes to execute different types of the instructions of the MIPS computer.
Load and execute in step mode following program:
main: dadd r1,r0,r1 ; r1 = r0+r1 halt .text nop
As a result of the execution you should receive clock cycle diagram of the execution similar to this on the image:
Analyze this clock cycle diagram of execution of the program and answer the question: How many clock cycles does the execution of the instruction dadd r1,r0,r1 take (each box in clock cycle diagram represents one clock tick )?
Load and execute in step mode following program:
.textmain: div.d f1,f0,f1 halt
Analyze clock cycle diagram of execution of the program and answer the question:How many clock cycles does the execution of the instruction div.d f1,f0,f1 take ?
Load and execute in step mode following program:
.textmain: mul.d f1,f0,f1 halt
Analyze clock cycle diagram of execution of the program and answer the question:How many clock cycles does the execution of the instruction mul.d f1,f0,f1 take ?
How many clock cycles does the execution of the instruction halt take?
Load and execute in step mode following program:
.textmain: add.d f1,f0,f1 halt
Analyze clock cycle diagram of execution of the program and answer the question:How many clock cycles does the execution of the instruction add.d f1,f0,f1 take ?
How many clock cycles does the execution of the instruction nop take?