summaryrefslogtreecommitdiff
path: root/src/main/scala/chisel3
diff options
context:
space:
mode:
authorJiuyang Liu2021-06-14 14:58:01 +0000
committerJiuyang Liu2021-06-16 10:32:04 +0800
commitc11fdf33981365927ea085b7aee095933a4a5ddf (patch)
tree60dc7ec4299562f94c44f1b76d3da2e7e31a0910 /src/main/scala/chisel3
parent37ec9eb3c3008939605bddfad9096d9b2b47ccdc (diff)
add documentation for DecodeTableAnnotation.
Diffstat (limited to 'src/main/scala/chisel3')
-rw-r--r--src/main/scala/chisel3/util/experimental/decode/DecodeTableAnnotation.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/scala/chisel3/util/experimental/decode/DecodeTableAnnotation.scala b/src/main/scala/chisel3/util/experimental/decode/DecodeTableAnnotation.scala
index cd289a5d..2b50ef90 100644
--- a/src/main/scala/chisel3/util/experimental/decode/DecodeTableAnnotation.scala
+++ b/src/main/scala/chisel3/util/experimental/decode/DecodeTableAnnotation.scala
@@ -4,6 +4,15 @@ package chisel3.util.experimental.decode
import firrtl.annotations.{Annotation, ReferenceTarget, SingleTargetAnnotation}
+/** DecodeTableAnnotation used to store a decode result for a specific [[TruthTable]].
+ * This is useful for saving large [[TruthTable]] during a elaboration time.
+ *
+ * @note user should manage the correctness of [[minimizedTable]].
+ *
+ * @param target output wire of a decoder.
+ * @param truthTable input [[TruthTable]] encoded in a serialized [[TruthTable]].
+ * @param minimizedTable minimized [[truthTable]] encoded in a serialized [[TruthTable]].
+ */
case class DecodeTableAnnotation(
target: ReferenceTarget,
truthTable: String,