Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. CHIP Mux {
  2. IN a, b, sel;
  3. OUT out;
  4.  
  5. PARTS:
  6. And(a=a,b=b,out=anotb);
  7. And(a=a,b=b,out=ab);
  8. And(a=a,b=b,out=notab);
  9. And(a=anotb,b=sel,out=anotbnotsel);
  10. And(a=ab,b=sel,out=abnotsel);
  11. And(a=notab,b=sel,out=notabsel);
  12. And(a=ab,b=sel,out=absel);
  13. Or(a=anotbnotsel,b=abnotsel,out=anotbnotselabnotsel);
  14. Or(a=notabsel,b=absel,out=notabselabsel);
  15. Or(a=anotbnotselabnotsel,b=notabselabsel,out=out);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement