Skip to content

Commit

Permalink
ICache: initializing p1_vaddr and p2_vaddr in prefetch pipeline (#2843)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssszwic authored Apr 3, 2024
1 parent 3953b70 commit 1d97d64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/xiangshan/frontend/icache/IPrefetch.scala
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class IPrefetchPipe(implicit p: Parameters) extends IPrefetchModule
*/
val p1_valid = generatePipeControl(lastFire = p0_fire, thisFire = p1_fire || p1_discard, thisFlush = false.B, lastFlush = false.B)

val p1_vaddr = RegEnable(p0_vaddr, p0_fire)
val p1_vaddr = RegEnable(p0_vaddr, 0.U(VAddrBits.W), p0_fire)
val p1_req_cancel = Wire(Bool())

/** 1. Receive resp from ITLB (no blocked) */
Expand Down Expand Up @@ -408,7 +408,7 @@ class IPrefetchPipe(implicit p: Parameters) extends IPrefetchModule
val p2_valid = generatePipeControl(lastFire = p1_fire, thisFire = p2_fire || p2_discard, thisFlush = false.B, lastFlush = false.B)

val p2_paddr = RegEnable(p1_paddr, p1_fire)
val p2_vaddr = RegEnable(p1_vaddr, p1_fire)
val p2_vaddr = RegEnable(p1_vaddr, 0.U(VAddrBits.W), p1_fire)
val p2_req_cancel = Wire(Bool())
val p2_vidx = get_idx(p2_vaddr)

Expand Down

0 comments on commit 1d97d64

Please sign in to comment.