Struct libreda_lefdef::def_ast::Net

source ·
pub struct Net {
Show 18 fields pub name: Option<String>, pub mustjoin: Option<Mustjoin>, pub terminals: Vec<NetTerminal>, pub shield_nets: Vec<String>, vpin: BTreeMap<String, ()>, subnets: BTreeMap<String, ()>, pub xtalk_class: u16, pub non_default_rule: Option<String>, pub regular_wiring: Vec<RegularWiring>, pub source: NetSource, pub fixed_bump: bool, pub frequency: Option<f64>, pub original: Option<String>, pub net_use: DEFSignalUse, pub pattern: NetPattern, pub est_cap: Option<f64>, pub weight: u32, pub properties: BTreeMap<String, PropertyValue>,
}
Expand description

Definition of a net and possibly its routes.

Fields§

§name: Option<String>

Name of the net. Must be generated for MUSTJOIN nets. ‘MUSTJOIN’ is an invalid net name.

§mustjoin: Option<Mustjoin>

Net name is generated for MUSTJOIN nets.

§terminals: Vec<NetTerminal>

Terminals connected to the net.

§shield_nets: Vec<String>

Names of special nets that are used to shield this net. The shield nets must be defined earlier in ‘SPECIALNETS’.

§vpin: BTreeMap<String, ()>§subnets: BTreeMap<String, ()>§xtalk_class: u16

Crosstalk class number. Default is 0 which will not be written to DEF. Should be a value from 0 to 200.

§non_default_rule: Option<String>

Use another width rule than the default rule defined in the LEF WIDTH statement for the routing layer.

§regular_wiring: Vec<RegularWiring>

Specify the physical wiring.

§source: NetSource

Source from where the net was created.

§fixed_bump: bool

Fixed bump: TBD

§frequency: Option<f64>

Frequency of the net. Used as a hint for the router.

§original: Option<String>

If this net results from partitioning another net, then this refers to the original net.

§net_use: DEFSignalUse

Usage type of the net.

§pattern: NetPattern

Desired routing pattern for the net.

§est_cap: Option<f64>

Estimated wire capacitance of this net.

§weight: u32

Weight of the net. Nets with high weight should be tried to keep short by routing tools. Default = 1.

§properties: BTreeMap<String, PropertyValue>

Additional properties.

Trait Implementations§

source§

impl Clone for Net

source§

fn clone(&self) -> Net

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Net

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Net

Custom implementation of default because weight deviates from the default of u32.

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Net

§

impl Send for Net

§

impl Sync for Net

§

impl Unpin for Net

§

impl UnwindSafe for Net

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.