ali_umair21
Junior Member level 1
I need leading one detector which can detect the leading one and tells the position of first '1' i.e.
i/p 00000000111100000000
o/p 00000000100000000000 = 9
one way in my mind was to use a priority decoder(using casex or series of if..else)
but that uses much resource for larger inputs
can anyone suggests a better way using some thing else that counts less LUTs??
Thanks in advance
i/p 00000000111100000000
o/p 00000000100000000000 = 9
one way in my mind was to use a priority decoder(using casex or series of if..else)
but that uses much resource for larger inputs
can anyone suggests a better way using some thing else that counts less LUTs??
Thanks in advance