Skip to main content

ElmoreDelayCalculator

Struct ElmoreDelayCalculator 

Source
pub struct ElmoreDelayCalculator {
    pub unit_resistance: f64,
    pub unit_capacitance: f64,
}
Expand description

Elmore delay model: considers distributed wire resistance and capacitance.

delay = R * (C / 2 + load_capacitance) where R and C are the total resistance and capacitance of the wire segment.

Fields§

§unit_resistance: f64

Resistance per unit length of wire

§unit_capacitance: f64

Capacitance per unit length of wire

Implementations§

Source§

impl ElmoreDelayCalculator

Source

pub fn new(unit_resistance: f64, unit_capacitance: f64) -> Self

Creates an Elmore delay calculator with the given resistance and capacitance per unit length.

Trait Implementations§

Source§

impl DelayCalculator for ElmoreDelayCalculator

Source§

fn calculate_wire_delay(&self, length: i32, load_capacitance: f64) -> f64

Elmore wire delay: $\text{delay} = R \times \left(\frac{C}{2} + C_{\text{load}}\right)$

where $R = r_{\text{unit}} \times \text{length}$ and $C = c_{\text{unit}} \times \text{length}$.

Source§

fn calculate_tapping_point( &self, distance: i32, left_delay: f64, right_delay: f64, left_capacitance: f64, right_capacitance: f64, ) -> TappingResult

Tapping point for Elmore delay model. Solves for split fraction $z$:

$$z = \frac{\text{skew} + R(C_W/2 + C_{\text{right}})}{R(C_W + C_{\text{right}} + C_{\text{left}})}$$

where $R = r \cdot \text{distance}$ and $C_W = c \cdot \text{distance}$.

Source§

fn calculate_wire_delay_per_unit(&self, load_capacitance: f64) -> f64

Calculates the wire delay per unit length for a given load capacitance.
Source§

fn calculate_wire_capacitance(&self, length: i32) -> f64

Calculates the total wire capacitance for a given length.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.