Skip to main content

CellKind

Enum CellKind 

Source
pub enum CellKind {
    Arith(AluOp, Src2, Src2),
    Select(CmpKind, Src2, Src2, Src2, Src2),
    Func(FuncUnit, Src2, Src2),
    Simd(VecOp, LaneTy, Src2, Src2),
    Mem(MemOp, Src2, Src2),
}
Expand description

A tile’s optional compute: an arithmetic op or a predicated select over its visible sources.

Variants§

§

Arith(AluOp, Src2, Src2)

§

Select(CmpKind, Src2, Src2, Src2, Src2)

§

Func(FuncUnit, Src2, Src2)

A FUNCTIONAL-UNIT tile — division/mod/floor-div, magic-reciprocal high-multiply, power, or a float op (FuncUnit). Combinational at the RTL level (a synthesized divider / the FPU’s combinational form), so it settles in the same 1-clock feed-forward pass as Arith — but it is NOT SAT-lowered (bitblast has no bvsdiv/bvsrem), so a Func-bearing grid is proven by eval_grid ≡ VM + iverilog, exactly as the decision fabric proves division (emit_decision_fabric_verilog + microprice_rtl_matches_vm_under_iverilog).

§

Simd(VecOp, LaneTy, Src2, Src2)

A packed-SIMD tile — a VecOp (add / bitwise) over two operands, computed lane-wise for the given LaneTy (Add = the carry-isolated SWAR form). Combinational, so it settles in the same 1-clock pass as Arith; but it is NOT SAT-lowered here (proven ≡ lane-wise by simd_tile_lock + iverilog), so a Simd-bearing grid is combinational-for-emission yet refused by the reconfig SAT (like Func).

§

Mem(MemOp, Src2, Src2)

A MEMORY (state-plane) tile — a read/write/alloc against ONE shared heap that all Mem tiles access (the dmem-style block RAM the soft-core already carries). The heap mirrors the VM/model layout ([len, e0..eN]), so collections/structs/text/CRDT compose from Mem + Arith tiles exactly as the whole-program model (fabric_rtl.rs exec_ops) does. Stateful (a synchronous BRAM), so it is NOT SAT-lowered and is NOT combinational — proven by eval_grid_with_heap ≡ the model ≡ VM + iverilog. The tile’s two Src2 operands are (A, B): HeapRead reads heap[A], HeapWrite does heap[A] = B and drives B, HeapAlloc grows the heap by A words and drives the new base pointer.

Trait Implementations§

Source§

impl Clone for CellKind

Source§

fn clone(&self) -> CellKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CellKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for CellKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Downcast for T
where T: 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.
§

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.
§

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.
§

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.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,