Skip to content

Commit

Permalink
add Prefetch2L2Stream and Prefetch2L2Stride
Browse files Browse the repository at this point in the history
  • Loading branch information
happy-lx committed Aug 31, 2023
1 parent cd3d4ee commit c2343fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/scala/coupledL2/prefetch/Prefetcher.scala
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ class Prefetcher(implicit p: Parameters) extends PrefetchModule {
pfRcv.io.train.bits := 0.U.asTypeOf(new PrefetchTrain)
pfRcv.io.resp.valid := false.B
pfRcv.io.resp.bits := 0.U.asTypeOf(new PrefetchResp)
assert(!pfRcv.io.req.valid || pfRcv.io.req.bits.pfSource === MemReqSource.Prefetch2L2SMS.id.U)
assert(!pfRcv.io.req.valid ||
pfRcv.io.req.bits.pfSource === MemReqSource.Prefetch2L2SMS.id.U ||
pfRcv.io.req.bits.pfSource === MemReqSource.Prefetch2L2Stream.id.U ||
pfRcv.io.req.bits.pfSource === MemReqSource.Prefetch2L2Stride.id.U
)

// prefetch from local prefetchers: BOP & TP
bop.io.train <> io.train
Expand Down

0 comments on commit c2343fd

Please sign in to comment.