can anyone show me the work? Thank you so much! Assume that an instruction fetch
ID: 3651442 • Letter: C
Question
can anyone show me the work? Thank you so much!
Assume that an instruction fetch, operand load, or storage of a result takes 10 ns to complete. Instruction decode, operation execution, and program counter update each take 1 ns to complete. How long does it take to execute the following code sequence? Assume that a CPU can perform a multiplication (*) operation in 10 ns. and a subtraction operation in Ins. How long will it take for the CPU to calculate the resultExplanation / Answer
sub D,E,F Instruction fetch = 1 ns ( fetch the entire instruction) decode the instruction = 10ns ( decode it) operand load = 10ns ( load the values of E and F) operation execution = 1ns ( perform E - F) storage of result = 10ns ( D -> E - F) program counter update = 1ns (update PC) Total = 33ns Similarly add H,G,D Instruction fetch = 1 ns ( fetch the entire instruction) decode the instruction = 10ns ( decode it) operand load = 10ns ( load the values of G and D) operation execution = 1ns ( perform G+D) storage of result = 10ns ( H -> G + D) program counter update = 1ns (update PC) Total = 33ns d = a*b - a*c instruction fetch = 1 ns ( fetch the entire instruction) decode the instruction = 10ns ( decode it) Load the operands ( a,b) = 10 ns Multiply a*b ( 10ns) Load a and c = 10ns Multiply a*c ( 10ns) operation execution = 1ns ( perform a*b - a*c) storage of result = 10ns ( d -> a*b - a*c) program counter update = 1ns (update PC) Total = 63 ns
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.