Unverified Commit a5e445cf authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Fix widths for literal values in Bundle literals (backport #4082) (#4090)

* 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/BundleLiteralSpec.scala
#	src/test/scala/chiselTests/ConnectableSpec.scala
#	src/test/scala/chiselTests/VecLiteralSpec.scala

* Resolve backport conflicts and waive false MiMa failure.

---------

Co-authored-by: default avatarJack Koenig <koenig@sifive.com>
parent e5d37342
Pipeline #2612 failed with stages
in 0 seconds