pub struct Placement {
pub target: &'static str,
pub alloc: Allocation,
pub placed: Vec<Placed>,
pub routes: Vec<Route>,
pub pcu_total: usize,
pub pmu_total: usize,
pub budget: LinkBudget,
pub max_link_occupancy: usize,
pub routed_statically: bool,
pub router: &'static str,
}Fields§
§target: &'static str§alloc: Allocation§placed: Vec<Placed>§routes: Vec<Route>§pcu_total: usize§pmu_total: usize§budget: LinkBudget§max_link_occupancy: usizeMost vector routes sharing one DIRECTED mesh link.
routed_statically: boolEvery link within the budget.
router: &'static strWhich router produced the routes: xy-static (place) or the installed MeshRouter’s label
(place_routed).
Implementations§
Source§impl Placement
impl Placement
pub fn pcu_used(&self) -> usize
pub fn pmu_used(&self) -> usize
pub fn pcu_utilization(&self) -> f64
pub fn pmu_utilization(&self) -> f64
Sourcepub fn fu_utilization(&self, pcu_stages: usize) -> f64
pub fn fu_utilization(&self, pcu_stages: usize) -> f64
FU utilization inside the allocated PCUs: cells placed / (PCUs × stages per PCU).
pub fn total_hops(&self) -> usize
pub fn max_hops(&self) -> usize
Trait Implementations§
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Freeze for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn 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>
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)
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)
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.