coreplex: RocketTileWrapper now HasCrossingHelper
This commit is contained in:
committed by
Wesley W. Terpstra
parent
9fe35382ea
commit
b48ab985d0
@ -25,8 +25,13 @@ abstract class LazyModule()(implicit val p: Parameters)
|
||||
LazyModule.scope = Some(this)
|
||||
parent.foreach(p => p.children = this :: p.children)
|
||||
|
||||
// suggestedName accumulates Some(names), taking the final one. Nones are ignored.
|
||||
private var suggestedName: Option[String] = None
|
||||
def suggestName(x: String) = suggestedName = Some(x)
|
||||
def suggestName(x: String): this.type = suggestName(Some(x))
|
||||
def suggestName(x: Option[String]): this.type = {
|
||||
x.foreach { n => suggestedName = Some(n) }
|
||||
this
|
||||
}
|
||||
|
||||
private lazy val childNames =
|
||||
getClass.getMethods.filter { m =>
|
||||
|
Reference in New Issue
Block a user