diff options
| author | Colin Schmidt | 2016-08-09 10:51:04 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2016-08-09 10:51:04 -0700 |
| commit | ef74500b8ae2d3804a43aa5a1fecc59cfbea13f5 (patch) | |
| tree | 419646002876791713160d60587fb60f3c8458b6 /src/main | |
| parent | ce42ef15128a626e723249ae7b129fb5a370fa9c (diff) | |
counter(inc,n) example should reflect actual use (#252)
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/scala/chisel3/util/Counter.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/chisel3/util/Counter.scala b/src/main/scala/chisel3/util/Counter.scala index 40615769..1c95190b 100644 --- a/src/main/scala/chisel3/util/Counter.scala +++ b/src/main/scala/chisel3/util/Counter.scala @@ -32,8 +32,8 @@ class Counter(val n: Int) { /** Counter Object * Example Usage: * {{{ val countOn = Bool(true) // increment counter every clock cycle - * val myCounter = Counter(countOn, n) - * when ( myCounter.value === UInt(3) ) { ... } }}}*/ + * val (myCounterValue, myCounterWrap) = Counter(countOn, n) + * when ( myCounterValue === UInt(3) ) { ... } }}}*/ object Counter { def apply(n: Int): Counter = new Counter(n) |
