diff options
| author | Leway Colin | 2020-01-25 09:42:59 +0800 |
|---|---|---|
| committer | mergify[bot] | 2020-01-25 01:42:59 +0000 |
| commit | f1c4395bd608234fef5a60d8851036d1acb2382f (patch) | |
| tree | 909fcefbc51c2c67a0984e2ef4f861be98e9d0ba /chiselFrontend/src/main/scala/chisel3/Reg.scala | |
| parent | 160e019e38c933112836cccbb38c5f397427cf7f (diff) | |
Fixed code example typo in comment (#1294)
Co-authored-by: Jim Lawson <ucbjrl@berkeley.edu>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/Reg.scala')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/Reg.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/Reg.scala b/chiselFrontend/src/main/scala/chisel3/Reg.scala index 51c59bdb..a3e6b2a0 100644 --- a/chiselFrontend/src/main/scala/chisel3/Reg.scala +++ b/chiselFrontend/src/main/scala/chisel3/Reg.scala @@ -108,13 +108,13 @@ object RegNext { * val x = Wire(UInt()) * val y = Wire(UInt(8.W)) * val r1 = RegInit(x) // width will be inferred - * val r2 = RegInit(y) // width will be inferred + * val r2 = RegInit(y) // width is set to 8 * }}} * * 3. [[Aggregate]] initializer - width will be set to match the aggregate * * {{{ - * class MyBundle { + * class MyBundle extends Bundle { * val unknown = UInt() * val known = UInt(8.W) * } |
