summaryrefslogtreecommitdiff
path: root/src/main/scala/chisel3/util/Valid.scala
diff options
context:
space:
mode:
authorJack Koenig2017-12-13 21:13:52 -0800
committeredwardcwang2017-12-13 22:09:55 -0800
commitc327dc328ca819031a086ae102fefe2909831e24 (patch)
treee9b4c9a97b2cb37247b382ce3889127dcfb8adc9 /src/main/scala/chisel3/util/Valid.scala
parentb657a2d5de6d53d5ce7da28908c89773e35083a8 (diff)
Improve some of the ScalaDoc in chisel3.util
Diffstat (limited to 'src/main/scala/chisel3/util/Valid.scala')
-rw-r--r--src/main/scala/chisel3/util/Valid.scala16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/main/scala/chisel3/util/Valid.scala b/src/main/scala/chisel3/util/Valid.scala
index 7017b7a1..95f0dcea 100644
--- a/src/main/scala/chisel3/util/Valid.scala
+++ b/src/main/scala/chisel3/util/Valid.scala
@@ -24,13 +24,15 @@ object Valid {
}
/** A hardware module that delays data coming down the pipeline
- by the number of cycles set by the latency parameter. Functionality
- is similar to ShiftRegister but this exposes a Pipe interface.
-
- Example usage:
- val pipe = new Pipe(UInt())
- pipe.io.enq <> produce.io.out
- consumer.io.in <> pipe.io.deq
+ * by the number of cycles set by the latency parameter. Functionality
+ * is similar to ShiftRegister but this exposes a Pipe interface.
+ *
+ * Example usage:
+ * {{{
+ * val pipe = new Pipe(UInt())
+ * pipe.io.enq <> produce.io.out
+ * consumer.io.in <> pipe.io.deq
+ * }}}
*/
object Pipe
{