1. (60 points) Design a four-bit bidirectional shift register with three inputs: CLK, M, and X. When M-0, the shift register will shift to the left and the value of X will be placed at the right end of the shift register. When M-1, the shift register will shift to the right and the value of X will be placed at the left end of the shift register. The shift register will shift in the direction
OR
OR