-
Notifications
You must be signed in to change notification settings - Fork 598
feat: exec opcode spec table #13594
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
feat: exec opcode spec table #13594
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,16 +28,39 @@ include "nullifier_check.pil"; | |
| namespace execution; | ||
|
|
||
| pol commit sel; // subtrace selector | ||
| // Subtrace operation id | ||
| pol commit subtrace_operation_id; | ||
|
|
||
| // Subtrace Dispatch selectors | ||
| // These boolean selectors are constrained via the precomputed Execution Instruction Spec Table | ||
| pol commit sel_alu; | ||
| pol commit sel_bitwise; | ||
| pol commit sel_to_radix; | ||
| pol commit sel_ecc_add; | ||
| pol commit sel_poseidon2_perm; | ||
|
|
||
| pol commit ex_opcode; | ||
| pol commit indirect; | ||
| // operands | ||
| pol commit op1, op2, op3, op4; | ||
| pol commit op5, op6, op7; | ||
| // resolved operands | ||
| pol commit rop1, rop2, rop3, rop4; | ||
| pol commit rop5, rop6, rop7; | ||
| // Registers | ||
| pol commit reg1, reg2, reg3, reg4; | ||
| pol commit reg5, reg6, reg7; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These many registers are probably overkill and unnecessary - but we'll keep them here for now until we're sure we don't need them |
||
| // Memory Acccesses | ||
| pol commit mem_op1, mem_op2, mem_op3, mem_op4; | ||
| pol commit mem_op5, mem_op6, mem_op7; | ||
| // Memory Tag | ||
| pol commit mem_tag1, mem_tag2, mem_tag3, mem_tag4; | ||
| pol commit mem_tag5, mem_tag6, mem_tag7; | ||
| // Read / Write selectors | ||
| pol commit rw1, rw2, rw3, rw4; | ||
| pol commit rw5, rw6, rw7; | ||
|
|
||
| pol commit bytecode_id; | ||
| pol commit clk; | ||
| pol commit last; | ||
|
|
||
| // Selector constraints | ||
|
|
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,7 +58,6 @@ TEST_F(ExecutionSimulationTest, Add) | |
|
|
||
| TEST_F(ExecutionSimulationTest, Call) | ||
| { | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🙏 |
||
| AztecAddress parent_address = 1; | ||
| AztecAddress nested_address = 2; | ||
| MemoryValue nested_address_value = MemoryValue::from<FF>(nested_address); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.