Give Rocket priority over DTIM TL port
The TL port can easily starve the processor, even at only 20% utilization, because of a bad interaction with the pipeline. Giving the processor static priority is OK in practice, since <50% of instructions are loads and stores in typical workloads. Even if it executes 100% loads and stores, it must eventually encounter an I$ miss, taken branch, or exception, so even malicious code can't permanently starve the TL port.
This commit is contained in:
		| @@ -105,8 +105,6 @@ class RocketTileModuleImp(outer: RocketTile) extends BaseTileModuleImp(outer) | ||||
|   val uncorrectable = RegInit(Bool(false)) | ||||
|   val halt_and_catch_fire = outer.rocketParams.hcfOnUncorrectable.option(IO(Bool(OUTPUT))) | ||||
|  | ||||
|   outer.dtim_adapter.foreach { lm => dcachePorts += lm.module.io.dmem } | ||||
|  | ||||
|   outer.bus_error_unit.foreach { lm => | ||||
|     lm.module.io.errors.dcache := outer.dcache.module.io.errors | ||||
|     lm.module.io.errors.icache := outer.frontend.module.io.errors | ||||
| @@ -130,6 +128,9 @@ class RocketTileModuleImp(outer: RocketTile) extends BaseTileModuleImp(outer) | ||||
|   core.io.rocc.busy := roccCore.busy | ||||
|   core.io.rocc.interrupt := roccCore.interrupt | ||||
|  | ||||
|   // Rocket has higher priority to DTIM than other TileLink clients | ||||
|   outer.dtim_adapter.foreach { lm => dcachePorts += lm.module.io.dmem } | ||||
|  | ||||
|   when(!uncorrectable) { uncorrectable := | ||||
|     List(outer.frontend.module.io.errors, outer.dcache.module.io.errors) | ||||
|       .flatMap { e => e.uncorrectable.map(_.valid) } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user