Skip to content

Commit

Permalink
Merge pull request #52 from sifive/CIP-1166-fix-Koala
Browse files Browse the repository at this point in the history
[CIP-1166] AHBToTL: fix an assertion failure on power-0 (#2523)
  • Loading branch information
jchang0 authored Jun 18, 2020
2 parents ab0e87c + feb968d commit 205f921
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 205f921

Please sign in to comment.