Reply To: Support for large SLV/signed/unsigned?

Why OSVVM™? Forums OSVVM Support for large SLV/signed/unsigned? Reply To: Support for large SLV/signed/unsigned?

#437
Andy Jones
Member

So there would be no impact on “randomness” if we built the result a bit at a time? That might actually be easier.

Yes the min & max arguments would be of the same type as the result. The length of the result would be the maximum of the min & max lengths (like signed/unsigned arithmetic). This allows, for instance a default min of “0” and a max of some larger vector that sets the length of the result.

Since it would be difficult to implement the non-uniform distributions available in the RandSlv() functions, this should be additional overloads of Uniform() with slv/signed/unsigned arguments and results.

Andy