fpnew: Fix PULP DivSqrt RDN/RUP rounding, document unsupported RMM - #179
Open
hailinzeng wants to merge 1 commit into
Open
hailinzeng wants to merge 1 commit into
hailinzeng wants to merge 1 commit into
Conversation
hailinzeng
force-pushed
the
fix/pulp-divsqrt-rounding-mode
branch
from
July 28, 2026 00:22
5d754d0 to
458a929
Compare
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.
DivSqrtSel=PULP forwarded RISC-V rounding-mode encoding directly into div_sqrt_top_mvp's RM_SI, but the two encodings disagree for RDN(2)/RUP(3), causing results to round in the wrong direction. Add the missing translation in fpnew_divsqrt_multi.sv.
RMM has no equivalent in div_sqrt_top_mvp at all (only ties-to-even is implemented) and can't be fixed by translation alone; add a $warning in fpnew_opgroup_multifmt_slice.sv documenting this, matching the existing FP8/THMULTI notice pattern.
Partially fixes #178 (RDN/RUP); RMM is a separate, deeper issue (missing hardware support in div_sqrt_top_mvp itself) and is intentionally left unaddressed here.