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

[COMB] Get rid of "bin" flag in comb. #8180

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

darthscsi
Copy link
Contributor

@darthscsi darthscsi commented Feb 3, 2025

Define the truth tables for known binary values. Comp can simplify any expression according to binary truth tables. Unknown values and non-binary values are handled in a common way. This mostly matches verilog's 4-state truth tables. Where verilog-specific behavior is desired and it is not a consequence of binary truth tables, additional ops must be used. Propagation of runtime non-binary values are the responsibility of the execution environment.

@darthscsi
Copy link
Contributor Author

@uenoku can you look at the failing aig test?

@darthscsi darthscsi changed the title [COMB] Get rid of "bin" flag in comb. Define the truth tables for k… [COMB] Get rid of "bin" flag in comb. Feb 3, 2025
darthscsi and others added 3 commits February 3, 2025 09:14
This fixes a bug in CombToAIG that incorrectly removes `revert` flag.
Also bin flag change caused some reordering for some reason so test is
updated
@uenoku
Copy link
Member

uenoku commented Feb 3, 2025

@darthscsi fixed CombToAIG and test.

@fabianschuiki
Copy link
Contributor

This is fantastic 🥳💯!

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.

3 participants