summaryrefslogtreecommitdiff
path: root/sample/gates.hence
diff options
context:
space:
mode:
Diffstat (limited to 'sample/gates.hence')
-rw-r--r--sample/gates.hence12
1 files changed, 12 insertions, 0 deletions
diff --git a/sample/gates.hence b/sample/gates.hence
new file mode 100644
index 0000000..6cd6aae
--- /dev/null
+++ b/sample/gates.hence
@@ -0,0 +1,12 @@
+module gates
+
+input a
+input b
+
+expr and: and a b
+expr or: or a b
+expr nand: nand a b
+expr nor: nor a b
+expr xor: xor a b
+expr nota: not a
+expr notb: not b