config: Add a fragment to disable traceIO

This commit is contained in:
David Biancolin
2022-11-18 05:39:06 +00:00
parent 640d159499
commit 7434c57592

View File

@@ -33,6 +33,17 @@ class WithTraceIO extends Config((site, here, up) => {
case TracePortKey => Some(TracePortParams())
})
class WithNoTraceIO extends Config((site, here, up) => {
case TilesLocated(InSubsystem) => up(TilesLocated(InSubsystem), site) map {
case tp: BoomTileAttachParams => tp.copy(tileParams = tp.tileParams.copy(
trace = false))
case tp: CVA6TileAttachParams => tp.copy(tileParams = tp.tileParams.copy(
trace = false))
case other => other
}
case TracePortKey => None
})
class WithNPerfCounters(n: Int = 29) extends Config((site, here, up) => {
case TilesLocated(InSubsystem) => up(TilesLocated(InSubsystem), site) map {
case tp: RocketTileAttachParams => tp.copy(tileParams = tp.tileParams.copy(