Refactor: Use simple tmp variable names instead of descriptive ones

- Changed nandOut -> tmp
- Changed notA, notB -> tmp1, tmp2
- Changed descriptive names -> tmp1, tmp2, tmp3, etc.

Makes code cleaner and more concise while maintaining functionality.
This commit is contained in:
2025-08-28 14:39:07 +02:00
parent 085a90e4c8
commit ecdc6ab2bc
10 changed files with 36 additions and 36 deletions

View File

@@ -12,11 +12,11 @@ CHIP Or8Way {
PARTS:
// Chain Or gates to combine all 8 inputs
Or(a=in[0], b=in[1], out=or01);
Or(a=in[2], b=in[3], out=or23);
Or(a=in[4], b=in[5], out=or45);
Or(a=in[6], b=in[7], out=or67);
Or(a=or01, b=or23, out=or0123);
Or(a=or45, b=or67, out=or4567);
Or(a=or0123, b=or4567, out=out);
Or(a=in[0], b=in[1], out=tmp1);
Or(a=in[2], b=in[3], out=tmp2);
Or(a=in[4], b=in[5], out=tmp3);
Or(a=in[6], b=in[7], out=tmp4);
Or(a=tmp1, b=tmp2, out=tmp5);
Or(a=tmp3, b=tmp4, out=tmp6);
Or(a=tmp5, b=tmp6, out=out);
}