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)Auto Trait Implementations§
impl<D, T> RefUnwindSafe for Signal<D, T>where D: RefUnwindSafe, T: RefUnwindSafe,
impl<D, T> Send for Signal<D, T>where D: Send, T: Send,
impl<D, T> Sync for Signal<D, T>where D: Sync, T: Sync,
impl<D, T> Unpin for Signal<D, T>where D: Unpin, T: Unpin,
impl<D, T> UnwindSafe for Signal<D, T>where D: UnwindSafe, T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more