Skip to content

Commit

Permalink
Log: remove unexpected LogPerfHelper when RELEASE=1 (OpenXiangSha…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang-Haojin authored Sep 26, 2023
1 parent a6d5944 commit 93c36bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/main/scala/huancun/HCCacheParameters.scala
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ case class HCCacheParameters
c = BufferParams.default,
d = BufferParams.default,
e = BufferParams.default
)
),
FPGAPlatform: Boolean = false
) {
require(ways > 0)
require(sets > 0)
Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/huancun/utils/XSPerfAccumulate.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import utility.{LogPerfHelper, LogPerfIO}

object XSPerfAccumulate {
def apply(params: HCCacheParameters, perfName: String, perfCnt: UInt) = {
if (params.enablePerf) {
if (params.enablePerf && !params.FPGAPlatform) {
val helper = Module(new LogPerfHelper)
val perfClean = helper.io.clean
val perfDump = helper.io.dump
Expand Down Expand Up @@ -36,7 +36,7 @@ object XSPerfHistogram {
lStrict: Boolean = false,
rStrict: Boolean = false
) = {
if (params.enablePerf) {
if (params.enablePerf && !params.FPGAPlatform) {
val helper = Module(new LogPerfHelper)
val perfClean = helper.io.clean
val perfDump = helper.io.dump
Expand Down Expand Up @@ -75,7 +75,7 @@ object XSPerfHistogram {

object XSPerfMax {
def apply(params: HCCacheParameters, perfName: String, perfCnt: UInt, enable: Bool) = {
if (params.enablePerf) {
if (params.enablePerf && !params.FPGAPlatform) {
val helper = Module(new LogPerfHelper)
val perfClean = helper.io.clean
val perfDump = helper.io.dump
Expand Down

0 comments on commit 93c36bb

Please sign in to comment.