Solved the 'smaller' gates and probably not with the best solutions.
This commit is contained in:
@@ -15,4 +15,17 @@ CHIP Mux {
|
||||
|
||||
PARTS:
|
||||
// Put your code here:
|
||||
Nand(a=sel, b=b, out=out1);
|
||||
Nand(a=out1, b=out1, out=out2);
|
||||
|
||||
Nand(a=sel, b=sel, out=out3);
|
||||
Nand(a=a, b=out3, out=out4);
|
||||
Nand(a=out4, b=out4, out=out5);
|
||||
|
||||
//Nand(a=out2, b=out5, out=out);
|
||||
//Nand(a=out6, b=out6, out=out);
|
||||
//OR
|
||||
Nand(a=out2, b=out2, out=out6);
|
||||
Nand(a=out5, b=out5, out=out7);
|
||||
Nand(a=out6, b=out7, out=out);
|
||||
}
|
||||
Reference in New Issue
Block a user