-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] Add exit code in the terminate transpilation (#662)
* Add exit code in the terminate transpiler * chore: make terminate I-type * compile terminate.S into ELF * fix:remove terminate.dump * fix: terminate * feat: AlignedBorrow on MerkleMemoryCols (#661) * Add CommittedProgram (#658) * chore: runs-on for benchmark (#651) * chore: runs-on for benchmark * chore: fix path * chore: clean up * feat: Clean up core chip (#663) * Add `is_valid` to CoreCols * Remove DUMMY opcode * Remove `f` and `g` operands * [feat] generic field expression vm chip (#653) * generic field expression vm chip * add ne simplified * double * fix * update * use struct * chore: fix runs_on (#665) * chore: fix git config * chore: add back merge to main control * Expose is_terminate as a public value (#666) * feat: Always increment timestamp (#667) * fix (#668) * Chore: transpile shamts in a more natural way (same functionality, but not a goldberg machine) (#669) * fix: Nop needs to increment timestamp now * fix: test * fix: build ELF and add command --------- Co-authored-by: Jonathan Wang <[email protected]> Co-authored-by: Arayi <[email protected]> Co-authored-by: Zach Langley <[email protected]> Co-authored-by: Xinding Wei <[email protected]> Co-authored-by: PangZhi <[email protected]> Co-authored-by: luffykai <[email protected]>
- Loading branch information
1 parent
f3f2753
commit deeb3d6
Showing
8 changed files
with
80 additions
and
38 deletions.
There are no files selected for viewing
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#define CUSTOM_0 0x0b | ||
#define CUSTOM_1 0x2b | ||
|
||
.macro addmod_1 rd, rs1, rs2 | ||
.insn r CUSTOM_1, 0, 0, \rd, \rs1, \rs2 | ||
.endm | ||
|
||
.macro addmod_2 rd, rs1, rs2 | ||
.insn r CUSTOM_1, 0, 4, \rd, \rs1, \rs2 | ||
.endm | ||
|
||
.macro terminate ec | ||
.insn i CUSTOM_0, 0, x0, x0, \ec | ||
.endm | ||
|
||
.global _start | ||
|
||
_start: | ||
li zero, 1 | ||
add a0, a0, zero | ||
bne a0, a1, 8 | ||
terminate 0 | ||
terminate 1 |
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
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
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