summaryrefslogtreecommitdiff
path: root/sample/gates.hence
blob: 6cd6aaec92df8650b478ff6cb4ddfdf001022145 (plain)
1
2
3
4
5
6
7
8
9
10
11
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