CacheFillPort<T extends Logic> constructor

CacheFillPort<T extends Logic>({
  1. required T dataSchema,
  2. int? addrWidth,
  3. @Deprecated('Use addrWidth instead.') int? addressWidth,
})

Creates a fill port with a typed data schema.

addressWidth is the deprecated former name of addrWidth.

Implementation

CacheFillPort({
  required T dataSchema,
  int? addrWidth,
  @Deprecated('Use addrWidth instead.') int? addressWidth,
}) : super(
        portsFromProvider: [
          Logic.port('valid'),
          Logic.port('address', resolveAddrWidth(addrWidth, addressWidth)),
          cloneTypedPayload(dataSchema, name: 'data'),
          Logic.port('evictionReady'),
        ],
        portsFromConsumer: [
          Logic.port('ready'),
          Logic.port('evictionValid'),
          Logic.port(
              'evictionAddress', resolveAddrWidth(addrWidth, addressWidth)),
          cloneTypedPayload(dataSchema, name: 'evictionData'),
        ],
      );