Forum Discussion
Altera_Forum
Honored Contributor
17 years ago --- Quote Start --- Strange, if you specify a number of bits, the software should not need the log2 anymore to calculate the width. --- Quote End --- You would have to look at the particular IP, to understand where it's actually needed. The function is often used in parameterizable HDL components/modules, could be that a bitwidth parameter is converted to a range respectively a factor and back to a bitwidth at another code location. And of course, input parameters should be explicitely range checked by the core if the range is limited.