Skip to main content

TimingGraph

Struct TimingGraph 

Source
pub struct TimingGraph {
Show 13 fields pub nodes: Vec<String>, pub edges: Vec<Edge>, pub costs: Vec<Cost>, pub owner: Vec<usize>, pub instances: Vec<String>, pub flops: usize, pub area: Vec<Area>, pub public: Vec<bool>, pub inputs: Vec<usize>, pub outputs: Vec<usize>, pub structure: Option<Structure>, pub boxes: Vec<Boxed>, pub fanout: Option<Fanout>,
}
Expand description

A timing graph: a node per net bit and per internal point of a carry chain, DSP block or memory.

Fields§

§nodes: Vec<String>

Each node’s name: the net’s name and bit, or the cell’s and its point.

§edges: Vec<Edge>§costs: Vec<Cost>

What each edge adds, by kind, for a graph read from a netlist (TimingGraph::reweigh); empty for one built by hand.

§owner: Vec<usize>

The instance whose cell made each edge, an index into instances.

§instances: Vec<String>

Instance paths in the form Quartus prints them, |-separated; the top is "".

§flops: usize

Flip-flop bits.

§area: Vec<Area>

What each instance’s own cells take, by instance (TimingGraph::area_under sums a subtree).

§public: Vec<bool>

Whether each node is a bit of a net the design names (a signal of its source, not one synthesis made).

§inputs: Vec<usize>

The module’s input and output port bits, ports by name and each one’s bits in order.

§outputs: Vec<usize>§structure: Option<Structure>

How each node is made, when the graph was read from a netlist: what writing it back out as Verilog needs.

§boxes: Vec<Boxed>

The instances of modules timed apart.

§fanout: Option<Fanout>

The loads each net drives and what drives it, for a graph read from a netlist; none for one built by hand.

Implementations§

Source§

impl TimingGraph

Source

pub fn area_under(&self, path: &str) -> Area

What instance path and every instance under it take (Area); the top is "", the whole graph.

Source

pub fn arrivals(&self) -> Result<Vec<i64>, TimingError>

Each node’s arrival: the deepest combinational path ending there.

Source

pub fn fanouts(&self) -> Vec<u64>

How deep the logic is, overall and through every instance. Each node’s loads: the cell inputs it reaches, a memory port counted as the blocks it reaches; every edge one load in a graph built by hand.

Source

pub fn wide(&self, logic: u64, register: u64) -> Vec<Wide>

The nets past their bound, widest first (ties by name): those logic or a memory drives past logic loads, a register past register — a register whose net asks for at most N loads (maxfan) being copies of N each, past it only when N is — an input past logic (whatever drives it outside); a box’s outputs are the box’s to bound, a clock rides a clock network, and a point inside a cell is no net. Empty for a graph built by hand.

Source

pub fn depth(&self) -> Result<Depth, TimingError>

Source

pub fn reweigh(&mut self, delays: &Delays)

Every edge’s delay from its cost at delays: the graph as reading its netlist at delays makes it.

Source

pub fn cost(&self, edges: &[usize]) -> Cost

What edges add together.

Source

pub fn endpoints(&self) -> Result<Vec<Endpoint>, TimingError>

The deepest path into each register and each output, deepest first. A register’s path ends at its input: a delay on a registered edge counts after the register, in the next stage.

Source

pub fn loop_bound(&self) -> Result<Bound, GraphError>

The bound the design’s loops put on its clock, in the graph’s delay unit per register.

Source

pub fn name_loop(&self, bound: &Bound) -> Vec<String>

A bound’s loop, node by node in order, a register’s output marked with the registers it comes out of.

Trait Implementations§

Source§

impl Clone for TimingGraph

Source§

fn clone(&self) -> TimingGraph

Returns a duplicate 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 TimingGraph

Source§

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

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

impl Default for TimingGraph

Source§

fn default() -> TimingGraph

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

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,