From 953cfb7511715e0c18a2038d90910f6eb7600cb6 Mon Sep 17 00:00:00 2001 From: Nemo Date: Wed, 20 May 2020 16:41:07 +0530 Subject: [PATCH] Remove 1 Mux, but this still sucks --- projects/02/FullAdder.hdl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/02/FullAdder.hdl b/projects/02/FullAdder.hdl index babb648..a131784 100644 --- a/projects/02/FullAdder.hdl +++ b/projects/02/FullAdder.hdl @@ -14,8 +14,7 @@ CHIP FullAdder { PARTS: HalfAdder(a=b, b=c, sum=is, carry=ic); - Not(in=is, out=nis); - Mux(a=is, b=nis, sel=a, out=sum); + Xor(a=a, b=is, out=sum); Or(a=is, b=ic, out=carryifaisone); Mux(a=ic, b=carryifaisone, sel=a, out=carry);