resultSignalName property

String get resultSignalName

The name of the output (or inOut) port which can be the in-lined symbol.

By default, this assumes one output port. This should be overridden in classes which have an inOut port as the in-lined symbol.

Implementation

String get resultSignalName {
  if (outputs.keys.length != 1) {
    throw Exception('Inline verilog expected to have exactly one output,'
        ' but saw $outputs.');
  }

  return outputs.keys.first;
}