At the simplest level, computers are little more than a collection of transistors and circuits. They connect together to form logic gates, which in turn are used to form logic circuits.
logic gateCircuit components which take several inputs, compare the inputs with each other, and provide a single output based on logical functions such as AND, OR and NOT. are often combined to create more complex conditions. When this happens, the outputData which is sent out of a system. of one gate is connected directly to another gate.
Combining two AND gates
Here, the output Q is 1 (TRUE) only if inputData which is inserted into a system for processing and/or storage. C and D are 1 (TRUE). D is only 1 (TRUE) if inputs A and B are 1 (TRUE).
As a truth tableA table to list the output for all possible input combinations into a logic gate. this circuit is:
A
B
C
D = A AND B
Q
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
1
1
0
0
1
0
0
0
0
1
0
1
0
0
1
1
0
1
0
1
1
1
1
1
A
0
B
0
C
0
D = A AND B
0
Q
0
A
0
B
0
C
1
D = A AND B
0
Q
0
A
0
B
1
C
0
D = A AND B
0
Q
0
A
0
B
1
C
1
D = A AND B
0
Q
0
A
1
B
0
C
0
D = A AND B
0
Q
0
A
1
B
0
C
1
D = A AND B
0
Q
0
A
1
B
1
C
0
D = A AND B
1
Q
0
A
1
B
1
C
1
D = A AND B
1
Q
1
Note: D is not strictly necessary in the table, but it helps in understanding Q.