pub struct Reducer<const DW: usize, const DN: usize> {
pub bus_read: FIFOReadController<Bits<DW>>,
pub bus_write: FIFOWriteController<Bits<DN>>,
pub clock: Signal<In, Clock>,
/* private fields */
}
Fields§
§bus_read: FIFOReadController<Bits<DW>>
§bus_write: FIFOWriteController<Bits<DN>>
§clock: Signal<In, Clock>
Implementations§
Trait Implementations§
Source§impl<const DW: usize, const DN: usize> Block for Reducer<DW, DN>
impl<const DW: usize, const DN: usize> Block for Reducer<DW, DN>
Source§fn connect_all(&mut self)
fn connect_all(&mut self)
Connects the internal signals of the circuit - used to initialize the circuit
Source§fn update_all(&mut self)
fn update_all(&mut self)
Propogate changes from inputs to outputs within the circuit
Source§fn has_changed(&self) -> bool
fn has_changed(&self) -> bool
Returns
true
if anything in the circuit has changed (outputs or internal state)Auto Trait Implementations§
impl<const DW: usize, const DN: usize> Freeze for Reducer<DW, DN>
impl<const DW: usize, const DN: usize> RefUnwindSafe for Reducer<DW, DN>
impl<const DW: usize, const DN: usize> Send for Reducer<DW, DN>
impl<const DW: usize, const DN: usize> Sync for Reducer<DW, DN>
impl<const DW: usize, const DN: usize> Unpin for Reducer<DW, DN>
impl<const DW: usize, const DN: usize> UnwindSafe for Reducer<DW, DN>
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