From b8f53f80d0a506f1c64d2318db8e05f844bb1fa0 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Wed, 29 Nov 2017 16:19:33 +0100 Subject: Finished Project 1. --- projects/01/And1With16.hdl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 projects/01/And1With16.hdl (limited to 'projects/01/And1With16.hdl') diff --git a/projects/01/And1With16.hdl b/projects/01/And1With16.hdl new file mode 100644 index 0000000..c6d412c --- /dev/null +++ b/projects/01/And1With16.hdl @@ -0,0 +1,22 @@ +CHIP And1With16 { + IN a, b[16]; + OUT out[16]; + + PARTS: + And (a=a, b=b[0], out=out[0]); + And (a=a, b=b[1], out=out[1]); + And (a=a, b=b[2], out=out[2]); + And (a=a, b=b[3], out=out[3]); + And (a=a, b=b[4], out=out[4]); + And (a=a, b=b[5], out=out[5]); + And (a=a, b=b[6], out=out[6]); + And (a=a, b=b[7], out=out[7]); + And (a=a, b=b[8], out=out[8]); + And (a=a, b=b[9], out=out[9]); + And (a=a, b=b[10], out=out[10]); + And (a=a, b=b[11], out=out[11]); + And (a=a, b=b[12], out=out[12]); + And (a=a, b=b[13], out=out[13]); + And (a=a, b=b[14], out=out[14]); + And (a=a, b=b[15], out=out[15]); +} -- cgit v1.2.3