summaryrefslogtreecommitdiff
path: root/adder.lg
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-12-28 16:06:01 +1300
committerDavid Phillips <david@sighup.nz>2017-12-28 16:06:01 +1300
commit9026a7e5c0f16bde1c0826dc95158c6e03795905 (patch)
treeb126e3c2d2233ade9325075f4f325c5e3822cfa5 /adder.lg
parentf5411bc35f6df1c27aae8d3405e18452cbbc957f (diff)
downloadhence-9026a7e5c0f16bde1c0826dc95158c6e03795905.tar.xz
Rough-out logic gate wiring
Diffstat (limited to 'adder.lg')
-rw-r--r--adder.lg6
1 files changed, 2 insertions, 4 deletions
diff --git a/adder.lg b/adder.lg
index a883081..f751a3b 100644
--- a/adder.lg
+++ b/adder.lg
@@ -1,9 +1,7 @@
module adder
-node input a
-node input b
-node output r0
-node output r1
+input a
+input b
expr r0: xor a b
expr r1: and a b