Universal shift register design in Verilog
A shift register is a sequential circuit that is responsible for shift binary word in digital circuits, verilog code for universal shift register is presented, this shift register can perform shift left, shift right, rotate left and rotate right, the request of shift operation is done using input port sh_ro_lt_rt, a test bench is also provided to verify the operation of the shift register
Verilog code for universal shift register:
Test Bench :
Simulation results :