Merge pull request #42 from OpenXiangShan/perf-counter

disable performance counter name print logic
This commit is contained in:
Jiawei Lin 2021-10-22 11:04:19 +08:00 committed by GitHub
commit 4ce6dbe788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 5 deletions

View File

@ -71,6 +71,7 @@ trait HasHuanCunParameters {
val numPCntHcReqb = 6
val numPCntHcProb = 1
val numPCntHc = numPCntHcMSHR + numPCntHcDir + numPCntHcReqb + numPCntHcProb
val print_hcperfcounter = false
lazy val edgeIn = p(EdgeInKey)
lazy val edgeOut = p(EdgeOutKey)

View File

@ -218,6 +218,6 @@ class MSHRAlloc(implicit p: Parameters) extends HuanCunModule {
)
for (((perf_out,(perf_name,perf)),i) <- perfinfo.zip(perfEvents).zipWithIndex) {
perf_out := perf
perf_out := RegNext(perf)
}
}

View File

@ -113,6 +113,6 @@ class RequestBuffer(flow: Boolean = true, entries: Int = 16)(implicit p: Paramet
)
for (((perf_out,(perf_name,perf)),i) <- perfinfo.zip(perfEvents).zipWithIndex) {
perf_out := perf
perf_out := RegNext(perf)
}
}

View File

@ -578,6 +578,8 @@ class Slice()(implicit p: Parameters) extends HuanCunModule {
val perfinfo = IO(Output(Vec(numPCntHc, (UInt(6.W)))))
for (((perf_out,(perf_name,perf)),i) <- perfinfo.zip(huancun_perf).zipWithIndex) {
perf_out := perf
println(s"frontend perf $i: $perf_name")
if(print_hcperfcounter){
println(s"Huancun perf $i: $perf_name")
}
}
}

View File

@ -342,6 +342,6 @@ class Directory(implicit p: Parameters)
)
for (((perf_out,(perf_name,perf)),i) <- perfinfo.zip(perfEvents).zipWithIndex) {
perf_out := perf
perf_out := RegNext(perf)
}
}

View File

@ -67,6 +67,6 @@ class ProbeHelper(entries: Int = 4, enqDelay: Int = 1)(implicit p: Parameters)
)
for (((perf_out,(perf_name,perf)),i) <- perfinfo.zip(perfEvents).zipWithIndex) {
perf_out := perf
perf_out := RegNext(perf)
}
}