looks like a cool verilog/VHDL homework 🙂 you likely need 1 5-bit adder + 2 5to32 decoders + combining previous output bit value (or earlier in the signal path) with decoded signal with some combinational logic to drive the output bus
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.