Perform the transform, encode renaming with RenameMap, and can delete annotations Called by runTransform.
Perform the transform, encode renaming with RenameMap, and can delete annotations Called by runTransform.
Input Firrtl AST
A transformed Firrtl AST
Replace zero width mems before running the rest of the ZeroWidth transform.
Replace zero width mems before running the rest of the ZeroWidth transform. Dealing with mems is a bit tricky because the address, en, clk ports of the memory are not width zero even if data is.
This replaces memories with a DefWire() bundle that contains the address, en, clk, and data fields implemented as zero width wires. Running the rest of the ZeroWidth transform will remove these dangling references properly.
The firrtl.CircuitForm that this transform requires to operate on
The firrtl.CircuitForm that this transform requires to operate on
A convenience function useful for debugging and error messages
A convenience function useful for debugging and error messages
The firrtl.CircuitForm that this transform outputs
The firrtl.CircuitForm that this transform outputs
Perform the transform and update annotations.
Perform the transform and update annotations.
Input Firrtl AST
A transformed Firrtl AST
Convenience method to get annotations relevant to this Transform
Convenience method to get annotations relevant to this Transform
The CircuitState form which to extract annotations
A collection of annotations
(Since version 1.1) Just collect the actual Annotation types the transform wants