Skip to content

Commit

Permalink
Merge pull request #3634 from Kevin99214/APBToTLfix
Browse files Browse the repository at this point in the history
Update APBtoTL scala to not flip apb address when doing conversion
  • Loading branch information
jerryz123 authored May 30, 2024
2 parents 2e1bfe5 + c68e850 commit d9a3d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/amba/apb/ToTL.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class APBToTL()(implicit p: Parameters) extends LazyModule

val beat = TransferSizes(beatBytes, beatBytes)
//TODO: The double negative here is to work around Chisel's broken implementation of widening ~x.
val aligned_addr = ~in.paddr
val aligned_addr = ~(~in.paddr | (beatBytes-1).U)
require(beatBytes == in.params.dataBits/8,
s"TL beatBytes(${beatBytes}) doesn't match expected APB data width(${in.params.dataBits})")
val data_size = (log2Ceil(beatBytes)).U
Expand Down

0 comments on commit d9a3d99

Please sign in to comment.