addOutput method
Registers an output to this Module and returns an output port that can be driven.
The return value is the same as what is returned by output().
Implementation
@protected
Logic addOutput(String name, {int width = 1}) {
_checkForSafePortName(name);
final outPort = Logic(name: name, width: width, naming: Naming.reserved)
// ignore: invalid_use_of_protected_member
..parentModule = this;
_outputs[name] = outPort;
return outPort;
}