Commit 1738c1ef authored by Andrew Waterman's avatar Andrew Waterman Committed by Adam Izraelevitz
Browse files

Improve Shl codegen; eliminate Shlw WIR node (#994)

* Improve Shl codegen; eliminate Shlw WIR node

If we emit shl(x, k) as {x, k'h0} instead of (x << k), then there's
no need for Verilog-specific padding in the PadWidths pass.  Avoiding
the redundant padding improves compiler/simulator performance and
renders Shlw unnecessary.

* [skip formal checks] Add test
parent df3c3fb5
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