Skip to content

Commit

Permalink
working demuxer
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoylan committed Jan 15, 2012
1 parent 1ab7b7f commit 694667e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions project01/DMux.hdl
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,13 @@ CHIP DMux {

PARTS:
// Put your code here.
// DMux = {
// a = in * not(sel)
// b = in * sel
// }
Not(in=sel, out=notSel);
And(a=in, b=notSel, out=a);

And(a=in, b=sel, out=b);

}

0 comments on commit 694667e

Please sign in to comment.