pub struct BitSynchronizer {
    pub sig_in: Signal<In, Bit>,
    pub sig_out: Signal<Out, Bit>,
    pub clock: Signal<In, Clock>,
    /* private fields */
}
Expand description

A BitSynchronizer is used to move signals that are asynchronous to a clock into that clock domain using a pair of back-to-back flip-flops. While the first flip flop may become metastable, the second one is likely to be stable.

Fields§

§sig_in: Signal<In, Bit>

The input signal, which is asynchronous to the clock

§sig_out: Signal<Out, Bit>

The output signal, synchronized to the clock

§clock: Signal<In, Clock>

The clock signal to synchronize the output to

Trait Implementations§

Connects the internal signals of the circuit - used to initialize the circuit
Propogate changes from inputs to outputs within the circuit
Returns true if anything in the circuit has changed (outputs or internal state)
The visitor pattern - allows a circuit to be probed by a Probe struct.
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.