Axi4StreamInterface constructor
Construct a new instance of an AXI4 interface.
Default values in constructor are from official spec.
Implementation
Axi4StreamInterface({
super.idWidth = 4,
this.dataWidth = 64,
super.userWidth = 0,
this.destWidth = 0,
}) : strbWidth = dataWidth ~/ 8,
super(main: true, prefix: 'T') {
_validateParameters();
setPorts([
if (destWidth > 0) Logic.port('TDEST', destWidth),
Logic.port('TDATA', dataWidth),
Logic.port('TSTRB', strbWidth),
Logic.port('TKEEP', strbWidth),
Logic.port('TLAST'),
], [
PairDirection.fromProvider,
]);
}