shaiko
Advanced Member level 5
Hi,
I'm looking for an algebraic solution to align the '1' bits of a vector to the LSB's.
For example:
11001001 will transform to: 00001111
1000 will transform to: 0001
1100 will transform to 0011.
I wrote a custom HDL function that achieves the goal but it's quite complex and will probably have poor timing performance.
I'm looking for an algebraic solution to align the '1' bits of a vector to the LSB's.
For example:
11001001 will transform to: 00001111
1000 will transform to: 0001
1100 will transform to 0011.
I wrote a custom HDL function that achieves the goal but it's quite complex and will probably have poor timing performance.