diff options
| author | Andrew Waterman | 2019-01-17 14:38:47 -0800 |
|---|---|---|
| committer | Andrew Waterman | 2019-01-17 15:46:19 -0800 |
| commit | 8e683de37bf92674f85a20b679f4cf64bcbe4dd7 (patch) | |
| tree | 60ddb447767a113458ba4b4fd1b27664796f8305 | |
| parent | 52e86c95b1819b57caca8bdd4e20ac09b4065d05 (diff) | |
Fix width-inference description of Bits.<<
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/core/Bits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Bits.scala b/chiselFrontend/src/main/scala/chisel3/core/Bits.scala index bf1f7f63..bbe6f7e2 100644 --- a/chiselFrontend/src/main/scala/chisel3/core/Bits.scala +++ b/chiselFrontend/src/main/scala/chisel3/core/Bits.scala @@ -323,7 +323,7 @@ sealed abstract class Bits(private[chisel3] val width: Width) extends Element wi * * @param that a hardware component * @return this $coll dynamically shifted left by `that` many places, shifting in zeros from the right - * @note The width of the returned $coll is `width of this + pow(2, width of that)`. + * @note The width of the returned $coll is `width of this + pow(2, width of that) - 1`. * @group Bitwise */ final def << (that: UInt): Bits = macro SourceInfoWhiteboxTransform.thatArg |
