shaiko
Advanced Member level 5
Hello,
I'd like to write a synthesizable generic function that recieves an integer and returns the vector length. i.e:
If the input to the function is the integer 6, which is binary "110" the function returns 3.
If the input to the function is the integer 124, which is binary "1111100" the function returns 7.
Any suggestions?
I'd like to write a synthesizable generic function that recieves an integer and returns the vector length. i.e:
If the input to the function is the integer 6, which is binary "110" the function returns 3.
If the input to the function is the integer 124, which is binary "1111100" the function returns 7.
Any suggestions?