aboutsummaryrefslogtreecommitdiff
path: root/projects/01/Or16.hdl
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2017-11-29 16:19:33 +0100
committerYuchen Pei <me@ypei.me>2017-11-29 16:19:33 +0100
commitb8f53f80d0a506f1c64d2318db8e05f844bb1fa0 (patch)
tree55da26882508f5eef295b5841cda58debd1f96f5 /projects/01/Or16.hdl
parenta000308104aab27c2dde9a306f1bc654b2db4806 (diff)
Finished Project 1.
Diffstat (limited to 'projects/01/Or16.hdl')
-rw-r--r--projects/01/Or16.hdl18
1 files changed, 17 insertions, 1 deletions
diff --git a/projects/01/Or16.hdl b/projects/01/Or16.hdl
index 0238f05..4b46ec5 100644
--- a/projects/01/Or16.hdl
+++ b/projects/01/Or16.hdl
@@ -14,4 +14,20 @@ CHIP Or16 {
PARTS:
// Put your code here:
-} \ No newline at end of file
+ Or (a=a[0], b=b[0], out=out[0]);
+ Or (a=a[1], b=b[1], out=out[1]);
+ Or (a=a[2], b=b[2], out=out[2]);
+ Or (a=a[3], b=b[3], out=out[3]);
+ Or (a=a[4], b=b[4], out=out[4]);
+ Or (a=a[5], b=b[5], out=out[5]);
+ Or (a=a[6], b=b[6], out=out[6]);
+ Or (a=a[7], b=b[7], out=out[7]);
+ Or (a=a[8], b=b[8], out=out[8]);
+ Or (a=a[9], b=b[9], out=out[9]);
+ Or (a=a[10], b=b[10], out=out[10]);
+ Or (a=a[11], b=b[11], out=out[11]);
+ Or (a=a[12], b=b[12], out=out[12]);
+ Or (a=a[13], b=b[13], out=out[13]);
+ Or (a=a[14], b=b[14], out=out[14]);
+ Or (a=a[15], b=b[15], out=out[15]);
+}