pub struct HardFloat {
pub product: Option<Block>,
pub sum: Block,
pub fp_unit: FpUnit,
}Expand description
The floating-point DSP block’s add, and its multiply unless the multiplies stay soft, as the oracle measured them
(crate::codegen_sva::fp_hard::Block): a hybrid engine whose fast side builds logos_fadd_p, and logos_fmul_p
given a product, on the block (crate::codegen_sva::fp_hard::hard_verilog_for), each the soft unit’s ports and
latency, the logic around the block correcting what it computes otherwise. The add computes the engine’s own
arithmetic; the multiply the arithmetic of fp_unit: at FpUnit::Soft the engine’s, so a block whose multiply
decides a product tiny before the engine does is refused, at FpUnit::Hard the card’s (FpUnit::CARD), the
arithmetic the numerics of an fp_unit: Hard knob point multiply by.
Fields§
§product: Option<Block>§sum: Block§fp_unit: FpUnitImplementations§
Source§impl HardFloat
impl HardFloat
Sourcepub fn product_target(&self) -> Semantics
pub fn product_target(&self) -> Semantics
The arithmetic the product’s wrapper computes: the engine’s at FpUnit::Soft, the card’s at FpUnit::Hard.
Trait Implementations§
impl Copy for HardFloat
impl Eq for HardFloat
impl StructuralPartialEq for HardFloat
Auto Trait Implementations§
impl Freeze for HardFloat
impl RefUnwindSafe for HardFloat
impl Send for HardFloat
impl Sync for HardFloat
impl Unpin for HardFloat
impl UnsafeUnpin for HardFloat
impl UnwindSafe for HardFloat
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
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>
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>
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)
&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)
&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
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.