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

AHBToTL: fix an assertion failure on power-0 #2523

Merged
merged 1 commit into from
Jun 16, 2020
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
2 changes: 1 addition & 1 deletion src/main/scala/amba/ahb/ToTL.scala
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class AHBToTL()(implicit p: Parameters) extends LazyModule
// Double-check that the above register has the intended effect since
// this is an additional requirement not tested by third-party VIP.
// hresp(0) && !hreadyout => next cycle has same hrdata value
assert (!RegNext(in.hresp(0) && !in.hreadyout) || RegNext(in.hrdata) === in.hrdata)
assert (!RegNext(in.hresp(0) && !in.hreadyout, false.B) || RegNext(in.hrdata) === in.hrdata)

// In a perfect world, we'd use these signals
val hresp = d_fail || (out.d.valid && (out.d.bits.denied || out.d.bits.corrupt))
Expand Down