Struct calyx_ir::StaticGroup
source · pub struct StaticGroup {
pub assignments: Vec<Assignment<StaticTiming>>,
pub holes: SmallVec<[RRC<Port>; 3]>,
pub attributes: Attributes,
pub latency: u64,
/* private fields */
}
Expand description
A Group of assignments that perform a logical action.
Fields§
§assignments: Vec<Assignment<StaticTiming>>
The assignments used in this group
holes: SmallVec<[RRC<Port>; 3]>
Holes for this group
attributes: Attributes
Attributes for this group.
latency: u64
Latency of static group
Implementations§
source§impl StaticGroup
impl StaticGroup
implement the StaticGroup struct
pub fn new(name: Id, latency: u64) -> Self
pub fn get_latency(&self) -> u64
sourcepub fn find<S>(&self, name: S) -> Option<RRC<Port>>where
S: Display,
Id: PartialEq<S>,
pub fn find<S>(&self, name: S) -> Option<RRC<Port>>where S: Display, Id: PartialEq<S>,
Get a reference to the named hole if it exists.
sourcepub fn get<S>(&self, name: S) -> RRC<Port>where
S: Display + Clone,
Id: PartialEq<S>,
pub fn get<S>(&self, name: S) -> RRC<Port>where S: Display + Clone, Id: PartialEq<S>,
Get a reference to the named hole or panic.
sourcepub fn get_attributes(&self) -> Option<&Attributes>
pub fn get_attributes(&self) -> Option<&Attributes>
The attributes of this group.
pub fn remove_attribute(&mut self, attr: Attribute)
Trait Implementations§
source§impl Debug for StaticGroup
impl Debug for StaticGroup
Auto Trait Implementations§
impl !RefUnwindSafe for StaticGroup
impl !Send for StaticGroup
impl !Sync for StaticGroup
impl Unpin for StaticGroup
impl !UnwindSafe for StaticGroup
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