pub struct Accum<const N: usize, const M: usize, const P: usize> {
pub clock: Signal<In, Clock>,
pub strobe_in: Signal<In, Bit>,
pub data_in: Signal<In, Bits<N>>,
pub strobe_out: Signal<Out, Bit>,
pub data_out: Signal<Out, Bits<M>>,
/* private fields */
}Fields§
§clock: Signal<In, Clock>§strobe_in: Signal<In, Bit>§data_in: Signal<In, Bits<N>>§strobe_out: Signal<Out, Bit>§data_out: Signal<Out, Bits<M>>Implementations§
Trait Implementations§
Source§impl<const N: usize, const M: usize, const P: usize> Block for Accum<N, M, P>
impl<const N: usize, const M: usize, const P: usize> Block for Accum<N, M, P>
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 N: usize, const M: usize, const P: usize> Freeze for Accum<N, M, P>
impl<const N: usize, const M: usize, const P: usize> RefUnwindSafe for Accum<N, M, P>
impl<const N: usize, const M: usize, const P: usize> Send for Accum<N, M, P>
impl<const N: usize, const M: usize, const P: usize> Sync for Accum<N, M, P>
impl<const N: usize, const M: usize, const P: usize> Unpin for Accum<N, M, P>
impl<const N: usize, const M: usize, const P: usize> UnwindSafe for Accum<N, M, P>
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