pub struct MultiplierSpec {
pub name: String,
pub csd: String,
pub input_width: usize,
pub max_power: usize,
}Expand description
Specification for a single CSD multiplier coefficient
Used with generate_csd_multipliers() for multi-coefficient
cross-common-subexpression elimination.
Fields§
§name: StringOutput port name (e.g. “y0”, “y1”)
csd: StringCSD string (‘+’, ‘-’, ‘0’)
input_width: usizeBit width of input x
max_power: usizeHighest power (len(csd) - 1)
Trait Implementations§
Source§impl Clone for MultiplierSpec
impl Clone for MultiplierSpec
Source§fn clone(&self) -> MultiplierSpec
fn clone(&self) -> MultiplierSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultiplierSpec
impl RefUnwindSafe for MultiplierSpec
impl Send for MultiplierSpec
impl Sync for MultiplierSpec
impl Unpin for MultiplierSpec
impl UnsafeUnpin for MultiplierSpec
impl UnwindSafe for MultiplierSpec
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