Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ECC): add ECC for coupledL2 and bump coupledL2 #3808

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/scala/top/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ class WithNKBL2
)),
reqField = Seq(utility.ReqSourceField()),
echoField = Seq(huancun.DirtyField()),
tagECC = Some("secded"),
dataECC = Some("secded"),
enableTagECC = true,
enableDataECC = true,
prefetch = Seq(BOPParameters()) ++
(if (tp) Seq(TPParameters()) else Nil) ++
(if (p.prefetcher.nonEmpty) Seq(PrefetchReceiverParams()) else Nil),
Expand Down
8 changes: 7 additions & 1 deletion src/main/scala/xiangshan/L2Top.scala
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ class L2TopInlined()(implicit p: Parameters) extends LazyModule

val resetDelayN = Module(new DelayN(UInt(PAddrBits.W), 5))

beu.module.io.errors <> io.beu_errors
beu.module.io.errors.icache := io.beu_errors.icache
beu.module.io.errors.dcache := io.beu_errors.dcache
resetDelayN.io.in := io.reset_vector.fromTile
io.reset_vector.toCore := resetDelayN.io.out
io.hartId.toCore := io.hartId.fromTile
Expand Down Expand Up @@ -240,6 +241,9 @@ class L2TopInlined()(implicit p: Parameters) extends LazyModule
io.chi.get <> l2.io_chi
case l2cache: TL2TLCoupledL2 =>
}

beu.module.io.errors.l2.ecc_error.valid := l2.io.error.valid
beu.module.io.errors.l2.ecc_error.bits := l2.io.error.address
} else {
io.l2_hint := 0.U.asTypeOf(io.l2_hint)
io.debugTopDown <> DontCare
Expand All @@ -249,6 +253,8 @@ class L2TopInlined()(implicit p: Parameters) extends LazyModule
io.l2_tlb_req.req_kill := DontCare
io.l2_tlb_req.resp.ready := true.B
io.perfEvents := DontCare

beu.module.io.errors.l2 := 0.U.asTypeOf(beu.module.io.errors.l2)
}
}

Expand Down
Loading