ReadyValidSramScanAssociativeMemory constructor
- required Logic clk,
- required Logic reset,
- required ReadyValidInterface<
AssociativeLookupRequest< lookupRequest,Logic> > - required ReadyValidInterface<
AssociativeUpdateRequest< updateRequest,Logic> > - required IrrevocableReadyValidInterface<
AssociativeLookupResponse> lookupResponse, - required int entryCount,
- required int readLatency,
- AssociativeMatchMode matchMode = AssociativeMatchMode.exact,
- AssociativeMatchSelection matchSelection = AssociativeMatchSelection.lowestIndex,
- AssociativeResultShape resultShape = AssociativeResultShape.matchVectorAndSelectedIndex,
- SynchronousMemoryFunctor? memoryFunctor,
- MemoryConfiguration? memoryConfiguration,
- AssociativeMemoryResetTiming resetTiming = AssociativeMemoryResetTiming.synchronous,
- String name = 'ready_valid_sram_scan_associative_memory',
Creates a deterministic SRAM-style associative-memory scan controller.
Implementation
ReadyValidSramScanAssociativeMemory({
required Logic clk,
required Logic reset,
required ReadyValidInterface<AssociativeLookupRequest> lookupRequest,
required ReadyValidInterface<AssociativeUpdateRequest> updateRequest,
required IrrevocableReadyValidInterface<AssociativeLookupResponse>
lookupResponse,
required int entryCount,
required int readLatency,
AssociativeMatchMode matchMode = AssociativeMatchMode.exact,
AssociativeMatchSelection matchSelection =
AssociativeMatchSelection.lowestIndex,
AssociativeResultShape resultShape =
AssociativeResultShape.matchVectorAndSelectedIndex,
SynchronousMemoryFunctor? memoryFunctor,
MemoryConfiguration? memoryConfiguration,
AssociativeMemoryResetTiming resetTiming =
AssociativeMemoryResetTiming.synchronous,
String name = 'ready_valid_sram_scan_associative_memory',
}) : this._resolved(
clk: clk,
reset: reset,
lookupRequest: lookupRequest,
updateRequest: updateRequest,
lookupResponse: lookupResponse,
entryCount: entryCount,
readLatency: readLatency,
matchSelection: matchSelection,
resultShape: resultShape,
matchMode: matchMode,
resetTiming: resetTiming,
memoryFunctor: memoryFunctor ??
selectAssociativeScanFunctor(
memoryConfiguration,
keyWidth: lookupRequest.data.key.width,
entryCount: entryCount,
readLatency: readLatency,
),
name: name,
);