project01: Comments/cleanup

This commit is contained in:
2025-09-03 22:10:34 -04:00
parent dd31b8f1dc
commit 934f1ad2f5
11 changed files with 54 additions and 33 deletions

View File

@@ -12,7 +12,10 @@ CHIP DMux {
OUT a, b;
PARTS:
Not(in=sel, out=tmp);
And(a=in, b=tmp, out=a);
// invert sel
Not(in=sel, out=notSel);
// when sel=0: a gets in
And(a=in, b=notSel, out=a);
// when sel=1: b gets in
And(a=in, b=sel, out=b);
}