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

Add --dont-fold option to disable folding prim ops (#2040) (#2050)



This adds a --dont-fold options (backed by a DisableFold annotation)
that lets a user specify primitive operations which should never be
folded. This feature lets a user disable certain folds which may be
allowable in FIRRTL (or by any sane synthesis tool), but due to inane
Verilog language design causes formal equivalence tools to fail due to
the fold.

Add a test that a user can disable `a / a -> 1` with a
DisableFold(PrimOps.Div) annotation.

Signed-off-by: default avatarSchuyler Eldridge <schuyler.eldridge@sifive.com>
(cherry picked from commit 698a9dca

)

Co-authored-by: default avatarSchuyler Eldridge <schuyler.eldridge@sifive.com>
parent 9d99dc1a
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