tilelink2: use 'connect' instead of TL-specific 'tl' to connect nodes
This commit is contained in:
		@@ -10,8 +10,11 @@ abstract class LazyModule
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  private val bindings = ListBuffer[() => Unit]()
 | 
					  private val bindings = ListBuffer[() => Unit]()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def tl(manager: TLBaseNode, client: TLBaseNode)(implicit sourceInfo: SourceInfo) = {
 | 
					  // Use as: connect(source -> sink, source2 -> sink2, ...)
 | 
				
			||||||
    bindings += manager.edge(client)
 | 
					  def connect(edges: (TLBaseNode, TLBaseNode)*)(implicit sourceInfo: SourceInfo) = {
 | 
				
			||||||
 | 
					    edges.foreach { case (source, sink) =>
 | 
				
			||||||
 | 
					      bindings += sink.edge(source)
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def module: LazyModuleImp
 | 
					  def module: LazyModuleImp
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user