diff options
| author | David Biancolin | 2021-10-19 13:47:35 -0700 |
|---|---|---|
| committer | GitHub | 2021-10-19 20:47:35 +0000 |
| commit | 5532d5024f70dc84041560a3e70029deda681e01 (patch) | |
| tree | 2554744b0eaece097f455d481803fff6a2e3f4a7 /src/main/scala/firrtl/options | |
| parent | 1796f37ee36d722df71bd3f580cee9d01be6f4e9 (diff) | |
Remove The WriteEmitted Phase (#2390)
Diffstat (limited to 'src/main/scala/firrtl/options')
| -rw-r--r-- | src/main/scala/firrtl/options/phases/WriteOutputAnnotations.scala | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/scala/firrtl/options/phases/WriteOutputAnnotations.scala b/src/main/scala/firrtl/options/phases/WriteOutputAnnotations.scala index 2cf4c92f..ba38bb87 100644 --- a/src/main/scala/firrtl/options/phases/WriteOutputAnnotations.scala +++ b/src/main/scala/firrtl/options/phases/WriteOutputAnnotations.scala @@ -19,8 +19,14 @@ import java.io.{BufferedOutputStream, File, FileOutputStream, PrintWriter} import scala.collection.mutable -/** [[firrtl.options.Phase Phase]] that writes an [[AnnotationSeq]] to a file. A file is written if and only if a - * [[StageOptions]] view has a non-empty [[StageOptions.annotationFileOut annotationFileOut]]. +/** [[firrtl.options.Phase Phase]] that writes an [[AnnotationSeq]] to the filesystem, + * according to the following rules: + * 1) Annotations which extend [[CustomFileEmission]] are written seperately to their prescribed + * destinations and replaced per [[[CustomFileEmission.replacements replacements]]. + * 2) All remaining annotations are written to destination specified by + * [[StageOptions.annotationFileOut annotationFileOut]], iff the stage option is set, with the following exceptions: + * a) Annotations extending [[Unserializable]] are not written + * b) Deleted annotations are not written unless [[StageOptions.writeDeleted writeDeleted]] is set */ class WriteOutputAnnotations extends Phase { |
