Boolean algebra maps logical states (1/0, True/False) to physical voltages in digital circuits. In a standard 5V 74HC CMOS family, a voltage above 3.15V is read as a logic 1, and below 1.35V is a logic 0. The physical components that execute these boolean operations are logic gates, and the symbols used to represent them on schematics depend entirely on whether the designer followed the traditional US-based ANSI/IEEE standard or the European IEC 60617 standard. Below is the complete cross-reference table for the core gates.
| Gate Name | Boolean Expression | ANSI/IEEE Shape (US) | IEC 60617 Shape (EU) | Truth Table (A,B → Y) | Common 5V/3.3V IC |
|---|---|---|---|---|---|
| AND | Y = A · B | Flat back, curved front (D-shape) | Rectangle with & inside |
0,0→0 | 0,1→0 | 1,0→0 | 1,1→1 | SN74HC08 |
| OR | Y = A + B | Curved back, pointed front | Rectangle with ≥1 inside |
0,0→0 | 0,1→1 | 1,0→1 | 1,1→1 | SN74HC32 |
| NOT (Inverter) | Y = A' or ¬A | Triangle pointing right + output bubble | Rectangle with 1 + output bubble |
0→1 | 1→0 | SN74HC04 |
| NAND | Y = (A · B)' | AND shape + output bubble | Rectangle with & + output bubble |
0,0→1 | 0,1→1 | 1,0→1 | 1,1→0 | MC14011B / 74HC00 |
| NOR | Y = (A + B)' | OR shape + output bubble | Rectangle with ≥1 + output bubble |
0,0→1 | 0,1→0 | 1,0→0 | 1,1→0 | SN74HC02 |
| XOR | Y = A ⊕ B | OR shape + extra curved line on back | Rectangle with =1 inside |
0,0→0 | 0,1→1 | 1,0→1 | 1,1→0 | SN74HC86 |
Decoding the Standards: ANSI/IEEE vs. IEC 60617
When reading a schematic or inspecting PCB silkscreen, the visual language of boolean symbols will immediately tell you the origin or target market of the design. The two dominant standards are fundamentally different in their philosophy.
The ANSI/IEEE Standard (Distinctive Shapes)
Formalized in IEEE Std 91-1984, this is the traditional standard used heavily in the United States, legacy military/aerospace documentation, and most university textbooks. It relies on distinctive shapes for each gate. An AND gate is a D-shape, an OR gate has a curved back and a pointed front, and an inverter is a triangle. Inversion is always denoted by a small circle (a "bubble") on the input or output pin. If you are working with older US equipment, hobbyist Arduino/ESP32 shields, or standard breadboard DIP ICs, you will almost exclusively encounter ANSI shapes.
The IEC 60617 Standard (Rectangular Outlines)
Adopted widely in Europe and heavily used in modern industrial PLC programming (like ladder logic or function block diagrams), IEC 60617-12 abandons distinctive shapes in favor of uniform rectangular outlines. The function is defined by an internal alphanumeric qualifier. For example, an AND gate is a rectangle with an & inside. An OR gate is a rectangle with ≥1 (meaning "greater than or equal to 1 input high"). An XOR gate uses =1 (meaning "exactly 1 input high"). Inversion is still shown with a bubble, or sometimes with a small triangle pointing outward on the pin.
If you are designing consumer electronics for a global market or working with industrial automation (Siemens, Allen-Bradley), default to IEC rectangular symbols for function block diagrams. If you are drafting board-level transistor/transistor logic (TTL) schematics or repairing vintage hardware, stick to ANSI/IEEE distinctive shapes. Mixing them on a single schematic is a major red flag in professional design reviews.
The 'Rows People Get Wrong' Notes
Even experienced engineers misinterpret specific boolean symbols when reading complex schematics. Here are the most common pitfalls and how to correctly interpret them in practice.
1. De Morgan's Equivalents and "Intent" Symbols
According to De Morgan's laws, a NAND gate is logically identical to an OR gate with inverted inputs. On a schematic, you will frequently see a symbol shaped exactly like an OR gate, but with bubbles on the inputs and no bubble on the output. This is not a drafting error. The designer is using a "De Morgan equivalent" symbol to show intent. If a circuit triggers a fault when either the /OVER_TEMP or /OVER_CURRENT active-low signals go low, drawing it as an OR gate with inverted inputs makes the logic instantly readable to the next engineer. Always read the bubbles as "active-low triggers" rather than just mathematical inversions.
2. The Schmitt Trigger Hysteresis Loop
A standard NOT gate (74HC04) will oscillate violently if fed a slowly rising analog voltage due to noise crossing the threshold. A Schmitt trigger inverter (74HC14) solves this. On a schematic, the Schmitt trigger symbol looks like a standard gate but contains a small "hysteresis loop" icon (a square-backwards-S shape) inside the body. If you see this symbol on an input pin connected to a mechanical switch or a long cable, it indicates the designer is relying on the IC's internal positive feedback to debounce the signal. Swapping a 74HC14 for a 74HC04 in this exact spot will result in erratic microcontroller resets.
3. XOR vs. XNOR Bubble Placement
The XOR gate outputs a 1 only when inputs differ. The XNOR (Equivalence) gate outputs a 1 when inputs match. The ANSI symbol for XOR features a double-curved back line. The XNOR adds an output bubble. A common mistake in CAD libraries is placing the inversion bubble on the input of one of the XOR lines instead of the output. While mathematically identical, standard practice dictates the bubble must be on the output stem to maintain visual consistency with other inverted gates.
Safe Interpretation When Silkscreen is Faded or Missing
When repairing industrial control boards or reverse-engineering legacy hardware, you will inevitably encounter a 14-pin DIP IC where the laser-etched part number has been scraped off, burned away, or obscured by conformal coating. You can safely deduce the boolean function and identify the IC using a multimeter and a logic probe.
Never leave the input pins of an unpowered or partially powered CMOS IC (like the 4000 series or 74HC series) floating. A floating gate acts as an antenna, picking up ambient RF noise and causing the internal MOSFETs to rapidly switch. This creates a massive IDDQ quiescent current spike that can thermally destroy the silicon or cause severe brownouts on the local 5V rail. Always tie unused inputs to VCC or GND via a 10kΩ resistor during testing.
Step-by-Step Reverse Engineering Procedure
- Identify Power Pins: For 95% of standard 14-pin DIP logic ICs (74xx, 74HCxx, CD40xx), Pin 7 is Ground (GND) and Pin 14 is VCC. Apply exactly 5.00V DC to Pin 14 and ground Pin 7. If the IC draws more than 2mA with all inputs tied low, it may be damaged or it might be a specialized driver, not a basic gate.
- Map the Gate Boundaries: A 14-pin quad 2-input gate (like a 74HC00 NAND) contains four independent gates. Typically, Pins 1 & 2 are inputs for Gate A, with Pin 3 as the output. Pins 4 & 5 are inputs for Gate B, with Pin 6 as the output. Pin 14 is VCC. The remaining pins map symmetrically on the other side of the chip.
- Build a Physical Truth Table: Use two jumper wires tied to GND and VCC (representing logic 0 and 1) to stimulate the inputs of Gate A (Pins 1 and 2). Measure the output (Pin 3) with your multimeter set to DC Voltage.
- If the output is HIGH (~5V) for 0,0; 0,1; and 1,0, but drops LOW (~0V) only when both inputs are HIGH, you are holding a NAND gate (e.g., 74HC00 or CD4011).
- If the output is LOW for everything except when both inputs are HIGH, it is an AND gate (e.g., 74HC08).
- If the output is HIGH only when both inputs are LOW, it is a NOR gate (e.g., 74HC02).
- Check for Schmitt Triggers: If you suspect the IC is a hex inverter (6 gates, 1 input each), slowly sweep the input voltage from 0V to 5V using a potentiometer. If the output snaps LOW at ~2.8V, but doesn't snap back HIGH until you drop the input below ~1.6V, you have found a Schmitt trigger inverter (74HC14). A standard 74HC04 will transition at a single threshold (~2.5V) with no hysteresis gap.
By combining the physical pinout mapping with a manually constructed truth table, you can confidently order the exact replacement IC from standard logic family catalogs without ever needing to read the faded silkscreen.






