Re-do HalfAdder.hdl and FullAdder.hdl
x1phosura x1phosura@x1phosura.zone
Sun, 28 Nov 2021 20:42:21 -0800
3 files changed,
18 insertions(+),
3 deletions(-)
M
projects/02/FullAdder.hdl
→
projects/02/FullAdder.hdl
@@ -13,5 +13,7 @@ OUT sum, // Right bit of a + b + c
carry; // Left bit of a + b + c PARTS: - // Put you code here: -}+ HalfAdder(a=a, b=b, sum=sum1, carry=carry1); + HalfAdder(a=sum1, b=c, sum=sum, carry=carry2); + Xor(a=carry1, b=carry2, out=carry); +}
M
projects/02/HalfAdder.hdl
→
projects/02/HalfAdder.hdl
@@ -13,5 +13,6 @@ OUT sum, // Right bit of a + b
carry; // Left bit of a + b PARTS: - // Put you code here: + Xor(a=a, b=b, out=sum); + And(a=a, b=b, out=carry); }
A
projects/02/PROGRESS.md
@@ -0,0 +1,12 @@
+ +# Progress + +## TODO +Add16 +ALU +FullAdder +Inc16 + +## DONE +HalfAdder +