addInput method

  1. @override
Logic addInput(
  1. String name,
  2. Logic x, {
  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().

Implementation

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