Represent the following conditional control statements in RTL. If (P=0)
then (R2<-R1) else if (Q=1) then R3<- R1)
Answers
Answered by
1
Sorry it says that my answer contains links or inappropriate words so I took a screenshot plz read it
Attachments:
Answered by
5
The operation performed on the data stored in the register is called a register transfer operation.
Explanation:
There are several types of register transfer operations.
- Simple Transfer - R2 <- R1
The contents of R1 are copied to R2 without affecting the contents of R1. It is an unconditional transfer operation.
- Conditional forwarding-
P = 1 indicates that the contents of R1 will be forwarded to R2. It is a one-way operation.
- Simultaneous operations – Separate two or more operations with commas (,).
If the control function P = 1, the contents of R1 are loaded into R2 and the contents of R2 are loaded into R1.
Similar questions