-
Notifications
You must be signed in to change notification settings - Fork 2
spec: Field VM #971
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
Draft
Draft
spec: Field VM #971
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
ec4c118
Field VM, first edition
RobinJadoul 555273b
Silly oversights
RobinJadoul 58c27bc
Typechecker working for opaque types (as generalization of ExtField)
RobinJadoul 2faf1a5
Make ruff happier
RobinJadoul ef1754c
Various fixes
RobinJadoul 11a2714
Fix input hinting constraints to take hint_input from the next row
RobinJadoul 341095d
Apply batched suggestions from code review
RobinJadoul 6aeb08c
Improve expression rendering
RobinJadoul c6b01be
Field is not a code-term in the titles, imo
RobinJadoul a379d1b
Rename o register to d
RobinJadoul 8801555
More elaborate VM architecture to intro
RobinJadoul a324367
Instructions vs states
RobinJadoul eb6ba7b
Registers and hinting
RobinJadoul 3ec0b12
pseudoinstructions as a table
RobinJadoul b51f372
Clarify negative offsets into frame
RobinJadoul 2ce4437
clarify syntactic degree being too high for mux
RobinJadoul 3e81f92
typo
RobinJadoul c600a7e
Switch everything to next(...) notation
RobinJadoul 2e025fb
Compression in the decode lookup
RobinJadoul 23831be
padding
RobinJadoul f6a95ca
Decode table
RobinJadoul 04d3f35
Minor
RobinJadoul 932d58c
Don't line-break inline equations by default
RobinJadoul 2061697
deg notation
RobinJadoul 576e0c6
Apply batched suggestions from code review
RobinJadoul 5d7555e
Clarify some writing
RobinJadoul 06be08a
Comments on CALL/RET
RobinJadoul 99a988f
Expand degree split differently
RobinJadoul d9af179
review
RobinJadoul 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #import "/src.typ": load_config, load_chip | ||
| #import "/chip.typ": render_chip_variable_table, render_constraint_table | ||
| #let config = load_config() | ||
| #let chip = load_chip("/src/field_vm_decode.toml", config) | ||
| #let decode = raw(chip.name) | ||
|
|
||
| In this chapter, we provide a brief overview of the #decode chip, | ||
| that corresponds to the instruction decoding for @field-VM. | ||
| As the ISA from @field-VM:sec:isa was designed to have a simple mapping | ||
| onto AIR tables, the decoding table is itself also simple. | ||
|
|
||
| We present the table in its uncompressed form, but in practice, any | ||
| implementation would materialize the _virtual_ and _multiplicity_ columns only, | ||
| similar to the approach in @decode. | ||
| Due to its relative simplicity, we do not present both compressed and uncompressed | ||
| variants of the table separately. | ||
|
|
||
| = Variables | ||
|
|
||
| #render_chip_variable_table(chip, config) | ||
|
|
||
| = Constraints | ||
|
|
||
| #render_constraint_table(chip, config) |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.