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

@@ -18,7 +18,9 @@ CHIP DMux8Way {
OUT a, b, c, d, e, f, g, h;
PARTS:
DMux(in=in, sel=sel[2], a=tmp1, b=tmp2);
DMux4Way(in=tmp1, sel=sel[0..1], a=a, b=b, c=c, d=d);
DMux4Way(in=tmp2, sel=sel[0..1], a=e, b=f, c=g, d=h);
// sel[2] split in to two groups of 4
DMux(in=in, sel=sel[2], a=lowGroup, b=highGroup);
// sel[0..1] split each group to out
DMux4Way(in=lowGroup, sel=sel[0..1], a=a, b=b, c=c, d=d);
DMux4Way(in=highGroup, sel=sel[0..1], a=e, b=f, c=g, d=h);
}