ApbWritePacket constructor

ApbWritePacket({
  1. required LogicValue addr,
  2. required LogicValue data,
  3. LogicValue? strobe,
  4. int selectIndex = 0,
})

Creates a write packet.

If no strobe is provided, it will default to all high.

Implementation

ApbWritePacket(
    {required super.addr,
    required this.data,
    LogicValue? strobe,
    super.selectIndex})
    : strobe = strobe ?? LogicValue.filled(data.width ~/ 8, LogicValue.one);