MaskedDataPortInterface constructor

MaskedDataPortInterface(
  1. int dataWidth,
  2. int addrWidth
)

Constructs a DataPortInterface with mask.

Implementation

MaskedDataPortInterface(super.dataWidth, super.addrWidth) {
  if (dataWidth % 8 != 0) {
    throw RohdHclException('The data width must be byte-granularity');
  }
  setPorts([
    Port('mask', dataWidth ~/ 8),
  ], [
    DataPortGroup.control
  ]);
}