Function with variable input buswidth

In reply to hk123:

You need to explain what you intend to do with the function as there are many possibilities.

A maximum size is just one way. You can also create a parameterized function by wrapping it in a class.

There is also a ‘1et’ construct with typeless arguments.

You can also create dynamic arrays of bits.