Re-do And.hdl, Not,hdl, Or.hdl, and Xor.hdl
x1phosura x1phosura@x1phosura.zone
Sun, 28 Nov 2021 19:15:26 -0800
5 files changed,
15 insertions(+),
10 deletions(-)
M
projects/01/And.hdl
→
projects/01/And.hdl
@@ -14,5 +14,6 @@ IN a, b;
OUT out; PARTS: - // Put your code here: + Nand(a=a, b=b, out=nand-out); + Not(in=nand-out, out=out); }
M
projects/01/Not.hdl
→
projects/01/Not.hdl
@@ -13,5 +13,5 @@ IN in;
OUT out; PARTS: - // Put your code here: -}+ Nand(a=in, b=in, out=out); +}
M
projects/01/Or.hdl
→
projects/01/Or.hdl
@@ -14,5 +14,7 @@ IN a, b;
OUT out; PARTS: - // Put your code here: + Not(in=a, out=not1); + Not(in=b, out=not2); + Nand(a=not1, b=not2, out=out); }
M
projects/01/PROGRESS.md
→
projects/01/PROGRESS.md
@@ -3,7 +3,6 @@ # Progress
## TODO And16 -And DMux4Way DMux8Way DMux@@ -12,11 +11,12 @@ Mux4Way16
Mux8Way16 Mux Not16 -Not Or16 Or8Way + +## DONE +And +Not Or Xor -## DONE -
M
projects/01/Xor.hdl
→
projects/01/Xor.hdl
@@ -13,5 +13,7 @@ IN a, b;
OUT out; PARTS: - // Put your code here: -}+ Nand(a=a, b=b, out=nand-out); + Or(a=a, b=b, out=or-out); + And(a=nand-out, b=or-out, out=out); +}