pub struct Demux8Way { /* private fields */ }
Expand description
8-way demultiplexor
Implementations
sourceimpl Demux8Way
impl Demux8Way
sourcepub fn sim(&mut self, inp: Signal, sel: Signal3) -> [Signal; 8]
pub fn sim(&mut self, inp: Signal, sel: Signal3) -> [Signal; 8]
Carries out the simulation and returns
if sel == 0 { [inp, 0, 0, 0, 0, 0, 0, 0] }
if sel == 1 { [ 0,inp, 0, 0, 0, 0, 0, 0] }
if sel == 2 { [ 0, 0,inp, 0, 0, 0, 0, 0] }
if sel == 3 { [ 0, 0, 0,inp, 0, 0, 0, 0] }
if sel == 4 { [ 0, 0, 0, 0,inp, 0, 0, 0] }
if sel == 5 { [ 0, 0, 0, 0, 0,inp, 0, 0] }
if sel == 6 { [ 0, 0, 0, 0, 0, 0,inp, 0] }
if sel == 7 { [ 0, 0, 0, 0, 0, 0, 0,inp] }
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Demux8Way
impl Send for Demux8Way
impl Sync for Demux8Way
impl Unpin for Demux8Way
impl UnwindSafe for Demux8Way
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more