addInput method

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

Registers a signal as an input to this Module and returns an input port that can be consumed.

The return value is the same as what is returned by input and should only be used within this Module. The provided source is accessible via inputSource.

Implementation

@override
Logic addInput(String name, Logic source, {int width = 1}) {
  _uniquifier.getUniqueName(initialName: name, reserved: true);
  return super.addInput(name, source, width: width);
}