In: Electrical Engineering
Design and test a 4-bit rotator that has two inputs: A and rotamt, and two outputs Yleft and Yright using (System) Verilog. The rotation amount (number of bits to be rotated) is given in rotamt and the output of left and right rotation will be in Yleft and Yright, respectively.