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

Static data chip #134

Merged
merged 17 commits into from
Apr 4, 2024
Merged

Static data chip #134

merged 17 commits into from
Apr 4, 2024

Conversation

morganthomas
Copy link
Collaborator

@morganthomas morganthomas commented Apr 2, 2024

Closes #133

@morganthomas morganthomas marked this pull request as ready for review April 2, 2024 03:20
@morganthomas
Copy link
Collaborator Author

These changes comment out the memory argument constraints. I'm not sure this is necessary, but I found it convenient to do so since we're convinced that the memory argument is unsound anyway, and Hadas is going to replace it.

@thealmarty
Copy link
Collaborator

Because of the commented out code the warnings are getting out of hand. I've cleaned up as much as makes sense so we can still track them. Please merge #136 into this before merging this, if it's ok with you.

@@ -179,6 +206,7 @@ impl MemoryChip {

cols.clk = F::from_canonical_usize(clk);
cols.counter = F::from_canonical_usize(n);
cols.is_static_initial = F::zero();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is not needed as it is set to zero on L204.

let mut row = [F::zero(); NUM_MEM_COLS];
let cols: &mut MemoryCols<F> = unsafe { transmute(&mut row) };
cols.is_static_initial = F::one();
cols.clk = F::zero();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Similarly for these lines that set the values to zeros.

@morganthomas morganthomas merged commit bdb53de into main Apr 4, 2024
2 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.

Static data chip
2 participants