SignalWidthMismatchException constructor

SignalWidthMismatchException(
  1. Logic signal,
  2. int expectedWidth,
  3. {String additionalMessage = ''}
)

Constructs a new Exception for when a signal has the wrong width.

Implementation

SignalWidthMismatchException(Logic signal, int expectedWidth,
    {String additionalMessage = ''})
    : super('Signal ${signal.name} has the wrong width.'
          ' Expected $expectedWidth but found ${signal.width}.'
          ' $additionalMessage');