pub enum CombInline {
Ref(String),
Lit(u64),
Add(String, String),
Sub(String, String),
And(String, String),
Or(String, String),
Xor(String, String),
Eq(String, String),
Mux {
sel: String,
t: String,
f: String,
},
}Expand description
Elaborate-time description of a combinational RHS (FR75 / Cap-R-55).
Produced by [ElaborateSession::inline_comb_fn] closures and immediately
lowered to ordinary [AssignExpr] via existing assign_* APIs. Never
stored as a Rust Fn in FrozenHir (NFR36). Also reusable as the RHS of
SeqInline::Comb for sequential Reg.d inline (Cap-R-56).
Variants§
Ref(String)
Copy from a named net / port / reg.
Lit(u64)
Integer literal.
Add(String, String)
Same-width add.
Sub(String, String)
Same-width subtract.
And(String, String)
Bitwise AND.
Or(String, String)
Bitwise OR.
Xor(String, String)
Bitwise XOR.
Eq(String, String)
Equality → 0/1 Bool.
Mux
2:1 mux (sel != 0 ? t : f).
Trait Implementations§
Source§impl Clone for CombInline
impl Clone for CombInline
Source§fn clone(&self) -> CombInline
fn clone(&self) -> CombInline
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CombInline
impl Debug for CombInline
impl Eq for CombInline
Source§impl From<CombInline> for SeqInline
impl From<CombInline> for SeqInline
Source§fn from(c: CombInline) -> Self
fn from(c: CombInline) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CombInline
impl PartialEq for CombInline
impl StructuralPartialEq for CombInline
Auto Trait Implementations§
impl Freeze for CombInline
impl RefUnwindSafe for CombInline
impl Send for CombInline
impl Sync for CombInline
impl Unpin for CombInline
impl UnsafeUnpin for CombInline
impl UnwindSafe for CombInline
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