mirror of
https://github.com/soconnor0919/eceg431.git
synced 2025-12-11 22:54:43 -05:00
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:
@@ -13,7 +13,7 @@ CHIP DMux {
|
||||
|
||||
PARTS:
|
||||
// DMux(in,sel) -> a = And(in, Not(sel)), b = And(in, sel)
|
||||
Not(in=sel, out=notSel);
|
||||
And(a=in, b=notSel, out=a);
|
||||
Not(in=sel, out=tmp);
|
||||
And(a=in, b=tmp, out=a);
|
||||
And(a=in, b=sel, out=b);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user