pub struct SyncReceiver<T: Synth> {
    pub sig_out: Signal<Out, T>,
    pub clock: Signal<In, Clock>,
    pub sig_cross: Signal<In, T>,
    pub flag_in: Signal<In, Bit>,
    pub ack_out: Signal<Out, Bit>,
    pub update: Signal<Out, Bit>,
    /* private fields */
}
Expand description

A SyncReceiver works together with a SyncSender to transmit data from one clock domain to another (in one direction). To use a SyncReceiver wire up the [sig_cross], [flag_in] and [ack_out] signals between the two.

Fields§

§sig_out: Signal<Out, T>

The data output synchronized to the receiver’s clock

§clock: Signal<In, Clock>

The receivers clock signal. Data is synchronized to this clock.

§sig_cross: Signal<In, T>

The wires used to send data from the SyncSender to the SyncReceiver.

§flag_in: Signal<In, Bit>

This is wired up to the SyncSender::flag_out, and carries the new-data flag.

§ack_out: Signal<Out, Bit>

This is wired up to the SyncSender::ack_in, and carries the acknowledge flag.

§update: Signal<Out, Bit>

This signal will strobe high for one clock when the output is valid and synchronized.

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.