diff --git a/projects/01/DMux.hdl b/projects/01/DMux.hdl index e4fbb7e..68d5376 100644 --- a/projects/01/DMux.hdl +++ b/projects/01/DMux.hdl @@ -14,5 +14,7 @@ CHIP DMux { OUT a, b; PARTS: - // Put your code here: + And(a=in, b=sel, out=b); + Not(in=sel, out=nsel); + And(a=in, b=nsel, out=a); } diff --git a/projects/01/DMux.out b/projects/01/DMux.out new file mode 100644 index 0000000..9a92ec0 --- /dev/null +++ b/projects/01/DMux.out @@ -0,0 +1,5 @@ +| in | sel | a | b | +| 0 | 0 | 0 | 0 | +| 0 | 1 | 0 | 0 | +| 1 | 0 | 1 | 0 | +| 1 | 1 | 0 | 1 |