Struct calyx_frontend::Primitive
source · pub struct Primitive {
pub name: Id,
pub params: Vec<Id>,
pub signature: Vec<PortDef<Width>>,
pub attributes: Attributes,
pub is_comb: bool,
pub latency: Option<NonZeroU64>,
pub body: Option<String>,
}
Expand description
Fields§
§name: Id
Name of this primitive.
params: Vec<Id>
Paramters for this primitive.
signature: Vec<PortDef<Width>>
The input/output signature for this primitive.
attributes: Attributes
Key-value attributes for this primitive.
is_comb: bool
True iff this is a combinational primitive
latency: Option<NonZeroU64>
(Optional) latency; for static primitives
body: Option<String>
body of the string, if it is an inlined primitive
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnwindSafe for Primitive
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