pub struct ComponentDef {
    pub name: Id,
    pub signature: Vec<PortDef<u64>>,
    pub cells: Vec<Cell>,
    pub groups: Vec<Group>,
    pub static_groups: Vec<StaticGroup>,
    pub continuous_assignments: Vec<Wire>,
    pub control: Control,
    pub attributes: Attributes,
    pub is_comb: bool,
    pub latency: Option<NonZeroU64>,
}
Expand description

AST statement for defining components.

Fields

name: Id

Name of the component.

signature: Vec<PortDef<u64>>

Defines input and output ports along with their attributes.

cells: Vec<Cell>

List of instantiated sub-components

groups: Vec<Group>

List of groups

static_groups: Vec<StaticGroup>

List of StaticGroups

continuous_assignments: Vec<Wire>

List of continuous assignments

control: Control

Single control statement for this component.

attributes: Attributes

Attributes attached to this component

is_comb: bool

True iff this is a combinational component

latency: Option<NonZeroU64>

(Optional) latency of component, if it is static

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.