CFU ensure that CFU_IN_FLIGHT do not produce false positive when the pipeline is stuck

This commit is contained in:
Dolu1990 2021-03-04 20:15:01 +01:00
parent be81cc1e0e
commit aee8841438
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@ class CfuPlugin(val stageCount : Int,
}
}
pipeline.stages.dropRight(1).foreach(s => s.output(CFU_IN_FLIGHT) clearWhen(s.arbitration.isStuck))
addPrePopTask(() => stages.dropWhile(_ != memory).reverse.dropWhile(_ != joinStage).foreach(s => s.input(CFU_IN_FLIGHT).init(False)))
}
}