Finds the absolute paths (each represented by a Seq of instances representing the chain of hierarchy) of all instances of a particular module.
Finds the absolute paths (each represented by a Seq of instances representing the chain of hierarchy) of all instances of a particular module. Note that this includes one implicit instance of the top (main) module of the circuit. If the module is not instantiated within the hierarchy of the top module of the circuit, it will return Nil.
the name of the selected module
a Seq[ Seq[WDefInstance] ] of absolute instance paths
A list of absolute paths (each represented by a Seq of instances) of all module instances in the Circuit.
Given a circuit, returns a map from module name to a map in turn mapping instances names to corresponding module names
Returns a sequence that can be turned into a map from module name to instances defined in said module.
returns the underlying graph
maps module names to the DefModule node
Module order from highest module to leaf module
All modules in the circuit reachable from the top module
A count of the *static* number of instances of each module.
A count of the *static* number of instances of each module. For any module other than the top (main) module, this is equivalent to the number of inst statements in the circuit instantiating each module, irrespective of the number of times (if any) the enclosing module appears in the hierarchy. Note that top module of the circuit has an associated count of one, even though it is never directly instantiated. Any modules *not* instantiated at all will have a count of zero.
returns the key to the top (main) module
All modules *not* reachable from the top module of the circuit
A class representing the instance hierarchy of firrtl Circuit This is a faster version of the old
InstanceGraph
which only uses pairs of InstanceName and Module name as vertex keys instead of using WDefInstance which will hash the instance type causing some performance issues.