pub fn latch(t: impl Into<ElemNode>, x: impl Into<ElemNode>) -> NodeExpand description
el.latch(t, x)
A sample and hold node. Samples a new value from x on a rising edge
of a pulse train t, then holds and emits that value until the next
rising edge of t.
Expected children:
- The control signal,
t, a pulse train - The input signal to sample