LogicValue is a useful type since it supports arbitrary width in an efficient representation. For testing purposes, it might be desirable to generate a random value on a bus of arbitrary width. The built-in Dart randomization only randomizes up to 2^32, which means users have to invent their own little code snippets to generate random numbers bigger than 32 bits.
Related Issue(s)
Fix #232
Testing
Add unit test to test random generation of the LogicValue.
Backwards-compatibility
Is this a breaking change that will not be backwards-compatible? If yes, how so?
Description & Motivation
LogicValue is a useful type since it supports arbitrary width in an efficient representation. For testing purposes, it might be desirable to generate a random value on a bus of arbitrary width. The built-in Dart randomization only randomizes up to 2^32, which means users have to invent their own little code snippets to generate random numbers bigger than 32 bits.
Related Issue(s)
Fix #232
Testing
Add unit test to test random generation of the
LogicValue
.Backwards-compatibility
No
Documentation
Included in the public documentation.