Skip to content

Commit

Permalink
feat: add nextSource in cache IO
Browse files Browse the repository at this point in the history
  • Loading branch information
miaochenlu committed Jan 10, 2025
1 parent b08c17e commit d9f91c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/grapecoveDcache/DCache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ class GPCDCacheImp(outer: BaseDCache) extends BaseDCacheImp(outer) {

// return resp
io.nextCycleWb := mshrs.io.nextCycleWb
io.nextSource := mshrs.io.nextSourceId
io.resp.valid := s1_cacheResp.valid | mshrsResp.valid
io.resp.bits := Mux(s1_cacheResp.valid, s1_cacheResp.bits, mshrsResp.bits)

Expand Down
1 change: 1 addition & 0 deletions src/main/scala/grapecoveDcache/DataExchangeIO.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class DataExchangeIO extends Bundle {
val req = Flipped(Decoupled(new DataExchangeReq))
val resp = Valid(new DataExchangeResp)
val nextCycleWb = Bool() // next cycle occupy wb stage
val nextSource = UInt(MasterSource.width.W)
val fenceRdy = Bool()
val s1_kill = Input(Bool())
}
Expand Down

0 comments on commit d9f91c4

Please sign in to comment.