Struct rust_hdl_core::signal::Signal
source · pub struct Signal<D: Direction, T: Synth> {
pub next: T,
pub changed: bool,
/* private fields */
}
Fields§
§next: T
§changed: bool
Implementations§
source§impl<D: Direction, T: Synth> Signal<D, T>
impl<D: Direction, T: Synth> Signal<D, T>
pub fn add_constraint(&mut self, constraint: PinConstraint)
pub fn add_location(&mut self, index: usize, location: &str)
pub fn add_signal_type(&mut self, index: usize, signal: SignalType)
source§impl<D: Direction> Signal<D, Bit>
impl<D: Direction> Signal<D, Bit>
pub fn pin_signal(location: &str, kind: SignalType) -> Signal<D, Bit>
source§impl<T: Synth> Signal<InOut, T>
impl<T: Synth> Signal<InOut, T>
pub fn set_tristate_is_output(&mut self, flag: bool)
pub fn is_driving_tristate(&self) -> bool
pub fn simulate_connected_tristate(&mut self, other: &mut Self)
Trait Implementations§
source§impl<D: Direction, T: Synth> Block for Signal<D, T>
impl<D: Direction, T: Synth> Block for Signal<D, 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)