TrueDualPortMemoryPort<LogicType extends Logic> constructor

TrueDualPortMemoryPort<LogicType extends Logic>(
  1. int dataWidth,
  2. int addrWidth, {
  3. int? maskWidth,
})

Creates a true dual-port memory port with a packed word.

Implementation

TrueDualPortMemoryPort(this.dataWidth, this.addrWidth, {this.maskWidth}) {
  if (LogicType != Logic) {
    throw ArgumentError(
        'Use TrueDualPortMemoryPort.typed for a specialized payload type.');
  }
  _setPorts(
      Logic.port('writeData', dataWidth), Logic.port('readData', dataWidth));
}