Axi4DataChannelInterface constructor

Axi4DataChannelInterface({
  1. required String prefix,
  2. required bool main,
  3. int idWidth = 4,
  4. int userWidth = 32,
  5. int dataWidth = 64,
  6. bool useLast = true,
})

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,
  ]);
}