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

Fix padding rows in Mul32Chip #95

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Fix padding rows in Mul32Chip #95

merged 1 commit into from
Jan 11, 2024

Conversation

dlubarov
Copy link
Collaborator

Previously padding rows had is_mul = 1 and is_real = 0; the latter had the effect of excluding these rows from the bus argument.

Now inclusion in the bus argument is instead controlled by is_mul + is_mulhs + is_mulhu, so padding rows can't have is_mul = 1 as they did before.

The multiplication constraints should be satisfied on an all-zero row, so I think it's easiest to leave the zeros, except for the counter column which must be populated for range checks to work.

Previously padding rows had `is_mul = 1` and `is_real = 0`; the latter had the effect of excluding these rows from the bus argument.

Now inclusion in the bus argument is instead controlled by `is_mul + is_mulhs + is_mulhu`, so padding rows can't have `is_mul = 1` as they did before.

The multiplication constraints should be satisfied on an all-zero row, so I think it's easiest to leave the zeros, except for the `counter` column which must be populated for range checks to work.
@dlubarov dlubarov requested a review from thealmarty January 10, 2024 23:37
Copy link
Collaborator

@thealmarty thealmarty left a comment

Choose a reason for hiding this comment

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

Thanks!

@dlubarov dlubarov merged commit 7f83a73 into main Jan 11, 2024
2 checks passed
@dlubarov dlubarov deleted the fix_mul_padding_rows branch January 11, 2024 17:23
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