pub struct Signal<D, T>where
D: Direction,
T: Synth,{
pub next: T,
pub changed: bool,
/* private fields */
}
Fields§
§next: T
§changed: bool
Implementations§
source§impl<D, T> Signal<D, T>where
D: Direction,
T: Synth,
impl<D, T> Signal<D, T>where D: Direction, T: Synth,
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<T> Signal<Out, T>where
T: Synth,
impl<T> Signal<Out, T>where T: Synth,
pub fn new_with_default(init: T) -> Signal<Out, T>
source§impl<D> Signal<D, bool>where
D: Direction,
impl<D> Signal<D, bool>where D: Direction,
pub fn pin_signal(location: &str, kind: SignalType) -> Signal<D, bool>
source§impl<T> Signal<InOut, T>where
T: Synth,
impl<T> Signal<InOut, T>where T: Synth,
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 Signal<InOut, T>)
Trait Implementations§
source§impl<D, T> Block for Signal<D, T>where
D: Direction,
T: Synth,
impl<D, T> Block for Signal<D, T>where D: Direction, T: Synth,
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)