Skip to content

Commit

Permalink
Update APBtoTL scala to not flip apb address when doing conversion
Browse files Browse the repository at this point in the history
APB address is getting bitwise flipped to get TL address which then immediately fails the assertion that checks they are the same. Revert line that does the flip to previous version.
  • Loading branch information
Kevin99214 committed May 22, 2024
1 parent dbcb06a commit c68e850
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 @@ -53,7 +53,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 c68e850

Please sign in to comment.