Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@uenoku
Copy link
Member

@uenoku uenoku commented Sep 8, 2025

This patch extends the synthesis pipeline to support lowering combinational operations to Majority-Inverter Graphs (MIG) in addition to And-Inverter Graphs (AIG). The implementation adds a CombToAIGTarget enum with AIG/MIG options, implements MIG-specific conversion patterns for OR operations using majority functions, updates adder carry logic to use majority functions in MIG mode, and renames the pipeline from AIGLowering to CombLowering to reflect the generalized capability. Integration tests verify functional equivalence using circt-lec.

In the follow-up I'm planning to rename CombToAIG to CombToSynth so reflect the pass can lower IR to both AIG and MIG.

This patch extends the synthesis pipeline to support lowering combinational
operations to Majority-Inverter Graphs (MIG) in addition to And-Inverter
Graphs (AIG). The implementation adds a CombToSynthTarget enum with AIG/MIG
options, implements MIG-specific conversion patterns for OR operations using
majority functions, updates adder carry logic to use majority functions in
MIG mode, and renames the pipeline from AIGLowering to CombLowering to
reflect the generalized capability. The MIG representation uses 3-input
majority functions (MAJ(a,b,c) = a&b | a&c | b&c) which are more efficient
than AIG for arithmetic operations. Integration tests verify functional
equivalence using circt-lec.
@uenoku uenoku force-pushed the dev/hidetou/circt-synth-mig branch from 5df8cce to 35fb1d5 Compare September 8, 2025 10:32
Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice 😎 👍 LGTM!

@uenoku uenoku merged commit cc670bc into llvm:main Sep 8, 2025
7 checks passed
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.

2 participants