-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: separate addition gate after final RAM gate (#4851)
One of several small optimizations to be removed to achieve sorting. This PR breaks what was once a single arithmetic gate defined in `create_final_sorted_RAM_gate` into a "dummy" gate (one where the selectors are all zero) and an arithmetic gate. The dummy gate is needed to provide shifted wire values for the previous RAM gate. The arithmetic gate, which is only needed for an unrelated consistency check, can then be sorted to a new location without issue. This adds one gate per RAM array used in a circuit.
- Loading branch information
1 parent
01dd0a9
commit f329db4
Showing
2 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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 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