A non-pipelined CPU has $12$ general purpose registers $(R0,R1,R2, \dots ,R12)$. Following operations are supported
$\text{MUL}$ operation takes two clock cycles, $\text{ADD}$ takes one clock cycle.
Calculate minimum number of clock cycles required to compute the value of the expression $XY+XYZ+YZ$. The variable $X,Y,Z$ are initially available in registers $R0,R1$ and $R2$ and contents of these registers must not be modified.
64.3k questions
77.9k answers
244k comments
80.0k users