ali_umair21
Junior Member level 1
- Joined
- Sep 23, 2009
- Messages
- 18
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,283
- Location
- Pakistan
- Activity points
- 1,412
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