Represent the following conditional control statement by two register transfer statements with control functions. If (P=1) then (R1ßR2) else if (Q = 1) then (R1 R3)

 Represent the following conditional control statement by two register transfer statements with control functions.

If (P=1) then (R1ßR2) else if (Q = 1) then (R1ß R3)



ANS 

Here for P=1 then data is transferred from R2 to R1 else if O=1 then it is transfer from R3 to R1

                  

                    P: R1 ← R2

                    P'Q: R1 ← R3