FixedPoint constructor
Constructs a FixedPoint signal.
Implementation
FixedPoint(
{required this.signed,
required this.m,
required this.n,
super.name,
super.naming})
: super(width: _fixedPointWidth(signed, m, n)) {
if ((m < 0) | (n < 0)) {
throw RohdHclException('m and n must be non-negative');
}
if (max(m, n) == 0) {
throw RohdHclException('either m or n must be greater than zero');
}
}