Merge pull request #508 from ucb-bar/jchang
Add iterator function to LazyModule to iterate over all nodes
This commit is contained in:
commit
b448387899
@ -85,6 +85,11 @@ abstract class LazyModule()(implicit val p: Parameters)
|
||||
} }
|
||||
children.filter(!_.omitGraphML).foreach { c => c.edgesGraphML(buf, pad) }
|
||||
}
|
||||
|
||||
def nodeIterator(iterfunc: (LazyModule) => Unit): Unit = {
|
||||
iterfunc(this)
|
||||
children.foreach( _.nodeIterator(iterfunc) )
|
||||
}
|
||||
}
|
||||
|
||||
object LazyModule
|
||||
|
Loading…
Reference in New Issue
Block a user