1
0

diplomacy: a type of connect that always disables monitors (#828)

This commit is contained in:
Henry Cook
2017-06-28 21:48:10 -07:00
committed by Wesley W. Terpstra
parent 992b480c74
commit 6e5a4c687f
4 changed files with 18 additions and 13 deletions

View File

@ -347,10 +347,9 @@ trait HasPeripheryErrorSlave extends HasSystemNetworks {
private val maxXfer = min(config.address.map(_.alignment).max.toInt, 4096)
val error = LazyModule(new TLError(config.address, peripheryBusConfig.beatBytes))
// Override the default Parameters to exclude the TLMonitor between the Fragmenter and error slave.
// Most slaves do not support a 4kB burst so this slave ends up with many more source bits than others.
private def sourceInfo(implicit x: chisel3.internal.sourceinfo.SourceInfo) = x
error.node.:=(TLFragmenter(peripheryBusConfig.beatBytes, maxXfer)(peripheryBus.node))(new WithoutTLMonitors ++ p, sourceInfo)
// Most slaves do not support a 4kB burst so this slave ends up with many more source bits than others;
// we exclude the onerously large TLMonitor that results.
error.node connectButDontMonitor TLFragmenter(peripheryBusConfig.beatBytes, maxXfer)(peripheryBus.node)
}