#[repr(C)]pub struct CpuCols<T: Copy> {Show 17 fields
pub shard: T,
pub clk_16bit_limb: T,
pub clk_8bit_limb: T,
pub shard_to_send: T,
pub clk_to_send: T,
pub pc: T,
pub next_pc: T,
pub instruction: InstructionCols<T>,
pub op_a_immutable: T,
pub is_memory: T,
pub is_syscall: T,
pub is_halt: T,
pub num_extra_cycles: T,
pub op_a_access: MemoryReadWriteCols<T>,
pub op_b_access: MemoryReadCols<T>,
pub op_c_access: MemoryReadCols<T>,
pub is_real: T,
}Expand description
The column layout for the CPU.
Fields§
§shard: TThe current shard.
clk_16bit_limb: TThe least significant 16 bit limb of clk.
clk_8bit_limb: TThe most significant 8 bit limb of clk.
shard_to_send: TThe shard to send to the opcode specific tables. This should be 0 for all instructions other than the ecall and memory instructions.
clk_to_send: TThe clk to send to the opcode specific tables. This should be 0 for all instructions other than the ecall and memory instructions.
pc: TThe program counter value.
next_pc: TThe expected next program counter value.
instruction: InstructionCols<T>Columns related to the instruction.
op_a_immutable: TWhether op_a should not be changed by the instruction. This should be true for memory store and branch instructions.
is_memory: TWhether this is a memory instruction.
is_syscall: TWhether this is a syscall instruction.
is_halt: TWhether this is a halt instruction.
num_extra_cycles: TThe number of extra cycles to add to the clk for a syscall instruction.
op_a_access: MemoryReadWriteCols<T>Operand values, either from registers or immediate values.
op_b_access: MemoryReadCols<T>§op_c_access: MemoryReadCols<T>§is_real: TSelector to label whether this row is a non padded row.
Implementations§
Trait Implementations§
Source§impl<T: Copy> BorrowMut<CpuCols<T>> for [T]
impl<T: Copy> BorrowMut<CpuCols<T>> for [T]
Source§fn borrow_mut(&mut self) -> &mut CpuCols<T>
fn borrow_mut(&mut self) -> &mut CpuCols<T>
impl<T: Copy + Copy> Copy for CpuCols<T>
Auto Trait Implementations§
impl<T> Freeze for CpuCols<T>where
T: Freeze,
impl<T> RefUnwindSafe for CpuCols<T>where
T: RefUnwindSafe,
impl<T> Send for CpuCols<T>where
T: Send,
impl<T> Sync for CpuCols<T>where
T: Sync,
impl<T> Unpin for CpuCols<T>where
T: Unpin,
impl<T> UnwindSafe for CpuCols<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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)
&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)
&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>
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>
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