1.

A non-pipelined CPU has 12 general purpose registers (R0, R1, R2,….R12). Following operations are supportedADD Ra, Rb, Rr Add Ra to Rb and store the result in RrMUL Ra, Rb, Rr Multiply Ra to Rb and store the result in RrMUL operations takes two clock cycles, ADD takes one clock cycle.Calculate minimum number of clock cycles required to compute the value of the expression XY + XYZ + YZ. The variables X, Y, Z are initially available in registers R0, R1 and R2 and contents of these registers must not be modified.

A. 5
B. 6
C. 7
D. 8
Answer» C. 7


Discussion

No Comment Found

Related MCQs