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

Fix cat of zero-width SInt (bp #2116) (#2118)

* Fix cat of zero-width SInt (#2116)

Previously, concatenating two SInts where one is of zero-width would
return the non-zero-width SInt. This is incorrect because the output of
Cat should be of type UInt. Now the ZeroWidth transform will introduce a
cast when removing a Cat when the argument type is non-UInt.

(cherry picked from commit fd55c51b

)

# Conflicts:
#	src/main/scala/firrtl/passes/ZeroWidth.scala

* Fix merge conflicts

Co-authored-by: default avatarJack Koenig <koenig@sifive.com>
parent ee96b682
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment