Design a system that gets 8-bits input (X7X6…X1X0) and the output is also 8-bits wide which indicates the highest MSB that was ‘1’. You can use as many logic gates as you need.
For example:
INPUT: 01101000 , 00010100 , 10000000
OUTPUT: 01000000 , 00010000 , 10000000