formal: add SymbiYosys proof for cc_heaviside#351
Open
briann-bui wants to merge 1 commit into
Open
Conversation
Add a formal verification harness and property checker for cc_heaviside. Properties proven: - Full functional equivalence against a reference model - Bit 0 is always asserted for any valid input - All-ones mask when x_i == Width-1 (upper boundary) - Only bit 0 set when x_i == 0 (lower boundary) - Monotonicity: bit at position x_i is always set - Upper bits (above x_i) are always zero The elaboration harness (cc_heaviside_formal) exercises widths from 1 to 33 inclusive, covering both power-of-two and non-power-of-two parametrizations. The new heaviside.check target is integrated into the existing formal/Makefile and follows the same conventions as the lzc target. Closes pulp-platform#350
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add open-source formal verification for cc_heaviside (Closes #350, subtask of #288).
Changes
New Files
Modified Files
How to Run
\\�ash
cd formal
make heaviside.check
\\
Checklist