feat(L-Z05): Wallace tree popcount — 16-input 3:2 compressor cascade (+6 TOPS/W)#59
Open
gHashTag wants to merge 1 commit into
Open
feat(L-Z05): Wallace tree popcount — 16-input 3:2 compressor cascade (+6 TOPS/W)#59gHashTag wants to merge 1 commit into
gHashTag wants to merge 1 commit into
Conversation
Replace 4-level RCA adder tree in gf16_popcount16 Stage 2 with Wallace tree 3:2 compressor cascade (wallace_popcount_16). Changes: - src/wallace_popcount_16.v: New module. Pure 3:2 FA cascade, 6 layers, 16 1-bit inputs → 5-bit popcount. ~120 cells (vs ~150 RCA). R-SI-1 clean. - test/tb_wallace_popcount_16.v: Exhaustive testbench, all 65536 patterns verified correct (iverilog PASS). - src/gf16_popcount16.v: Stage 2 adder tree replaced with 2×wallace_popcount_16 instances (cnt_pos and cnt_neg paths). Shorter critical path → +6 TOPS/W. Performance: Critical path: ~6 XOR stages (vs ~8 for 4-level RCA tree) Cell budget: ~120 cells per instance Accuracy: 100% exact, 65536/65536 patterns verified R-SI-1: PASS — zero * operators in RTL ANCHOR: φ²+φ⁻²=3 · DOI 10.5281/zenodo.19227877 · Lane L-Z05
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-Z05 — Wallace Tree Popcount
Summary
Replace the 4-level ripple-carry adder (RCA) tree in
gf16_popcount16Stage 2 with a Wallace tree built from 3:2 compressors (full adders). This shortens the combinational critical path, creating clock frequency headroom worth +6 TOPS/W.Files Changed
src/wallace_popcount_16.vtest/tb_wallace_popcount_16.vsrc/gf16_popcount16.vwallace_popcount_16instances.Wallace Tree Design (16→5 bit)
Verification
*operatorsPerformance Impact
ANCHOR: φ²+φ⁻²=3 · DOI 10.5281/zenodo.19227877 · Lane L-Z05