Struct rust_hdl::prelude::CrossNarrow
source · pub struct CrossNarrow<const DW: usize, const WN: usize, const WNP1: usize, const DN: usize, const NN: usize, const NNP1: usize> {
pub wide_bus: FIFOWriteResponder<Bits<DW>>,
pub wide_clock: Signal<In, Clock>,
pub narrow_bus: FIFOReadResponder<Bits<DN>>,
pub narrow_clock: Signal<In, Clock>,
/* private fields */
}
Fields§
§wide_bus: FIFOWriteResponder<Bits<DW>>
§wide_clock: Signal<In, Clock>
§narrow_bus: FIFOReadResponder<Bits<DN>>
§narrow_clock: Signal<In, Clock>
Implementations§
Trait Implementations§
source§impl<const DW: usize, const WN: usize, const WNP1: usize, const DN: usize, const NN: usize, const NNP1: usize> Block for CrossNarrow<DW, WN, WNP1, DN, NN, NNP1>
impl<const DW: usize, const WN: usize, const WNP1: usize, const DN: usize, const NN: usize, const NNP1: usize> Block for CrossNarrow<DW, WN, WNP1, DN, NN, NNP1>
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<const DW: usize, const WN: usize, const WNP1: usize, const DN: usize, const NN: usize, const NNP1: usize> Default for CrossNarrow<DW, WN, WNP1, DN, NN, NNP1>
impl<const DW: usize, const WN: usize, const WNP1: usize, const DN: usize, const NN: usize, const NNP1: usize> Default for CrossNarrow<DW, WN, WNP1, DN, NN, NNP1>
source§fn default() -> CrossNarrow<DW, WN, WNP1, DN, NN, NNP1>
fn default() -> CrossNarrow<DW, WN, WNP1, DN, NN, NNP1>
Returns the “default value” for a type. Read more