madushan
Newbie level 4
- Joined
- Jan 8, 2011
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,322
Hi guys,
Can anyone please help me to design the following circuit
let's say that there's an array of 4 bits (the width of this array should be parameterizable)
I need to find the index of the first occurrence of a '1' in this array when searched from the least significant bit
So
if array is 0100 module should return index 2
if array is 1100 module should return index 2
if array is 1110 module should return index 1
if array is 1111 module should return index 0
I need to do this in combinational manner
please help
Thanks
Can anyone please help me to design the following circuit
let's say that there's an array of 4 bits (the width of this array should be parameterizable)
I need to find the index of the first occurrence of a '1' in this array when searched from the least significant bit
So
if array is 0100 module should return index 2
if array is 1100 module should return index 2
if array is 1110 module should return index 1
if array is 1111 module should return index 0
I need to do this in combinational manner
please help
Thanks