Create a namespace with this circuit
A class representing the instance hierarchy of a working IR Circuit
A class representing the instance hierarchy of a working IR Circuit
The current implementation has some performance problems, which is why InstanceKeyGraph exists and should be preferred for new use cases. Eventually the old class will be deprecated in favor of the new implementation. The performance problems in the old implementation stem from the fact that DefInstance is used as the key to the underlying Map. DefInstance contains the type of the module besides the module and instance names. This type is not needed as it can be inferred from the module name. If the module name is the same, the type will be the same and vice versa. Hashing and comparing deep bundle types however is inefficient which can manifest in slower then necessary lookups and insertions.
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.
This is not intended to be used as a metric for the size of an actual circuit, but rather to debug the compiler itself Works because all FirrtlNodes implement Product (case classes do)
Create a namespace with this circuit
namespace is used by RenameModules to get unique names