[Synth] Improve the truth table expansion of > 6 inputs#10420
Merged
[Synth] Improve the truth table expansion of > 6 inputs#10420
Conversation
d15606d to
c675b6e
Compare
uenoku
reviewed
May 9, 2026
c675b6e to
a650eaa
Compare
uenoku
reviewed
May 9, 2026
uenoku
reviewed
May 9, 2026
Member
|
Fantastic, thanks! I think it would be worth checking the sparsity of the truthtable and flip if necessary. Also can you add a bit more tests for here? circt/unittests/Support/TruthTableTest.cpp Lines 330 to 345 in 9fa974e Also could you make the PR description a bit more verbose? A few sentences would be great! |
a650eaa to
95681a0
Compare
Contributor
Author
🫡 |
uenoku
reviewed
May 9, 2026
95681a0 to
a0380f3
Compare
a0380f3 to
c3e294c
Compare
Member
|
Thanks! |
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.
Concerns #10419
We improve the truth table expansion of > 6 inputs by replacing the bit-by-bit implementation of
expandTruthTableToInputSpaceGenericwith a word-level one. To do so we generate a mask corresponding to the rows that are expanded and set them all at once. This reduces the time complexity fromO(2^numExpandedInputs)toO(2^numOrigInputs).