pub struct DFFWithInit<T>{
pub d: Signal<In, T>,
pub q: Signal<Out, T>,
pub clock: Signal<In, Clock>,
pub init: Constant<T>,
pub dff: DFF<T>,
}
Fields§
§d: Signal<In, T>
§q: Signal<Out, T>
§clock: Signal<In, Clock>
§init: Constant<T>
§dff: DFF<T>
Implementations§
Source§impl<T> DFFWithInit<T>
impl<T> DFFWithInit<T>
pub fn new(init: T) -> DFFWithInit<T>
Trait Implementations§
Source§impl<T> Block for DFFWithInit<T>
impl<T> Block for DFFWithInit<T>
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)Source§impl<T> Clone for DFFWithInit<T>
impl<T> Clone for DFFWithInit<T>
Source§fn clone(&self) -> DFFWithInit<T>
fn clone(&self) -> DFFWithInit<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for DFFWithInit<T>
impl<T> Debug for DFFWithInit<T>
Auto Trait Implementations§
impl<T> Freeze for DFFWithInit<T>where
T: Freeze,
impl<T> RefUnwindSafe for DFFWithInit<T>where
T: RefUnwindSafe,
impl<T> Send for DFFWithInit<T>where
T: Send,
impl<T> Sync for DFFWithInit<T>where
T: Sync,
impl<T> Unpin for DFFWithInit<T>where
T: Unpin,
impl<T> UnwindSafe for DFFWithInit<T>where
T: UnwindSafe,
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