aboutsummaryrefslogtreecommitdiff
path: root/projects/02/FullAdder.hdl
diff options
context:
space:
mode:
Diffstat (limited to 'projects/02/FullAdder.hdl')
-rw-r--r--projects/02/FullAdder.hdl5
1 files changed, 4 insertions, 1 deletions
diff --git a/projects/02/FullAdder.hdl b/projects/02/FullAdder.hdl
index 67559c3..451499f 100644
--- a/projects/02/FullAdder.hdl
+++ b/projects/02/FullAdder.hdl
@@ -14,4 +14,7 @@ CHIP FullAdder {
PARTS:
// Put you code here:
-} \ No newline at end of file
+ HalfAdder (a=a, b=b, sum=sum1, carry=carry1);
+ HalfAdder (a=sum1, b=c, sum=sum, carry=carry2);
+ Or (a=carry1, b=carry2, out=carry);
+}