addInputArray method
- String name,
- Logic? source, {
- List<
int> dimensions = const [1], - int elementWidth = 1,
- int numUnpackedDimensions = 0,
override
Adds an input array port with enhanced name management.
Creates a multi-dimensional input array port with automatic name conflict
resolution. If source
is not provided, a default LogicArray will be
created with the specified characteristics.
If source
is null
, then a default port will be created.
Implementation
@override
LogicArray addInputArray(
String name,
Logic? source, {
List<int> dimensions = const [1],
int elementWidth = 1,
int numUnpackedDimensions = 0,
}) {
_handleNewPortName(name);
// ignore: parameter_assignments
source ??= LogicArray(dimensions, elementWidth,
name: name,
numUnpackedDimensions: numUnpackedDimensions,
naming: Naming.mergeable);
final inArr = super.addInputArray(name, source,
dimensions: dimensions,
elementWidth: elementWidth,
numUnpackedDimensions: numUnpackedDimensions);
return inArr;
}