perf: optimize cv32e40p_alu_div and cv32e40p_mult critical paths - #1068
Open
pratyushrai301 wants to merge 1 commit into
Open
pratyushrai301 wants to merge 1 commit into
pratyushrai301 wants to merge 1 commit into
Conversation
pratyushrai301
force-pushed
the
perf/optimize-alu-div-and-mult
branch
2 times, most recently
from
July 9, 2026 10:44
e980408 to
57a38fa
Compare
… Fmax improvement Signed-off-by: pratyushrai301 <pratyush.rai@fermions.co>
pratyushrai301
force-pushed
the
perf/optimize-alu-div-and-mult
branch
from
July 9, 2026 10:49
57a38fa to
9e667c4
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.
Summary
Critical path optimization of two timing-critical submodules in the
CV32E40P RISC-V core, performed using Yosys LTP analysis + SAIGE CLI
agent. Part of Fermions-ASI's AI-assisted chip optimization research.
Changes
cv32e40p_alu_div (Integer Division Unit)
removing it from the divide-cycle critical path
with a single carry-invert adder, absorbing invert into first carry stage
Results:
cv32e40p_mult (Multiplier Unit)
— 3-input XOR/AND tree + single final CPA, removes 34-bit ripple chain
barrel-shift — cuts critical path from ~57 gates to ~33 FO4
Results:
Tool Flow
RTL → Yosys 0.66 (LTP + stat) → SAIGE CLI (critical path analysis
Files Changed