Tuesday, October 8, 2013

Mux Gate


Truth Table
a b sel | f(a,b,sel)
---------------------
0 0 0   | 0
0 0 1   | 0
0 1 0   | 0
0 1 1   | 1
1 0 0   | 1
1 0 1   | 0
1 1 0   | 1
1 1 1   | 1

Boolean Expression


----------------------------------------
CHIP Mux
{
    IN a, b, sel;
    OUT out;

    PARTS:
    Not(in=sel, out=selNot);
    And(a=selNot, b=a, out=out1);
    And(a=sel, b=b, out=out2);
    Or(a=out1, b=out2, out=out);
}
----------------------------------------

No comments:

Post a Comment