pub struct Component {
    pub name: Id,
    pub signature: RRC<Cell>,
    pub cells: IdList<Cell>,
    pub groups: IdList<Group>,
    pub comb_groups: IdList<CombGroup>,
    pub continuous_assignments: Vec<Assignment>,
    pub control: RRC<Control>,
    pub attributes: Attributes,
    /* private fields */
}
Expand description

In memory representation of a Component.

Fields

name: Id

Name of the component.

signature: RRC<Cell>

The input/output signature of this component.

cells: IdList<Cell>

The cells instantiated for this component.

groups: IdList<Group>

Groups of assignment wires.

comb_groups: IdList<CombGroup>

Groups of assignment wires.

continuous_assignments: Vec<Assignment>

The set of “continuous assignments”, i.e., assignments that are always active.

control: RRC<Control>

The control program for this component.

attributes: Attributes

Attributes for this component

Implementations

Builder methods for extracting and construction IR nodes. The naming scheme for methods is consistent:

  • find_: Returns a reference to the construct with the given name.

Construct a new Component with the given name and signature fields.

Return a reference to the group with name if present.

Return a refernece to a combination group with name if present.

Return a reference to the cell with name if present.

Construct a non-conflicting name using the Component’s namegenerator.

Apply function on all assignments contained within the component.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

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.