Skip to main content

DMEAlgorithm

Struct DMEAlgorithm 

Source
pub struct DMEAlgorithm { /* private fields */ }
Expand description

The DME (Deferred Merge Embedding) algorithm for clock tree synthesis.

Builds a prescribed-skew clock tree using a bottom-up merging phase and a top-down embedding phase. Uses an arena-allocated node representation (Tree) for cache efficiency. The constructed tree can be queried via get_tree().

Supports both linear and Elmore delay models via the DelayCalculator trait.

Implementations§

Source§

impl DMEAlgorithm

Source

pub fn new(sinks: Vec<Sink>, calculator: Box<dyn DelayCalculator>) -> Self

Creates a new DME algorithm instance with the given sinks and delay model.

§Panics

Panics if sinks is empty.

Source

pub fn with_source( sinks: Vec<Sink>, calculator: Box<dyn DelayCalculator>, source: Point<i32, i32>, ) -> Self

Creates a new DME algorithm with a specified clock source position.

§Panics

Panics if sinks is empty.

Source

pub fn get_tree(&self) -> &Tree

Returns a reference to the constructed tree.

Source

pub fn get_tree_mut(&mut self) -> &mut Tree

Returns a mutable reference to the constructed tree.

Source

pub fn build_clock_tree(&mut self) -> NodeIdx

Builds the clock tree and returns the root index.

Source

pub fn analyze_skew(&self, root: NodeIdx) -> SkewAnalysis

Analyze clock skew from the constructed tree.

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.