diff options
| author | Jack Koenig | 2017-12-13 21:13:52 -0800 |
|---|---|---|
| committer | edwardcwang | 2017-12-13 22:09:55 -0800 |
| commit | c327dc328ca819031a086ae102fefe2909831e24 (patch) | |
| tree | e9b4c9a97b2cb37247b382ce3889127dcfb8adc9 /src/main/scala/chisel3/util/Valid.scala | |
| parent | b657a2d5de6d53d5ce7da28908c89773e35083a8 (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.scala | 16 |
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 { |
