Output out is the bit position of the first '1' in the Logic input. Search starts from the LSB.
Logic get out => output('out');