AssociativePortInterface constructor

AssociativePortInterface({
  1. required int keyWidth,
  2. required int indexWidth,
})

Creates a shaped associative-memory port.

Implementation

AssociativePortInterface({required this.keyWidth, required this.indexWidth}) {
  if (keyWidth < 1 || indexWidth < 1) {
    throw ArgumentError('Key and index widths must be positive.');
  }
}