aboutsummaryrefslogtreecommitdiffstats
path: root/src/hal/components/and2.comp
blob: 3f1d8cc587de04eb6afb9f8fc24d64462e5668df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
component and2 "Two-input AND gate";
pin in bit in0;
pin in bit in1;
pin out bit out """
.P
The \\fBout\\fR pin is computed from the value of the \\fBin0\\fR and
\\fBin1\\fR pins according to the following rule:
.RS
.TP
\\fBin0=TRUE in1=TRUE\\fB
\\fBout=TRUE\\fR
.TP
Otherwise,
\\fBout=FALSE\\fR
.RE"""
;
function _ nofp;
see_also """
\\fBlogic\\fR(9),
\\fBlut5\\fR(9),
\\fBnot\\fR(9),
\\fBor2\\fR(9),
\\fBxor2\\fR(9).
""";
license "GPL";
author "Jeff Epler";
;;
FUNCTION(_) { out = in0 && in1; }
bues.ch cgit interface