How long does it take a 1Ghz Mic-1 to FETCH and EXECUTE the java statement i = j
ID: 3575361 • Letter: H
Question
How long does it take a 1Ghz Mic-1 to FETCH and EXECUTE the java statement i = j + k; m = i. this is as far as i have gotten... Stuck on the rest. Thanks.
[6] (10 points) How long does a 1GHz Mic-1 take to fetch & execute the Java statement Give your answer in nanoseconds. (Hint: DONOT forget to include the time/cycles to fetch each instruction from memory!) ILOAD j 6 microinstructions ILOAD k 6 microinstructions LADD 4 microinstructions DUP 3 microinstructions ISTOREI 7 microinstructions ISTORE m 7 microinstructions 6 6 4 3 7 7 33Explanation / Answer
With a clock of 1GHz, every micro instruction employs a time:
duration of 1 micro instruction = 1 / (1000 x(NNN) NNN-NNNN)) = 1 ns
Therefore the time total for execution of given instructions in JAVA: 1 x 33 = 33 ns
Answer = 33 ns
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.