You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
If there is a division or a remainder operation where the denominator is a constant power of two, the firrtl compiler should replace the div/rem operation with appropriate bit slicing or a static shift. Personally I would prefer to just use bit slicing since that is imho a better canonical form.
This would allow users to write:
valr= in /4.U
instead of:
valr= in >>2.U
and get (almost) identical Verilog.
This is important because a division in Verilog might be a red flag. But also, personally, I would prefer if the SMT/btor2 backend only emitted div/rem is it absolutely needs to.
Type of Feature
better optimization
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Feature Description
If there is a division or a remainder operation where the denominator is a constant power of two, the firrtl compiler should replace the
div
/rem
operation with appropriate bit slicing or a static shift. Personally I would prefer to just use bit slicing since that is imho a better canonical form.This would allow users to write:
instead of:
and get (almost) identical Verilog.
This is important because a division in Verilog might be a red flag. But also, personally, I would prefer if the SMT/btor2 backend only emitted
div
/rem
is it absolutely needs to.Type of Feature
The text was updated successfully, but these errors were encountered: