@@ -8,19 +8,15 @@ import firrtl.AnnotationSeq
8
8
import firrtl .options .{Dependency , Phase , Viewer }
9
9
import firrtl .stage .{FirrtlOptions , OutputFileAnnotation }
10
10
11
- /** [[firrtl.options.Phase Phase ]] that adds an [[OutputFileAnnotation ]] if one does not already exist.
11
+ /** [[firrtl.options.Phase Phase ]] that adds an [[firrtl.stage.OutputFileAnnotation OutputFileAnnotation ]] if one does
12
+ * not already exist.
12
13
*
13
- * To determine the [[OutputFileAnnotation ]], the following precedence is used. Whichever happens first succeeds:
14
- * - Do nothing if an [[OutputFileAnnotation ]] or [[EmitAllModulesAnnotation ]] exist
14
+ * To determine the [[firrtl.stage.OutputFileAnnotation OutputFileAnnotation ]], the following precedence is
15
+ * used. Whichever happens first succeeds:
16
+ * - Do nothing if an [[firrtl.stage.OutputFileAnnotation OutputFileAnnotation ]] "--split-verilog" was specified
15
17
* - Use the main in the first discovered [[firrtl.stage.FirrtlCircuitAnnotation FirrtlCircuitAnnotation ]] (see note
16
18
* below)
17
19
* - Use "a"
18
- *
19
- * The file suffix may or may not be specified, but this may be arbitrarily changed by the [[Emitter ]].
20
- *
21
- * @note This [[firrtl.options.Phase Phase ]] has a dependency on [[AddCircuit ]]. Only a
22
- * [[firrtl.stage.FirrtlCircuitAnnotation FirrtlCircuitAnnotation ]] will be used to implicitly set the
23
- * [[OutputFileAnnotation ]] (not other [[firrtl.stage.CircuitOption CircuitOption ]] subclasses).
24
20
*/
25
21
class AddImplicitOutputFile extends Phase {
26
22
@@ -30,7 +26,7 @@ class AddImplicitOutputFile extends Phase {
30
26
31
27
override def invalidates (a : Phase ) = false
32
28
33
- /** Add an [[OutputFileAnnotation ]] to an [[AnnotationSeq ]] */
29
+ /** Add an [[firrtl.stage. OutputFileAnnotation OutputFileAnnotation ]] to an [[firrtl.AnnotationSeq AnnotationSeq ]] */
34
30
def transform (annotations : AnnotationSeq ): AnnotationSeq =
35
31
annotations.collectFirst { case _ : OutputFileAnnotation | SplitVerilog => annotations }.getOrElse {
36
32
val topName = Viewer [FirrtlOptions ]
0 commit comments