diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/scala/firrtl/annotations/Annotation.scala | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/main/scala/firrtl/annotations/Annotation.scala b/src/main/scala/firrtl/annotations/Annotation.scala index bea88e51..5f792127 100644 --- a/src/main/scala/firrtl/annotations/Annotation.scala +++ b/src/main/scala/firrtl/annotations/Annotation.scala @@ -91,12 +91,19 @@ trait SingleTargetAnnotation[T <: Named] extends Annotation { /** [[MultiTargetAnnotation]] keeps the renamed targets grouped within a single annotation. */ trait MultiTargetAnnotation extends Annotation { - /** Contains a sequence of [[firrtl.annotations.Target Target]]. - * When created, [[targets]] should be assigned by `Seq(Seq(TargetA), Seq(TargetB), Seq(TargetC))` + /** Contains a nested sequence of [[firrtl.annotations.Target Target]] + * + * Each inner Seq should contain a single element. For example: + * {{{ + * def targets = Seq(Seq(foo), Seq(bar)) + * }}} */ - val targets: Seq[Seq[Target]] + def targets: Seq[Seq[Target]] - /** Create another instance of this Annotation */ + /** Create another instance of this Annotation + * + * The inner Seqs correspond to the renames of the inner Seqs of targets + */ def duplicate(n: Seq[Seq[Target]]): Annotation /** Assume [[RenameMap]] is `Map(TargetA -> Seq(TargetA1, TargetA2, TargetA3), TargetB -> Seq(TargetB1, TargetB2))` |
