write RTL code for the following 1 bit transition and draw the corresponding logic circuit using D flip-flops:
a) if a=1 then copy X to W; other wise copy X to Z b)if a =1 then copy Yto X; other wise copy Y' to X.
a) if a=1 then copy X to W; other wise copy X to Z b)if a =1 then copy Yto X; other wise copy Y' to X.