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)Auto Trait Implementations§
impl<D, T> Freeze for Signal<D, T>where
T: Freeze,
impl<D, T> RefUnwindSafe for Signal<D, T>where
T: RefUnwindSafe,
D: RefUnwindSafe,
impl<D, T> Send for Signal<D, T>
impl<D, T> Sync for Signal<D, T>
impl<D, T> Unpin for Signal<D, T>
impl<D, T> UnwindSafe for Signal<D, T>where
T: UnwindSafe,
D: 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