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

APBToTL: Qualify address alignment assertion #2314

Merged
merged 1 commit into from
Mar 2, 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
4 changes: 3 additions & 1 deletion src/main/scala/amba/apb/ToTL.scala
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ class APBToTL()(implicit p: Parameters) extends LazyModule
out.a.bits.source := UInt(0)
// TL requires addresses be aligned to their size.
out.a.bits.address := aligned_addr
assert(in.paddr === out.a.bits.address, "Do not expect to have to perform alignment in APB2TL Conversion")
when (out.a.fire()) {
assert(in.paddr === out.a.bits.address, "Do not expect to have to perform alignment in APB2TL Conversion")
}
out.a.bits.data := in.pwdata
out.a.bits.mask := Mux(in.pwrite, in.pstrb, ~0.U(beatBytes.W))
out.a.bits.corrupt := Bool(false)
Expand Down