Axi4DataChannelInterface constructor
Constructor.
Implementation
Axi4DataChannelInterface({
required super.prefix,
required super.main,
super.idWidth = 4,
super.userWidth = 32,
this.dataWidth = 64,
this.useLast = true,
}) {
_validateParameters();
setPorts([
Logic.port('${prefix}DATA', dataWidth),
if (useLast) Logic.port('${prefix}LAST'),
], [
if (main) PairDirection.fromProvider else PairDirection.fromConsumer,
]);
}