pub struct NDLMSignal {
    edge_polarity: EdgePolarity,
    slew: [Time; 4],
    delay: [Time; 4],
    logic_value: Logic3,
}
Expand description

Slew rate and edge polarity of a signal.

Fields§

§edge_polarity: EdgePolarity

Type of the transition.

§slew: [Time; 4]

Transition times for: min-rise, min-fall, max-rise, max-fall

§delay: [Time; 4]

Arrival times for: min-rise, min-fall, max-rise, max-fall

§logic_value: Logic3

Logic value on which the signal stabilizes.

Implementations§

source§

impl NDLMSignal

source

pub fn new(slew_rate: Time, arrival_time: Time) -> Self

Create a new signal with a given arrival time. Other values are set to defaults.

source

pub fn set_polarity(&mut self, edge_polarity: EdgePolarity)

Set the polarity of the signal transition. Default is EdgePolarity::Unknown.

source

pub fn with_polarity(self, edge_polarity: EdgePolarity) -> Self

Set the polarity of the signal transition. Default is EdgePolarity::Unknown.

source

pub fn slew(&self, minmax: MinMax, edge: RiseFall) -> Time

Get the minimum/maximum slew for the rise or fall edge.

source

fn max_slew(&self) -> Time

source

fn min_slew(&self) -> Time

source

fn max_delay(&self) -> Time

source

fn min_delay(&self) -> Time

source

pub fn delay(&self, minmax: MinMax, edge: RiseFall) -> Time

Get the minimum/maximum delay for the rise or fall edge.

source

fn slew_mut(&mut self, minmax: MinMax, edge: RiseFall) -> &mut Time

source

fn delay_mut(&mut self, minmax: MinMax, edge: RiseFall) -> &mut Time

source

pub fn set_slew_rates(&mut self, slew_rate: Time)

Set the slew rate for all corners.

source

pub fn set_arrival_times(&mut self, arrival_time: Time)

Set the arrival times for all corners.

source

pub fn set_slew_rate(&mut self, corner: MinMax, edge: RiseFall, slew_rate: Time)

Set the slew rate for the specified corner and transition type.

source

pub fn set_arrival_time( &mut self, corner: MinMax, edge: RiseFall, arrival_time: Time )

Set the slew rate for the specified corner and transition type.

source

fn acc_arrival_time(&mut self, edge: RiseFall, arrival_time: Time)

Accumulate arrival time.

source

fn acc_slew(&mut self, edge: RiseFall, slew: Time)

Accumulate transition time.

source

pub fn set_logic_value(self, value: Logic3)

Set the logic value of the signal (after transition).

source

pub fn with_slew_rates(self, slew_rate: Time) -> Self

Set the slew rate for all corners.

source

pub fn with_arrival_times(self, arrival_time: Time) -> Self

Set the arrival times for all corners.

source

pub fn with_slew_rate( self, corner: MinMax, edge: RiseFall, slew_rate: Time ) -> Self

Set the slew rate for the specified corner and transition type.

source

pub fn with_arrival_time( self, corner: MinMax, edge: RiseFall, arrival_time: Time ) -> Self

Set the slew rate for the specified corner and transition type.

source

pub fn with_logic_value(self, value: Logic3) -> Self

Set the logic value of the signal (after transition).

Trait Implementations§

source§

impl Clone for NDLMSignal

source§

fn clone(&self) -> NDLMSignal

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 NDLMSignal

source§

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

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

impl PartialEq<NDLMSignal> for NDLMSignal

source§

fn eq(&self, other: &NDLMSignal) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Signal for NDLMSignal

§

type LogicValue = Logic3

Type of logic value. Typically this might be a three-valued type which represents logical 0, 1 and ‘unknown’. The default is typically ‘unknown’. This is used to specify static input signals when evaluating cell delays or constraints.
source§

fn logic_value(&self) -> Self::LogicValue

Get the target value of a signal.
source§

impl Copy for NDLMSignal

source§

impl StructuralPartialEq for NDLMSignal

Auto Trait Implementations§

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.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
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.