±«Óătv

Combining gates

can be combined to form more complex and . These combinations are known as logic . The three types of gate can be used in any combination to generate the desired output.

Example - combining two AND gates

Two combined AND gates

Here, the output Q is 1 (TRUE) only if inputs C and D are 1 (TRUE). D is only 1 (TRUE) if inputs A and B are 1 (TRUE).

As a , this circuit is

ABCD = A AND BQ
00000
00100
01000
01100
10000
10100
11010
11111
A0
B0
C0
D = A AND B0
Q0
A0
B0
C1
D = A AND B0
Q0
A0
B1
C0
D = A AND B0
Q0
A0
B1
C1
D = A AND B0
Q0
A1
B0
C0
D = A AND B0
Q0
A1
B0
C1
D = A AND B0
Q0
A1
B1
C0
D = A AND B1
Q0
A1
B1
C1
D = A AND B1
Q1

In , this circuit is represented by the logic Q = (A AND B) AND C.

Note - D is not strictly necessary in the table, but it helps in understanding Q.

Example - combining OR and NOT gates

A combined OR and NOT gate

Here, the output Q is 1 (TRUE) only if inputs A and B are both 0 (FALSE).

ABCQ
0001
0110
1010
1110
A0
B0
C0
Q1
A0
B1
C1
Q0
A1
B0
C1
Q0
A1
B1
C1
Q0

In Boolean algebra, this circuit is represented by the logic statement Q = NOT (A OR B).

Operator precedence

In mathematics, the acronym BODMAS (brackets, orders, division, multiplication, addition, subtraction) is used to help remember the order in which to carry out a mathematical calculation. Boolean algebra also has a particular order for carrying out calculations. It is brackets, NOT, AND, OR. You may need to know this to answer exam questions.