validate method
Validate the FloatingPointValue to ensure widths and other characteristics are legal.
Implementation
@protected
@visibleForOverriding
void validate() {
if (sign.width != 1) {
throw RohdHclException('FloatingPointValue: sign width must be 1');
}
if (mantissa.width != mantissaWidth) {
throw RohdHclException('FloatingPointValue: mantissa width must be '
'$mantissaWidth');
}
if (exponent.width != exponentWidth) {
throw RohdHclException('FloatingPointValue: exponent width must be '
'$exponentWidth');
}
}