Divide by 2, 4 and 8 with shifts

Produce three integer quotients of an 8-bit unsigned input using right shifts: div2 = in >> 1, div4 = in >> 2, div8 = in >> 3 (remainders are discarded).

Input: in, 8 bits.
Outputs: div2, div4, div8, 8 bits each.

The testbench applies all 256 inputs and checks all three outputs.

Contributed by Indicore

Compiler Output
Waveform Viewer