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

timing(cmo_sink_node): optimize CMO_node timing #260

Merged
merged 2 commits into from
Oct 8, 2024
Merged
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
10 changes: 6 additions & 4 deletions src/main/scala/coupledL2/CoupledL2.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package coupledL2

import chisel3._
import chisel3.util._
import utility.{FastArbiter, ParallelMax, ParallelPriorityMux, Pipeline, RegNextN, XSPerfAccumulate}
import utility.{FastArbiter, ParallelMax, ParallelPriorityMux, Pipeline, RegNextN, XSPerfAccumulate, PipelineConnect}
import freechips.rocketchip.diplomacy._
import freechips.rocketchip.tile.MaxHartIdBits
import freechips.rocketchip.tilelink._
Expand Down Expand Up @@ -446,9 +446,11 @@ abstract class CoupledL2Base(implicit p: Parameters) extends LazyModule with Has

cmo_sink_node match {
case Some(x) =>
slice.io.cmoReq.valid := x.in.head._1.valid && bank_eq(x.in.head._1.bits.address >> offsetBits, i, bankBits)
slice.io.cmoReq.bits := x.in.head._1.bits
x.in.head._1.ready := slice.io.cmoReq.ready
val cmoReq = Wire(DecoupledIO(new CMOReq))
cmoReq.valid := x.in.head._1.valid && bank_eq(x.in.head._1.bits.address >> offsetBits, i, bankBits)
cmoReq.bits := x.in.head._1.bits
x.in.head._1.ready := cmoReq.ready
PipelineConnect(cmoReq, slice.io.cmoReq, slice.io.cmoReq.ready, false.B, false.B)
case None =>
slice.io.cmoReq.valid := false.B
slice.io.cmoReq.bits.opcode := 0.U
Expand Down
Loading