HDLbits
Browse Problems

Circuits/Sequential Logic

Bidirectional Shift Register

medium
shift-registersequential

At each rising edge, shift right when shift_right is high, otherwise shift left. Load serial_in into the vacated position.