summaryrefslogtreecommitdiff
path: root/src/hal/components/and2.comp
blob: 345eeb0841ee92e9c5993675d2b825eefca3e27c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
component and2 "Two-input AND 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=TRUE in1=TRUE\\fB
\\fBout=TRUE\\fR
.TP
Otherwise,
\\fBout=FALSE\\fR
.RE"""
;
function _ nofp;
license "GPL";
;;
FUNCTION(_) { out = in0 && in1; }