Skip to content

Physics · Ch 9 — Semiconductor Electronics

Logic Gates

9.5.2

Logic Gates

A logic gate is an electronic circuit that operates on digital signals -- it is the basic building block of essentially every digital system, taking one or more binary inputs and producing a single binary output. There are three BASIC logic gates -- AND, OR and NOT -- and three DERIVED gates built from combinations of the basic ones -- NAND, NOR and Ex-OR -- each covered in its own sub-section below, always with its circuit symbol, its truth table (the exhaustive lis …

AND Gate

The two-input AND gate has inputs A and B and output Y, related by the Boolean equation Y=A⋅BY=A\cdot B -- this '.' operator performs LOGICAL multiplication, distinct from ordinary arithmetic multiplication even though it is written and often computed the same way for single bits. Its logic operation: the output is HIGH (logic 1) only when ALL the inputs are high; for every other input combination the output is LOW (logic 0). Concretely, the truth table gives Y=0Y=0 for (A,B)=(0,0),(0,1),(1,0)(A,B)=(0,0),(0,1),(1,0) and Y=1Y=1 only for (A,B)=(1,1)(A,B)=(1,1). …

Figure 9.41Two-input AND gate: circuit symbol and truth table

What this figure shows. Panel (a) is the standard AND-gate circuit symbol: a D-shaped (flat-back, rounded-front) block with two input lines A and B entering the flat side and a single output line Y leaving the rounded tip. Panel (b) is the truth table, four rows listing every combination of A and B (0,0 / 0,1 / 1,0 / 1,1) alongside the resulting output Y, with only the last row (A=1, B=1) giving Y=1 and all other rows giving Y=0, matching the equation Y=A⋅BY=A\cdot B pr …

OR Gate

The two-input OR gate has inputs A and B and output Y, related by the Boolean equation Y=A+BY=A+B -- this '+' operator performs LOGICAL addition, distinct from ordinary arithmetic addition (in particular 1+1=11+1=1 in Boolean algebra, not 2). Its logic operation: the output is HIGH (logic 1) when EITHER input, or both, are high; the output is LOW only when both inputs are low. Concretely, the truth table give …

Figure 9.42Two-input OR gate: circuit symbol and truth table

What this figure shows. Panel (a) is the standard OR-gate circuit symbol: a curved-back, pointed-front shield-like block with two input lines A and B entering the curved back and a single output line Y leaving the pointed tip. Panel (b) is the truth table, four rows listing every combination of A and B alongside the resulting output Y, with only the first row (A=0, B=0) giving Y=0 and every other row giving Y=1, matching the equation Y=A+BY=A+B prin …

NOT Gate

The single-input NOT gate has input A and output Y, related by the Boolean equation Y=A‾Y=\overline{A} -- the overbar denotes logical COMPLEMENT (also called inversion or negation). Its logic operation: the output is simply the complement of the input, which is why a NOT gate is also called an inverter -- when A is 0, Y is 1, and when A is 1, Y is 0. It is the only basic gate with a single input. Because it has only one input, the NOT gate's truth table has just two rows rather than the four every other gate in this section needs, and it is the only basic gate whose Boolean equation uses the overbar complement symbol on a single variable rather than combining two variables with '+' or '.'. It is also the gate directly realised by a single common-emitter transistor switch stage (9 …

Figure 9.43NOT gate: circuit symbol and truth table

What this figure shows. Panel (a) is the standard NOT-gate (inverter) circuit symbol: a triangular block with a single input line A entering its flat back and a small circle ('bubble', denoting inversion) at its pointed tip before the output line Y. Panel (b) is the truth table, two rows: A=0 gives Y=1, and A=1 gives Y=0, matching the complement equation Y=A‾Y=\overline{A} printed …

NAND Gate

The two-input NAND gate ('NOT-AND') has inputs A and B and output Y, related by the Boolean equation Y=A⋅B‾Y=\overline{A\cdot B} -- literally an AND gate followed by a NOT gate, and its output is exactly the COMPLEMENT of what an ordinary AND gate would give for the same inputs. Its logic operation: the output is LOW (logic 0) only when ALL inputs are high (the one case where a plain AND would have gi …

Figure 9.44Two-input NAND gate: circuit symbol and truth table

What this figure shows. Panel (a) shows the NAND gate as an AND-gate symbol (D-shaped block, inputs A and B) followed immediately by a NOT-gate bubble at its output, producing Y -- and, separately, the compact single NAND symbol itself (the same D-shaped block but with the small inversion bubble drawn directly at its own output tip). Panel (b) is a three-column truth table showing, for all four A,B combinations, both the intermediate AND output Z=A⋅BZ=A\cdot B and the final NAND output Y=A⋅B‾Y=\overline{A\cdot B} side by side, making explicit that Y is the bit-by-bit complement of Z -- Y=1 f …

NOR Gate

The two-input NOR gate ('NOT-OR') has inputs A and B and output Y, related by the Boolean equation Y=A+B‾Y=\overline{A+B} -- literally an OR gate followed by a NOT gate, its output the exact COMPLEMENT of what an ordinary OR gate would give for the same inputs. Its logic operation: the output is HIGH (logic 1) only when ALL inputs are LOW (the one case where a plain OR would have give …

Figure 9.45Two-input NOR gate: circuit symbol and truth table

What this figure shows. Panel (a) shows the NOR gate as an OR-gate symbol (curved-back, pointed-front block, inputs A and B) followed immediately by a NOT-gate bubble at its output, producing Y -- and, separately, the compact single NOR symbol itself (the OR-gate shape with the inversion bubble drawn directly at its own output tip). Panel (b) is a three-column truth table showing, for all four A,B combinations, both the intermediate OR output Z=A+BZ=A+B and the final NOR output Y=A+B‾Y=\overline{A+B} side by side, showing Y is the bit-by-bit complement of Z -- Y=1 only for …

Ex-OR Gate

The two-input Ex-OR (exclusive-OR) gate has inputs A and B and output Y, related by the Boolean equation Y=A⊕B=AB‾+A‾BY=A\oplus B=A\overline{B}+\overline{A}B -- the ⊕\oplus symbol denotes the Ex-OR operation directly, and the expanded form shows it can also be built from two AND gates (one taking A and B‾\overline{B}, the other taking A‾\overline{A} and B) feeding a final OR gate. Its logic operation: the output is HIGH (logic 1) only when the two inputs DIFFER (exactly one of the two is high); when both inputs are the same (both 0 or both 1) the output is LOW. For an Ex-OR gate extended to MORE than two inputs, the output is high whenever an ODD number of inputs are high. …

Figure 9.46Ex-OR gate: circuit symbol and truth table

What this figure shows. Panel (a) is the standard Ex-OR gate circuit symbol: an OR-gate-like curved shield shape but with an EXTRA curved line drawn just behind its input side (the visual marker that distinguishes Ex-OR from a plain OR gate), with two input lines A and B and a single output line Y. Panel (b) is the truth table, four rows: A=0,B=0 gives Y=0; A=0,B=1 gives Y=1; A=1,B=0 gives Y=1; A=1,B=1 gives Y=0 -- Y is high exactly when A and B differ, matching the equation $Y=A\ …