1
0

tilelink2 Parameters: fix width=1 address truncation bug

This commit is contained in:
Wesley W. Terpstra 2016-09-10 01:22:12 -07:00
parent 98a4facac7
commit 26f9e2dfbd

View File

@ -322,7 +322,7 @@ case class TLEdgeParameters(
require (maxTransfer >= manager.beatBytes)
val bundle = TLBundleParameters(
addrHiBits = log2Up(manager.maxAddress + 1) - log2Up(manager.beatBytes),
addrHiBits = log2Up(manager.maxAddress + 1) - log2Ceil(manager.beatBytes),
dataBits = manager.beatBytes * 8,
sourceBits = log2Up(client.endSourceId),
sinkBits = log2Up(manager.endSinkId),