John Mavrick's Garden

Search IconIcon to open search

Last updated Unknown

Status: Links: Computer Gates


DMux4Way Gate

Notes

Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
CHIP DMux4Way {
    IN in, sel[2];
    OUT a, b, c, d;

    PARTS:
    DMux(in=in, sel=sel[1], a=t1, b=t2);
	DMux(in=t1, sel=sel[0], a=a, b=b);
	DMux(in=t2, sel=sel[0], a=c, b=d);
	
}

Truth Table

in sel a b c d
0 00 0 0 0 0
0 01 0 0 0 0
0 10 0 0 0 0
0 11 0 0 0 0
1 00 1 0 0 0
1 01 0 1 0 0
1 10 0 0 1 0
1 11 0 0 0 1


Interactive Graph