createModule method

  1. @override
Module createModule()
override

Creates a Module instance as configured.

Implementation

@override
Module createModule() {
  final storeCount = max(1, storeCountKnob.value);
  final loadCount = max(1, loadCountKnob.value);
  final storeWidth = max(1, storeCount.log2Ceil);
  final loadWidth = max(1, loadCount.log2Ceil);
  return OlderStoreMaskTracker(
    clk: Logic(name: 'clk'),
    reset: Logic(name: 'reset'),
    storeAllocation: ReadyAndValidInterface<Logic>(
        Logic(name: 'store_allocation_index', width: storeWidth)),
    storeRelease:
        ReadyAndValidInterface<TagRelease>(TagRelease(tagWidth: storeWidth)),
    loadAllocation: ReadyAndValidInterface<Logic>(
        Logic(name: 'load_allocation_index', width: loadWidth)),
    loadRelease:
        ReadyAndValidInterface<TagRelease>(TagRelease(tagWidth: loadWidth)),
    selectedLoad: Logic(name: 'selectedLoad', width: loadWidth),
    storeCount: storeCount,
    loadCount: loadCount,
    storeAllocationPrecedesLoad: storeAllocationPrecedesLoadKnob.value,
  );
}