Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Integrate tools to optimize circuits #111

Closed
asraa opened this issue Aug 18, 2023 · 6 comments · Fixed by #375
Closed

feat: Integrate tools to optimize circuits #111

asraa opened this issue Aug 18, 2023 · 6 comments · Fixed by #375
Assignees

Comments

@asraa
Copy link
Collaborator

asraa commented Aug 18, 2023

Related: #110

We can take a high-level arithmetic program and create optimization passes that can invoke tools like Yosys and ABC to optimize and output a combinational circuit.

The combinational circuit can then be lowered to boolean FHE schemes.

@asraa asraa self-assigned this Aug 18, 2023
@asraa
Copy link
Collaborator Author

asraa commented Aug 18, 2023

See this other tool here: https://github.com/lsils/mockturtle

And some discussion about this here: https://discourse.llvm.org/t/integration-with-abc-optimizer/65264/2

@asraa
Copy link
Collaborator Author

asraa commented Aug 18, 2023

I think it would be nice to go

Arith / other high-level -> Combinational logic block -> [ABC Transform] -> Optimized combinational logic block

Combinational logic can then be lowered to schemes that support boolean gates / luts.

@asraa
Copy link
Collaborator Author

asraa commented Aug 18, 2023

I also noticed this ArithToCombPass from CIRCT:
https://github.com/llvm/circt/blob/main/include/circt/Transforms/Passes.td#L56C5-L71

@j2kun
Copy link
Collaborator

j2kun commented Nov 6, 2023

I think we can mark this one as fixed now.

@j2kun j2kun closed this as completed Nov 6, 2023
Copy link

Note

Re-commenting because this issue was closed with unresolved TODOs.

This issue has 2 outstanding TODOs:

This comment was autogenerated by todo-backlinks

@j2kun
Copy link
Collaborator

j2kun commented Jan 12, 2024

Reopening so we can migrate the TODOs to new issues

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 a pull request may close this issue.

2 participants