Struct rust_hdl_widgets::dff_with_init::DFFWithInit
source · pub struct DFFWithInit<T: Synth + BitXor<Output = 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§
Trait Implementations§
source§impl<T: Synth + BitXor<Output = T>> Block for DFFWithInit<T>
impl<T: Synth + BitXor<Output = 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 + Synth + BitXor<Output = T>> Clone for DFFWithInit<T>
impl<T: Clone + Synth + BitXor<Output = 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 more