Skip to content

fpnew: Fix PULP DivSqrt RDN/RUP rounding, document unsupported RMM - #179

Open
hailinzeng wants to merge 1 commit into
openhwfoundation:developfrom
hailinzeng:fix/pulp-divsqrt-rounding-mode
Open

hailinzeng wants to merge 1 commit into
openhwfoundation:developfrom
hailinzeng:fix/pulp-divsqrt-rounding-mode

Conversation

@hailinzeng

Copy link
Copy Markdown

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.

@hailinzeng
hailinzeng force-pushed the fix/pulp-divsqrt-rounding-mode branch from 5d754d0 to 458a929 Compare July 28, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DivSqrtSel=PULP gives wrong result vs DivSqrtSel=THMULTI for RUP/RDN/RMM

1 participant