constructs an instance graph from a Circuit
constructs an instance graph from a Circuit
the Circuit to analyze
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
Given a circuit, returns a map from module name to children instance/module firrtl.annotations.TargetTokens
Given a circuit, returns a map from module name to children instance/module definitions
A directed graph showing the instance dependencies among modules in the circuit.
A directed graph showing the instance dependencies among modules in the circuit. Every WDefInstance of a module has an edge to every WDefInstance arising from every instance statement in that module.
Finds the lowest common ancestor instances for two module names in a design
Module order from highest module to leaf module
Module order from highest module to leaf module
sequence of modules in order from top to leaf
The set of all modules in the circuit
The set of 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 1, even though it is never directly instantiated.
The set of all modules *not* reachable in the circuit
A class representing the instance hierarchy of a working IR Circuit