pub struct ClockTreeVisualizer {
pub margin: u32,
pub node_radius: u32,
pub wire_width: u32,
pub sink_color: String,
pub internal_color: String,
pub root_color: String,
pub wire_color: String,
pub text_color: String,
}Expand description
SVG visualizer for DME clock trees.
Color-codes nodes by type (root=red, internal=blue, sinks=green), draws parent-child wires with length labels, and overlays delay/capacitance info. Optionally displays a skew analysis panel.
Fields§
§margin: u32§node_radius: u32§wire_width: u32§sink_color: String§internal_color: String§root_color: String§wire_color: String§text_color: StringImplementations§
Source§impl ClockTreeVisualizer
impl ClockTreeVisualizer
pub fn new() -> Self
Sourcepub fn visualize_tree(
&self,
tree: &Tree,
root: NodeIdx,
sinks: &[Sink],
filename: &str,
width: u32,
height: u32,
analysis: Option<&SkewAnalysis>,
) -> String
pub fn visualize_tree( &self, tree: &Tree, root: NodeIdx, sinks: &[Sink], filename: &str, width: u32, height: u32, analysis: Option<&SkewAnalysis>, ) -> String
Produce an SVG string visualizing the clock tree rooted at root.
tree— the arena-allocated clock tree (fromDMEAlgorithm::get_tree())root— root node index (returned byDMEAlgorithm::build_clock_tree)sinks— original sink list (used to identify leaf nodes)filename— if non-empty, save the SVG to this pathwidth,height— SVG canvas dimensionsanalysis— optionalSkewAnalysisto display in an info panel
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClockTreeVisualizer
impl RefUnwindSafe for ClockTreeVisualizer
impl Send for ClockTreeVisualizer
impl Sync for ClockTreeVisualizer
impl Unpin for ClockTreeVisualizer
impl UnsafeUnpin for ClockTreeVisualizer
impl UnwindSafe for ClockTreeVisualizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more