addInOut method

  1. @override
LogicNet addInOut(
  1. String name,
  2. Logic? source, {
  3. int width = 1,
})
override

Adds an inOut in the same way as the base Module does.

If source is null, then a default port will be created.

Implementation

@override
LogicNet addInOut(String name, Logic? source, {int width = 1}) {
  _handleNewPortName(name);

  // ignore: parameter_assignments
  source ??= LogicNet(name: name, width: width, naming: Naming.mergeable);

  return super.addInOut(name, source, width: width);
}