Skip to content

Commit

Permalink
IBuffer: consider valid signal in XSError (#2921)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang-Haojin committed Apr 27, 2024
1 parent 7bc477b commit 78c76c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/xiangshan/frontend/IBuffer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class IBuffer(implicit p: Parameters) extends XSModule with HasCircularQueuePtrH
entry := Mux(wen, writeEntry, entry)

// Debug Assertion
XSError(PopCount(validOH) > 1.asUInt, "validOH is not OneHot")
XSError(io.in.valid && PopCount(validOH) > 1.asUInt, "validOH is not OneHot")
}
}
// Pointer maintenance
Expand Down

0 comments on commit 78c76c7

Please sign in to comment.