pub trait NetlistUtil: NetlistBase {
    fn is_constant_net(&self, net: &Self::NetId) -> bool { ... }
fn nets_of_cell_instance(
        &self,
        inst: &Self::CellInstId
    ) -> Box<dyn Iterator<Item = Self::NetId>> { ... }
fn for_each_circuit_instance_of_net<F>(&self, net: &Self::NetId, f: F)
    where
        F: FnMut(Self::CellInstId)
, { ... }
fn each_circuit_instance_of_net_vec(
        &self,
        net: &Self::NetId
    ) -> Vec<Self::CellInstId> { ... }
fn fmt(&self, f: &mut Formatter<'_>) -> Result { ... } }
Expand description

Non-modifying utility functions for netlists. Import the this trait to use the utility functions all types that implement the NetlistBase trait.

Provided methods

Check if the net is either the constant LOW or HIGH.

Get all nets that are connected to the circuit instance.

Visit all circuit instances connected to this net. An instance is touched not more than once.

Iterate over all circuit instances connected to this net. An instance is touched not more than once.

Write the netlist in a human readable form.

Implementors