tilelink: add Bus.toSyncSlaves for easy BufferChain attachment
This commit is contained in:
		| @@ -79,7 +79,7 @@ abstract class TLBusWrapper(params: TLBusParams, val busName: String)(implicit p | |||||||
|  |  | ||||||
|   def bufferToSlaves: TLOutwardNode = outwardBufNode  |   def bufferToSlaves: TLOutwardNode = outwardBufNode  | ||||||
|  |  | ||||||
|   def toAsyncSlaves(sync: Int = 3, name: Option[String] = None): TLAsyncOutwardNode = { |   def toAsyncSlaves(sync: Int = 3, name: Option[String] = None, addBuffers: Int = 0): TLAsyncOutwardNode = { | ||||||
|     val source = LazyModule(new TLAsyncCrossingSource(sync)) |     val source = LazyModule(new TLAsyncCrossingSource(sync)) | ||||||
|     name.foreach{ n => source.suggestName(s"${busName}_${n}_TLAsyncCrossingSource")} |     name.foreach{ n => source.suggestName(s"${busName}_${n}_TLAsyncCrossingSource")} | ||||||
|     source.node :*= outwardNode |     source.node :*= outwardNode | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user