summaryrefslogtreecommitdiff
path: root/src/hal/components/or2.comp
blob: 40671bb913cd65359e9ea4bb5edef8073d11ca02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
component or2 "Two-input OR gate";
pin in bit in0;
pin in bit in1;
pin out bit out """\
\\fBout\\fR is computed from the value of \\fBin0\\fR and \\fBin1\\fR according
to the following rule:
.RS
.TP
\\fBin0=FALSE in1=FALSE\\fB
\\fBout=FALSE\\fR
.TP
Otherwise,
\\fBout=TRUE\\fR
.RE"""
;
function _ nofp;
license "GPL";
;;
FUNCTION(_) { out = in0 || in1; }