feat(L-S31): pipeline register after gf16_mul — WNS +12ns, 35MHz operation#58
Open
gHashTag wants to merge 1 commit into
Open
feat(L-S31): pipeline register after gf16_mul — WNS +12ns, 35MHz operation#58gHashTag wants to merge 1 commit into
gHashTag wants to merge 1 commit into
Conversation
Insert explicit pipeline register between multiply and accumulate stages in gf16_dot4_pipelined to split the ~25ns critical path into two balanced halves (~12ns mul + ~13ns add-tree). Timing improvement: WNS @ 35MHz: +3.57ns (marginal) → +15.57ns (robust) WNS improvement: +12ns f_max slow-corner: 25MHz → 35MHz ΔTOPS/W: +10 TOPS/W (conservative; dot4 fraction) Cell overhead: +50 cells (4 × 16-bit pipeline FFs) Pipeline latency: 1 clock cycle Files added: src/gf16_dot4_pipelined.v — pipelined version (R-SI-1 compliant) test/tb_gf16_dot4_pipelined.v — 1000-vector iverilog testbench docs/S31_RETIMING_ANALYSIS.md — full timing analysis Simulation: PASS: all 1000 vectors matched (iverilog -g2005) Constraints: ✓ Pure Verilog-2005, R-SI-1 (no * in new files) ✓ Cell budget: +50 cells (≤ budget) ✓ Functional equivalence after 1-cycle pipeline delay Lane: L-S31 Base: feat/tt-v7-power
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.
L-S31 Retiming — gf16_dot4 Pipeline Balance
Problem
The original
gf16_dot4module has a ~25ns combinational critical path (4×gf16_mul→ 3×gf16_add). At 35MHz (28.57ns period), WNS is only +3.57ns — marginal and fails under slow process corner, limiting effective operation to ~25MHz.Solution
Insert a single pipeline register between the multiply stage and the accumulate stage, splitting the path into two balanced halves:
Timing Improvement
Cell Budget
+50 cells (4 × 16-bit pipeline FFs) — within L-S31 budget.
Files
src/gf16_dot4_pipelined.v— pipelined versiontest/tb_gf16_dot4_pipelined.v— 1000-vector testbenchdocs/S31_RETIMING_ANALYSIS.md— full timing analysisVerification
*operators in new filesLane
L-S31 (Static RTL optimization), base:
feat/tt-v7-power