pub struct CpuEvent {Show 25 fields
pub shard: u32,
pub channel: u8,
pub clk: u32,
pub pc: u32,
pub next_pc: u32,
pub instruction: Instruction,
pub a: u32,
pub a_record: Option<MemoryRecordEnum>,
pub b: u32,
pub b_record: Option<MemoryRecordEnum>,
pub c: u32,
pub c_record: Option<MemoryRecordEnum>,
pub memory: Option<u32>,
pub memory_record: Option<MemoryRecordEnum>,
pub exit_code: u32,
pub alu_lookup_id: u128,
pub syscall_lookup_id: u128,
pub memory_add_lookup_id: u128,
pub memory_sub_lookup_id: u128,
pub branch_gt_lookup_id: u128,
pub branch_lt_lookup_id: u128,
pub branch_add_lookup_id: u128,
pub jump_jal_lookup_id: u128,
pub jump_jalr_lookup_id: u128,
pub auipc_lookup_id: u128,
}Expand description
A standard format for describing CPU operations that need to be proven.
Fields§
§shard: u32The current shard.
channel: u8The current channel.
clk: u32The current clock.
pc: u32The current program counter.
next_pc: u32The value of the next instruction’s program counter. This value needs to be made public for the last row of each shard.
instruction: InstructionThe current instruction.
a: u32The first operand.
a_record: Option<MemoryRecordEnum>The memory access record for the first operand.
b: u32The second operand.
b_record: Option<MemoryRecordEnum>The memory access record for the second operand.
c: u32The third operand.
c_record: Option<MemoryRecordEnum>The memory access record for the third operand.
memory: Option<u32>The memory value we potentially may access.
memory_record: Option<MemoryRecordEnum>The memory access record for the memory value.
exit_code: u32Exit code called with halt.
alu_lookup_id: u128§syscall_lookup_id: u128§memory_add_lookup_id: u128§memory_sub_lookup_id: u128§branch_gt_lookup_id: u128§branch_lt_lookup_id: u128§branch_add_lookup_id: u128§jump_jal_lookup_id: u128§jump_jalr_lookup_id: u128§auipc_lookup_id: u128Trait Implementations§
source§impl<'de> Deserialize<'de> for CpuEvent
impl<'de> Deserialize<'de> for CpuEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for CpuEvent
Auto Trait Implementations§
impl Freeze for CpuEvent
impl RefUnwindSafe for CpuEvent
impl Send for CpuEvent
impl Sync for CpuEvent
impl Unpin for CpuEvent
impl UnwindSafe for CpuEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more