diff options
author | Yuchen Pei <me@ypei.me> | 2017-11-29 16:19:33 +0100 |
---|---|---|
committer | Yuchen Pei <me@ypei.me> | 2017-11-29 16:19:33 +0100 |
commit | b8f53f80d0a506f1c64d2318db8e05f844bb1fa0 (patch) | |
tree | 55da26882508f5eef295b5841cda58debd1f96f5 /projects/01/And1With16.hdl | |
parent | a000308104aab27c2dde9a306f1bc654b2db4806 (diff) |
Finished Project 1.
Diffstat (limited to 'projects/01/And1With16.hdl')
-rw-r--r-- | projects/01/And1With16.hdl | 22 |
1 files changed, 22 insertions, 0 deletions
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]); +} |