pub struct Primitive {
pub name: Id,
pub params: Vec<Id, Global>,
pub signature: Vec<PortDef<Width>, Global>,
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, Global>
Paramters for this primitive.
signature: Vec<PortDef<Width>, Global>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more