output method Null safety

Logic output(
  1. String name
)

Accesses the Logic associated with this Modules output port named name.

Logic outside of this Module should consume this signal. It is okay to consume this within this Module as well.

Implementation

Logic output(String name) => _outputs.containsKey(name)
    ? _outputs[name]!
    : throw Exception(
        'Output name "$name" not found as an output of this Module.');