createModule method
override
Creates a Module instance as configured.
Implementation
@override
Module createModule() {
final reqs = List.generate(numRequestKnob.value, (i) => Logic());
if (implementationKnob.value == MaskRoundRobinArbiter) {
return MaskRoundRobinArbiter(reqs, clk: Logic(), reset: Logic());
} else if (implementationKnob.value == RotateRoundRobinArbiter) {
return RotateRoundRobinArbiter(reqs, clk: Logic(), reset: Logic());
}
throw RohdHclException('Unknown round robin type.');
}