-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Common circuit for R-Instructions (#231)
_Issues #121, #133, #134, #123, …_ Extract generic instruction handling out of the Add/Sub circuit. --------- Co-authored-by: Aurélien Nicolas <[email protected]>
- Loading branch information
Showing
11 changed files
with
332 additions
and
306 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
use constants::OpcodeType; | ||
use ff_ext::ExtensionField; | ||
|
||
use super::Instruction; | ||
use ceno_emul::InsnKind; | ||
|
||
pub mod addsub; | ||
pub mod blt; | ||
pub mod config; | ||
pub mod constants; | ||
mod r_insn; | ||
|
||
#[cfg(test)] | ||
mod test; | ||
|
||
pub trait RIVInstruction<E: ExtensionField>: Instruction<E> { | ||
const OPCODE_TYPE: OpcodeType; | ||
pub trait RIVInstruction { | ||
const INST_KIND: InsnKind; | ||
} |
Oops, something went wrong.