← All problems

Rotate Left

Easy · Combinational · SystemVerilog

Design a module that circularly rotates {in} left by {shift} positions: bits shifted out of the most-significant end wrap around into the least-significant end, so every bit of {in} is preserved in {out}.

Open this challenge in the editor →