addOutputArray method
Registers and returns an output LogicArray port to this Module with
the specified dimensions
, elementWidth
, and numUnpackedDimensions
named name
.
This is very similar to addOutput, except for LogicArrays.
Implementation
LogicArray addOutputArray(
String name, {
List<int> dimensions = const [1],
int elementWidth = 1,
int numUnpackedDimensions = 0,
}) {
_checkForSafePortName(name);
final outArr = LogicArray(
name: name,
dimensions,
elementWidth,
numUnpackedDimensions: numUnpackedDimensions,
naming: Naming.reserved,
)
// ignore: invalid_use_of_protected_member
..setAllParentModule(this);
_outputs[name] = outArr;
return outArr;
}