From dae816177686c539cb2eceb56e8e7ad1f9c9ad85 Mon Sep 17 00:00:00 2001 From: sfencevma <15155930562@163.com> Date: Mon, 25 Nov 2024 16:32:00 +0800 Subject: [PATCH] feat(DCache ECC): enable tag/data ECC by default --- src/main/scala/top/Configs.scala | 4 ++++ src/main/scala/xiangshan/Parameters.scala | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/main/scala/top/Configs.scala b/src/main/scala/top/Configs.scala index 4fd63c70f1..9475905397 100644 --- a/src/main/scala/top/Configs.scala +++ b/src/main/scala/top/Configs.scala @@ -128,6 +128,8 @@ class MinimalConfig(n: Int = 1) extends Config( nProbeEntries = 4, nReleaseEntries = 8, nMaxPrefetchEntry = 2, + enableTagEcc = true, + enableDataEcc = true, )), // ============ BPU =============== EnableLoop = false, @@ -265,6 +267,8 @@ class WithNKBL1D(n: Int, ways: Int = 8) extends Config((site, here, up) => { nProbeEntries = 8, nReleaseEntries = 18, nMaxPrefetchEntry = 6, + enableTagEcc = true, + enableDataEcc = true )) )) }) diff --git a/src/main/scala/xiangshan/Parameters.scala b/src/main/scala/xiangshan/Parameters.scala index f5d7f53f61..9ffa5f14c9 100644 --- a/src/main/scala/xiangshan/Parameters.scala +++ b/src/main/scala/xiangshan/Parameters.scala @@ -345,6 +345,8 @@ case class XSCoreParameters nProbeEntries = 8, nReleaseEntries = 18, nMaxPrefetchEntry = 6, + enableTagEcc = true, + enableDataEcc = true )), L2CacheParamsOpt: Option[L2Param] = Some(L2Param( name = "l2",