Fix widths for literal values in Bundle literals (backport #4082) (#4091)
* Fix widths for literal values in Bundle literals (#4082) * Fix widths for literal values in Bundle literals Previously, the user-specified (or unspecified minimum width) of the literal would be used in some operations like concatenation. * Implicitly truncate too-wide literals in Bundle literals This is to fix a bug in concatenation without breaking things relying on implicit truncation. This will be a warning in newer versions of Chisel. (cherry picked from commit 3939e570 ) # Conflicts: # core/src/main/scala/chisel3/internal/firrtl/IR.scala # src/test/scala/chiselTests/ConnectableSpec.scala # src/test/scala/chiselTests/VecLiteralSpec.scala * Waive false binary compatibility failure Also move waivers from files to build.sbt. --------- Co-authored-by:Jack Koenig <koenig@sifive.com>
Please register or sign in to comment