Describe the bug
When zero-extending a signal, if there's nothing to zero-extend, we can just immediately return this rather than go through a Swizzle.
Additionally, when Swizzle gets only one signal with width >0, it shouldn't still add the {} around it.
To Reproduce
- Call
zeroExtend on a Logic with the newWidth equal to the width. Note that it creates a swizzle unnecessarily.
- Swizzle two signals, one of which is 0-width, and observe generated SV to contain
{} around the one remaining signal.
Expected behavior
No response
Actual behavior
No response
Additional: Dart SDK info
No response
Additional: pubspec.yaml
No response
Additional: Context
No response
Describe the bug
When zero-extending a signal, if there's nothing to zero-extend, we can just immediately return
thisrather than go through aSwizzle.Additionally, when
Swizzlegets only one signal with width >0, it shouldn't still add the{}around it.To Reproduce
zeroExtendon aLogicwith thenewWidthequal to thewidth. Note that it creates aswizzleunnecessarily.{}around the one remaining signal.Expected behavior
No response
Actual behavior
No response
Additional: Dart SDK info
No response
Additional: pubspec.yaml
No response
Additional: Context
No response