Struct libreda_db::reference_access::CellInstRef
source · pub struct CellInstRef<'a, H: HierarchyBase + ?Sized> {
pub(super) base: &'a H,
pub(super) id: H::CellInstId,
}
Expand description
Default implementation for CellInstRef
.
This is just a wrapper around a netlist and a cell ID.
Fields§
§base: &'a H
Reference to the parent netlist.
id: H::CellInstId
ID of the corresponding cell instance.
Implementations§
source§impl<'a, H: HierarchyBase> CellInstRef<'a, H>
impl<'a, H: HierarchyBase> CellInstRef<'a, H>
sourcepub fn id(&self) -> H::CellInstId
pub fn id(&self) -> H::CellInstId
Get the ID of this cell instance.
sourcepub fn template_id(&self) -> H::CellId
pub fn template_id(&self) -> H::CellId
Get the ID of the template cell of this instance.
source§impl<'a, L: LayoutBase> CellInstRef<'a, L>
impl<'a, L: LayoutBase> CellInstRef<'a, L>
sourcepub fn get_transform(&self) -> SimpleTransform<L::Coord>
pub fn get_transform(&self) -> SimpleTransform<L::Coord>
Get the geometric transform that describes the location of a cell instance relative to its parent.
source§impl<'a, N: NetlistBase> CellInstRef<'a, N>
impl<'a, N: NetlistBase> CellInstRef<'a, N>
sourcepub fn each_pin_instance_id(&self) -> impl Iterator<Item = N::PinInstId> + '_
pub fn each_pin_instance_id(&self) -> impl Iterator<Item = N::PinInstId> + '_
Iterate over the IDs of all pins of this cell.
sourcepub fn each_pin_instance(&self) -> impl Iterator<Item = PinInstRef<'a, N>> + '_
pub fn each_pin_instance(&self) -> impl Iterator<Item = PinInstRef<'a, N>> + '_
Iterate over all pins of this cell.
sourcepub fn each_net(&self) -> impl Iterator<Item = NetRef<'a, N>> + '_
pub fn each_net(&self) -> impl Iterator<Item = NetRef<'a, N>> + '_
Iterate over all nets are connected to this instance. A net might appear more than once.
sourcepub fn pin_instance(&self, pin: &N::PinId) -> PinInstRef<'a, N>
pub fn pin_instance(&self, pin: &N::PinId) -> PinInstRef<'a, N>
Get the pin instance which matches the given pin template.
sourcepub fn pin_instance_by_name(&self, name: &str) -> Option<PinInstRef<'a, N>>
pub fn pin_instance_by_name(&self, name: &str) -> Option<PinInstRef<'a, N>>
Find a pin instance by its name.