Re: leading one detector
Some points to help you think about a solution:
How wide is the input going to be?
How many clock cycles are you allowed to take to decode?
You can do a shift register + counter if you have plenty of time.
You can do a (pipelined) priority decoder if you are in a hurry.
You can split the input into smaller parts, decode for each part, and then combine.
You can <fill_in/> depending on a lot of other constraints that you did not specify about the signal.
1 members found this post helpful.