This repository was archived by the owner on Apr 18, 2025. It is now read-only.
forked from privacy-scaling-explorations/zkevm-circuits
-
Notifications
You must be signed in to change notification settings - Fork 392
add constraint for rw counter #532
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
61957a0
fix tx_log table issue
lightsing edc1e77
constraint rw_counter and rw_inc_left
lightsing 168b4eb
constraint rw_counter
lightsing 05bca77
Merge branch 'memory_opt' into fix/copycircuit-constraints
lightsing d65e329
simplify constraint
lightsing 12a678c
Merge remote-tracking branch 'origin/fix/copycircuit-constraints' int…
lightsing b203274
add column is_mem_to_mem to reduce the degree
lightsing 2c00a48
Merge remote-tracking branch 'origin/memory_opt' into fix/copycircuit…
lightsing 7eaa301
replace other usage of memory to memory tag query
lightsing b94b67e
fix value_acc
lightsing 543c099
Merge remote-tracking branch 'origin/memory_opt' into fix/copycircuit…
lightsing 0e17439
fix merge
lightsing 673c464
remove is_mem_to_mem
lightsing b2bcb86
fix build
lightsing d693437
apply review
lightsing 016cf60
Merge remote-tracking branch 'origin/memory_opt' into fix/copycircuit…
lightsing 9c72456
Merge branch 'memory_opt' into fix/copycircuit-constraints
lightsing 4c8df54
Merge remote-tracking branch 'origin/memory_opt' into fix/copycircuit…
lightsing 6b32f7e
fix merge
lightsing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the
1
and-1
here? It seems that it should be0
in this case, in the middle of a word.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's arranged as a read row, a write row, ...
for memory write it has its own rw counter by increase 1
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not clear to me, when can the counter go backwards (-1)?
The most important requirement of the copy circuit is this:
[rwc .. rwc + rwc_left]
Can this be made simpler or clearer how this is enforced?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check this https://docs.google.com/spreadsheets/d/1UyNBdtFM1a6V_amGEc5UhNKLu1eYW2NgXbmp8v-PYvw/edit?usp=sharing
rw counter starts from 0x7c for the first read step and then a write step of 0x7d, so for the next read row, it's need to be same as the fist read row.
constraint using this way is for simplify the condition and reduce the degree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@naure if you have no more comments, I will merge this PR into memory_opt soon.