From d4e7065850203ff97a1046615644f9a6f73eb523 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 30 Nov 2017 14:26:43 +0100 Subject: finished project 2 --- projects/02/FullAdder.hdl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'projects/02/FullAdder.hdl') 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); +} -- cgit v1.2.3