Fact-checked by Grok 2 weeks ago

Logic gate

A logic gate is an elementary that implements a , taking one or more inputs (representing 0 or 1, false or true) and producing a single output based on a specific logical , serving as the foundational component of all systems. These gates operate using voltage levels to represent states, where low voltage typically denotes 0 and denotes 1, enabling the processing of in computers and other devices. The concept of logic gates originates from Boolean algebra, developed by George Boole in 1854 as a mathematical framework for logical operations using binary variables. In 1937, Claude Shannon's master's thesis at demonstrated how Boolean algebra could be applied to electrical switching circuits, effectively establishing the theoretical basis for logic gates in electronic design and bridging mathematics with practical engineering. Early physical implementations used mechanical relays or vacuum tubes, but the invention of the in 1947 revolutionized the field, allowing for smaller, faster, and more efficient gates that form the basis of integrated circuits. There are seven basic types of logic gates: , NOT (inverter), , NOR, XOR, and XNOR, each defined by its that specifies the output for all possible input combinations. For instance, an outputs 1 only if all inputs are 1, while an outputs 1 if at least one input is 1; the NOT gate inverts its single input. More complex gates like and NOR are universal, meaning any can be constructed using only them, which simplifies in practice. Logic gates are interconnected to form combinational and sequential circuits, underpinning processors, units, and logic units (ALUs) in modern computing hardware. Their scalability has driven , enabling the billions of transistors in contemporary microprocessors, and they remain essential in fields ranging from to hardware. Advances in materials, such as technology introduced in the , have reduced power consumption and increased speed, ensuring logic gates' continued relevance in nanoscale and explorations.

Fundamentals

Definition and principles

A logic gate is an idealized or physical electronic device that performs a on one or more inputs, producing a single output. These devices implement fundamental logical operations, such as (AND), (OR), and (NOT), serving as the basic units for processing signals in systems. The principles of logic gates are rooted in binary logic, a two-valued system where inputs and outputs represent truth values—typically denoted as true ( or ) or false ( or ). Each gate operates deterministically, computing its output based solely on the current input combination, without memory of prior states. In general, a logic gate realizes a f(x_1, x_2, \dots, x_n), where x_1 through x_n are input variables (each or ), and the output is the result of applying the function to those inputs. These gates form the foundational building blocks of digital circuits, interconnecting to construct more complex logical structures. In and , logic gates enable essential functions such as operations, control signals, and data routing by combining into larger circuits that perform sophisticated tasks. For instance, networks of gates can implement addition, decision-making, and information flow in processors and memory systems, underpinning the operation of modern digital devices. This binary decision-making capability, derived from , allows for the reliable manipulation of information in computational environments.

Basic logic gates

Basic logic gates form the foundational building blocks of digital circuits, performing fundamental operations on inputs to produce a single output. These gates operate on levels representing 0 (false or low) and 1 (true or high), and they are essential for implementing conditional in electronic systems. The primary basic gates include the , NOT, NAND, NOR, XOR, and XNOR, each with distinct input/output behaviors that enable the construction of more complex functions. While most gates accept two or more inputs, the NOT gate is unique in requiring only one. The outputs a logic 1 only if all of its inputs are 1; otherwise, it outputs 0. It typically has a minimum of two inputs but can be extended to multiple inputs for broader operations. This gate performs a analogous to in binary arithmetic, where the output represents the product of inputs. For example, in a , an AND gate can ensure that multiple sensors (such as a door lock and a keycard reader) must all detect valid conditions before granting access. The outputs a 1 if at least one of its inputs is 1; it outputs 0 only if all inputs are 0. Like the , it supports a minimum of two inputs and can handle multiple inputs for disjunction . This inclusive OR function detects the presence of any true condition, differing from the exclusive variant (XOR) which requires exactly one true input. In applications such as alarm systems, an OR gate triggers an alert if any sensor detects an intrusion, like a door opening or breaking. The NOT gate, also known as an inverter, takes a single input and outputs the logical complement: 1 if the input is 0, and 0 if the input is 1. With only one input, it serves as the basic negation operator in digital logic. It is fundamental for inverting signals, such as flipping a bit to deactivate a previously active in simple switching circuits. The is the inverted form of the , outputting 0 only if all inputs are 1, and 1 otherwise. It requires a minimum of two inputs and, like the AND, supports multi-input configurations. As a universal gate, NAND can implement any when combined appropriately, making it versatile for compact circuit designs. The inverts the OR function, outputting 1 only if all inputs are 0, and 0 otherwise. It also has a minimum of two inputs and can be multi-input. NOR is similarly , capable of realizing all other logic functions, which contributes to its use in efficient implementations of complex logic. The outputs 1 if its inputs differ (one is 1 and the other is 0), and 0 if they are the same. It operates on exactly two inputs, as multi-input versions are typically constructed from pairs. XOR is key in applications like binary addition, where it generates the bit, and checking, where it detects an odd number of 1s in for error detection. The , or equivalence gate, inverts the XOR output, producing 1 if its two inputs are identical and 0 if they differ. It is used for equality comparisons, such as verifying matching bits in processes.

Representation

Graphical symbols

Graphical symbols for logic gates provide a standardized for representing digital circuits in schematics, allowing designers to abstract away physical implementations and focus on logical interconnections. These symbols emphasize input-output relationships and facilitate in documentation. The primary standards include the distinctive-shape symbols derived from earlier specifications like MIL-STD-806B and the rectangular-outline symbols defined in ANSI/IEEE Std 91-1984, which is compatible with IEC 60617-12 for broader adoption. Distinctive-shape symbols use unique geometric forms to intuitively convey gate functions, with inputs typically on the left and outputs on the right. The appears as a D-shaped (curved on the right), accepting multiple inputs that converge to a single output. The features a curved with pointed extensions on the input side, symbolizing addition-like . The NOT gate is depicted as a right-pointing with a small circle (bubble) at the output tip, indicating inversion. For multi-input versions, additional lines connect to the main body, such as three inputs joining the AND . These shapes, while mnemonic, have largely been supplanted by rectangular forms for compactness in complex diagrams. In contrast, rectangular-outline symbols employ uniform boxes to promote consistency, with the gate's operation denoted by an internal label or qualifier. Under ANSI/IEEE Std 91-1984, the is a containing the (&), the uses ≥1, and the NOT gate includes a flag-like extension or the numeral 1 with . Multi-input notations leverage dependency symbols, such as subscripted G for ANDed inputs (e.g., G1, G2) or V for ORed inputs, placed near the to indicate grouping without multiple lines. This approach supports hierarchical designs and is prevalent in modern schematics. Variations exist across standards to accommodate regional or historical preferences. IEC 60617-12 favors rectangular shapes exclusively, aligning closely with IEEE but using flags for instead of bubbles in some cases. Older European styles, like DIN 40700, occasionally appear in legacy documentation with slightly altered curvatures. Bubble notation—a small open circle—universally denotes inversion or active-low signals, placed at inputs for complemented logic (e.g., active-low enable) or outputs for negated results (e.g., as AND with output bubble). An alternative triangular polarity indicator specifies active-low without inversion in positive-logic contexts, enhancing precision in mixed-signal diagrams. These elements ensure symbols remain versatile for schematic abstraction and .

Truth tables

Truth tables provide a tabular method to enumerate all possible input combinations for a logic gate and determine the corresponding output based on its logical function. For a gate with n inputs, the table consists of 2n rows, each representing a unique input combination, with columns dedicated to the input variables and the output. This exhaustive listing ensures complete coverage of the gate's behavior, using 0 to denote false and 1 to denote true. Intermediate columns may be included for complex expressions to break down the computation step by step. The NOT gate, which inverts a single input, has the simplest with two rows:
Input AOutput
01
10
This shows that the output is always the opposite of the input. For two-input gates, such as the , which produces an output of 1 only if both inputs are 1, the truth table is as follows:
Input AInput BOutput (A AND B)
000
010
100
111
The , outputting 1 if at least one input is 1, has this table:
Input AInput BOutput (A OR B)
000
011
101
111
The XOR () gate, which outputs 1 only when inputs differ, is represented by:
Input AInput BOutput (A XOR B)
000
011
101
110
These tables can extend to multi-input gates; for a three-input AND gate, which requires all inputs to be 1 for an output of 1, the table has 23 = 8 rows, with the output being 1 solely in the row where A=1, B=1, and C=1. Truth tables serve to verify a gate's functionality by matching observed outputs against expected values from the logical definition, aiding in error detection during design or implementation. They also facilitate high-level derivation of minimized expressions by identifying patterns in the output column, though detailed minimization requires additional techniques. In digital verification, tables confirm that a gate behaves as intended under all conditions, ensuring reliability in circuits. As an extension, Karnaugh maps offer a graphical visualization of truth table data arranged in a grid where adjacent cells represent input combinations differing by one bit, enabling simplification by grouping ones to form larger rectangles that correspond to product terms in the . This method, useful for gates with few inputs, complements s by providing an intuitive aid for verifying and optimizing gate behavior without exhaustive enumeration.

Advanced Concepts

Universal logic gates

A universal logic gate is one that, by itself, can be used to construct any possible , thereby forming a functionally complete set. The and NOR gates qualify as universal because they inherently combine (AND) or disjunction (OR) with inversion (NOT), enabling the replication of all basic operations through appropriate interconnections. The NAND gate's universality is demonstrated by its ability to implement NOT, AND, OR, and more complex functions like XOR using only NAND gates. To create a NOT gate, connect both inputs of a NAND gate to the same signal A; the output is \overline{A \land A} = \overline{A}. An follows by cascading a NAND gate with a NOT gate: the output of the NAND on inputs A and B feeds into the NOT, yielding A \land B. For an , apply De Morgan's theorem by first inverting the inputs (\overline{A} and \overline{B}, each via a NAND with tied inputs) and then applying NAND to those inverses: \overline{\overline{A} \land \overline{B}} = A \lor B, requiring three NAND gates total. An can be built with four NAND gates: let M = \overline{A \land B}, then X_1 = \overline{A \land M}, X_2 = \overline{B \land M}, and output \overline{X_1 \land X_2} = A \oplus B. Similarly, the NOR gate serves as a universal gate through analogous constructions that leverage its disjunctive and inverting properties. A NOT gate is formed by tying both NOR inputs to A, yielding \overline{A \lor A} = \overline{A}. An OR gate is simply a NOR followed by a NOT: \overline{\overline{A \lor B}} = A \lor B. To build an AND gate, invert the inputs first (\overline{A} and \overline{B} via tied NORs), then apply NOR to those: \overline{\overline{A} \lor \overline{B}} = A \land B, using three NOR gates. For XOR, five NOR gates are required, typically by constructing an XNOR with four NOR gates (dual to the NAND XOR) and adding a final NOT. The proof of universality for both NAND and NOR rests on their capacity to generate the primitive operations AND, OR, and NOT, which together form a complete basis for all Boolean functions. Since any Boolean expression can be rewritten in conjunctive or disjunctive normal form using these primitives, and each primitive is constructible from either NAND or NOR alone, any logic circuit can be realized using only that gate type. This functional completeness is verified through the explicit gate constructions outlined above, confirming that no other gate types are needed. Using universal gates like and NOR offers advantages in and manufacturing, as they simplify fabrication by reducing the variety of gate types required, leading to more economical production and fewer potential points of failure.

De Morgan equivalents

provide a fundamental duality in , enabling the transformation of logical expressions involving AND and OR operations through . The first law states that the negation of the of two variables is equivalent to the disjunction of their negations: (A \land B)' = A' \lor B'. The second law states that the negation of the disjunction is equivalent to the of the negations: (A \lor B)' = A' \land B'. These laws can be verified through exhaustive comparisons, where both sides of each equation yield identical output values for all input combinations of A and B. In digital circuit representation, De Morgan's laws manifest as symbolic equivalents using inversion bubbles on gate inputs and outputs, illustrating the duality between AND and OR gates. For instance, an AND gate with inverted inputs and an inverted output is logically equivalent to an OR gate with non-inverted inputs, as the bubbles represent negations that align with the laws. Similarly, an OR gate with inverted inputs and inverted output equates to an AND gate without inversions. This bubble-pushing technique simplifies schematic diagrams by allowing designers to swap gate types while preserving functionality. These equivalents facilitate optimization by enabling redesigns that reduce the number of or adapt to specific families, such as converting an AND-OR realization to a NAND-NAND . Consider a sum-of-products expression implemented as an AND-OR ; applying to negate and dualize the operations transforms it into a product-of-sums form suitable for , often minimizing component count in two-level designs. The laws extend naturally to multiple variables, maintaining the pattern of duality under . For three , (A \land B \land C)' = A' \lor B' \lor C' and (A \lor B \lor C)' = A' \land B' \land C', allowing scalable transformations in complex expressions without altering the overall logic.

Circuit Applications

Combinational logic

circuits are digital circuits composed of interconnected logic gates where the output values are determined solely by the current input values, without any storage elements or paths that would retain from previous . This ensures that the circuit behaves as a of its , producing outputs instantaneously upon input changes. In contrast, circuits incorporate memory components, allowing outputs to depend on both current and prior states. A fundamental example of a combinational is the half-adder, which performs on two single-bit inputs, A and B, to produce a bit S and a carry-out bit C_o. The is computed using an , S = A \oplus B, while the carry is generated by an , C_o = A \cdot B. This simple structure adds the two bits without considering any incoming carry from a previous stage. The full-adder extends the half-adder to handle three inputs: A, B, and a carry-in bit C_i, producing sum S and carry-out C_o. It can be implemented by cascading two half-adders—the first adding A and B to generate an intermediate sum and carry, which the second half-adder combines with C_i—followed by an OR gate to compute the final carry: S = (A \oplus B) \oplus C_i and C_o = (A \cdot B) + (A \oplus B) \cdot C_i + B \cdot C_i. Alternatively, it uses two XOR gates, two AND gates, and one OR gate directly for the same functions. Full-adders serve as building blocks for multi-bit adders in arithmetic operations. Another key combinational circuit is the (MUX), which selects one of several input signals and forwards it to a single output line based on select signals. For a 2-to-1 MUX with inputs x_0, x_1, and select s, the output Y = \overline{s} \cdot x_0 + s \cdot x_1, implemented using , and NOT gates. Larger MUXes, such as 4-to-1 with two select bits, use decoders internally to enable one input path via AND-OR logic. Multiplexers are versatile for data routing and implementing arbitrary functions by connecting variables to selects and constants to inputs. The design of combinational circuits typically begins with a specifying outputs for all input combinations, followed by conversion to a like sum-of-products (), where the output is expressed as an OR of AND terms (minterms) corresponding to rows where the output is 1. For instance, from a , minterms are identified—each a product of all input literals (variables or their complements)—and summed: F = \sum m_i, where m_i are the minterms. This expression is then realized with AND gates for products, OR gates for summation, and inverters as needed, often minimized using to reduce gate count. Combinational circuits find widespread applications in processors, including arithmetic logic units (ALUs) for operations like via chains of full-adders, as well as encoders that convert active inputs to codes and decoders that activate one of multiple outputs from a address. These components enable efficient and control signal generation without state retention.

Sequential logic

Sequential logic refers to digital circuits where the output depends not only on the current inputs but also on the previous state of the circuit, achieved through memory elements that incorporate feedback loops and often synchronized by clock signals. These circuits enable state transitions, allowing them to store information and respond to sequences of inputs over time, in contrast to which produces instantaneous outputs solely from current inputs. A fundamental building block of sequential logic is the SR latch, constructed using two cross-coupled NOR gates that provide feedback to maintain the output state. The SR latch has two inputs, Set (S) and Reset (R), and two complementary outputs, Q and Q-bar; when S=1 and R=0, Q=1 (set state); when S=0 and R=1, Q=0 (reset state); and when S=0 and R=0, the latch holds its previous state, while S=1 and R=1 is an invalid condition that should be avoided. For clocked operation, an enable input can be added to control when the latch responds to S and R. The D flip-flop extends this by providing edge-triggered storage, typically positive-edge triggered, where the output Q captures the value of the D input precisely at the rising of the clock and holds it until the next . This ensures synchronous behavior in larger systems, preventing race conditions from asynchronous changes. The JK flip-flop addresses limitations of the SR latch by adding toggle functionality; it uses J and K inputs where J=0 and K=0 holds the , J=1 and K=0 sets Q=1, J=0 and K=1 resets Q=0, and J=1 and K=1 toggles Q to its complement on the clock , eliminating the invalid . Sequential logic finds applications in counters, which increment or decrement a stored value on each clock pulse to track events or generate timing signals; shift registers, which move data bits serially or in parallel for tasks like data buffering and conversion; and finite state machines (FSMs), which model control logic by transitioning between defined s based on inputs and current . Timing in sequential circuits is governed by clock signals that synchronize state changes, with setup time defined as the minimum duration the data input must be before the clock , and hold time as the minimum duration it must remain after the , to ensure reliable capture without . These parameters are critical for system reliability, as violations can lead to incorrect state transitions. Flip-flops serve as the core memory elements in static random-access memory (SRAM), where arrays of them store bits addressably, enabling fast read and write operations in computing systems.

Implementation

Electronic gates

Electronic logic gates are primarily implemented using semiconductor transistors, with complementary metal-oxide-semiconductor (CMOS) technology serving as the dominant approach due to its low power consumption and high noise immunity. In CMOS, basic gates like AND, OR, and NOT are constructed from pairs of n-channel (NMOS) and p-channel (PMOS) transistors arranged in complementary configurations. The simplest element, the NOT gate or inverter, consists of a single NMOS transistor connected in series with a PMOS transistor between the supply voltage (VDD) and ground, with the input applied to both gates and the output taken from their common drain connection. When the input is high (VDD), the NMOS turns on, pulling the output low (to ground), while the PMOS turns off; conversely, a low input turns the PMOS on, charging the output to VDD, and the NMOS off. More complex gates, such as NAND and NOR, extend this by paralleling PMOS transistors for NAND (or NMOS for NOR) and series-connecting the opposite type, enabling efficient realization of AND and OR functions through De Morgan's theorem. The performance of CMOS gates is influenced by fan-in (number of inputs) and fan-out (number of driven loads), which impact propagation delay due to increased capacitive loading. High fan-in raises internal capacitance, slowing switching, while excessive fan-out—typically limited to over 50 in CMOS before delay becomes prohibitive—requires buffering to maintain speed. Various logic families define the electronic characteristics of these gates, balancing speed, power, and margins. Transistor-transistor logic (), using junction transistors, operates at 5V with a propagation delay of 1.5–33 ns, power dissipation of 1–22 mW per gate, of 10, and very good immunity (DC margins around 0.4V). , leveraging pairs, excels in low power (1 mW at 1 MHz, quiescent near 25 nW), excellent immunity (margins ~1.5V at 5V), exceeding 50, but slower propagation (1–200 ns at 3.3–5V). (ECL), also -based, prioritizes speed with 1–4 ns delays at -5.2V, but at higher power (4–55 mW) and of 25, with good immunity suitable for high-frequency applications. The following table compares key characteristics of these families:
FamilyVoltage (V)Propagation Delay (ns)Power Dissipation (mW/gate)Fan-outNoise Immunity
51.5–331–2210Very Good
3.3–51–2001 (at 1 MHz)>50Excellent
ECL-5.21–44–5525Good
Three-state gates extend standard logic by adding an enable input to produce a high-impedance (Hi-Z) output state, allowing multiple gates to share a common bus without . A tri-state , for instance, passes the input to the output when enabled (e.g., EN=1 for active-high), but enters Hi-Z when disabled (EN=0), effectively isolating the output as an open circuit to prevent loading or contention. This Hi-Z state is crucial for bidirectional data buses, where decoders select one driver at a time. The truth table for an active-high tri-state extends the binary outputs:
Enable (EN)Input (IN)Output (OUT)
00Hi-Z
01Hi-Z
100
111
The symbol resembles a standard with an additional enable line, often marked with a and bubble if active-low. Scaling electronic gates into integrated circuits () enables compact, reliable designs, as exemplified by the 7400 series chips. The 7400 IC integrates four independent 2-input gates on a single 14-pin package, operating at 5V with low-power Schottky variants (74LS00) reducing while maintaining compatibility. This integration supports up to 10 per gate and has been foundational for combinational and sequential circuits since the .

Non-electronic gates

Non-electronic logic gates perform Boolean operations using physical principles beyond , such as motion, flows, propagation, biochemical reactions, or particle collisions. These implementations offer alternatives for specialized applications, particularly in environments hostile to traditional , like high-radiation zones or extreme temperatures, where they provide enhanced reliability through simpler, more robust mechanisms. Mechanical logic gates, often relay-based, employ electromechanical switches where input signals energize coils to open or close contacts, enabling AND operations via series connections (requiring all inputs active) and OR operations via parallel connections (activating with any input). Relays served as the core of early computing systems, such as the , which integrated over 3,500 relays in its to execute arithmetic and logical functions automatically. While relays introduce moving parts that can wear over time, their electromechanical nature allows operation in dusty or humid conditions where pure electronics might degrade. Fluidic logic gates leverage pneumatic or hydraulic flows to execute logic without mechanical or electrical components, relying on phenomena like the Coanda effect for wall attachment or vortex formation for amplification and switching. Vortex amplifiers, for instance, create swirl patterns that deflect or amplify fluid jets to perform OR/NOR and AND/ functions, with laminar proportional amplifiers providing gains up to 10 and bandwidths of 100-1000 Hz. These gates found practical use in control systems, such as roll rate stabilization for guided projectiles, where their all-fluid design—often using ceramics like Fotoceram—ensures operation in high-vibration, high-temperature (up to 550°C), and radiation-heavy environments without failure from ionizing effects. Optical logic gates utilize photonic switches to process signals, achieving functions like AND gates through constructive or destructive of beams in waveguides or photonic crystals. For example, phase-controllable metalenses can implement XOR and XNOR by modulating paths, enabling all-optical at speeds exceeding electronic limits due to light's velocity. Emerging in high-speed data processing, these gates support parallel operations in photonic integrated circuits, though challenges remain in scaling and integration with existing . Other non-electronic approaches include DNA-based gates, which exploit biochemical strand displacement reactions to realize , and more complex multi-input logic, producing fluorescent outputs from molecular inputs for in biological contexts. Ballistic logic gates, as conceptualized in model, use elastic collisions of particles—analogous to billiard balls—to perform reversible operations like the , conserving momentum and energy for theoretically dissipation-free computation. A key advantage of non-electronic gates lies in their resilience to , radiation, and thermal extremes, as they avoid semiconductor vulnerabilities; for instance, and mechanical systems maintain functionality in nuclear or explosive settings with exceeding 600,000 hours in applications. However, they generally suffer speed limitations—relays switch in milliseconds, in hundreds of microseconds, and DNA reactions in minutes—compared to nanosecond-scale electronic gates, restricting them to niche roles like reliable control in harsh environments rather than general-purpose .

Historical Development

Early inventions

Theoretical foundations for logic gates were established in 1854 with George Boole's publication of An Investigation of the Laws of Thought, which formalized as a mathematical system for logical operations using binary variables and operations like AND, OR, and NOT. This work provided the abstract framework essential for later gate designs, treating logic as algebraic manipulation rather than verbal reasoning. In the 1880s, philosopher and logician advanced practical realizations by constructing electromechanical logic machines. These devices used electromagnetic relays and switches to execute Boolean operations, such as disjunctive syllogisms, demonstrating how electrical circuits could mechanize logical inference. Peirce's designs, including a relay-based logic engine built with student Allan Marquand, highlighted the potential for scalable electrical logic implementation. A pivotal development occurred in 1918 with the Eccles-Jordan trigger circuit, invented by William Henry Eccles and Frank Wilfred Jordan. This vacuum tube-based bistable multivibrator used two triode tubes in a configuration to store states, forming the foundational element for flip-flops in circuits and enabling memory functions in early electronic systems. Building on this, Claude Shannon's 1937 master's thesis, A Symbolic Analysis of and Switching Circuits, rigorously applied to telephone networks, proving that complex switching functions could be synthesized from simple gates like AND and OR, thus establishing the theoretical basis for . Early physical implementations emerged in the late 1930s, including Konrad Zuse's Z1 computer completed in 1938. This mechanical binary computer utilized sliding pins and metal plates to perform arithmetic and logic operations, incorporating rudimentary gate-like mechanisms for addition and control flow in a programmable architecture. Complementing vacuum tube advances, early diode-resistor logic (DRL) appeared as a passive electronic approach in the 1950s, employing diodes for nonlinear switching and resistors for current limiting to realize AND and OR gates with minimal components, as seen in experimental circuits for computation and control.

Modern evolution

The modern evolution of logic gates began in the 1940s with the era, where early electronic computers relied on thousands of to implement basic logic functions. The , completed in 1945, utilized approximately 17,468 to perform logical operations, occupying 1,800 square feet and consuming 150 kilowatts of power. These tube-based gates, functioning as switches for AND, OR, and NOT operations, enabled the first programmable digital computations but were plagued by limitations including high failure rates, excessive heat generation, and enormous physical size, often requiring manual replacement of burnt-out tubes multiple times daily. The transistor revolution, starting in 1947, marked a pivotal shift by replacing vacuum tubes with solid-state devices that could reliably implement logic gates at much smaller scales and lower power. Invented at Bell Laboratories by , Walter Brattain, and , the demonstrated signal amplification and switching capabilities essential for logic operations. This led to the development of the first integrated circuit (IC) in 1958 by at , who fabricated multiple s and components on a single chip to form interconnected logic gates. Robert Noyce independently advanced this in 1959 at , creating a silicon-based monolithic IC with planar technology that allowed for scalable production of gate arrays. Gordon Moore's 1965 observation, later known as , predicted that the number of s—and thus logic gates—on an IC would double approximately every year (revised to every two years in 1975), driving exponential improvements in density and performance. These advancements transitioned logic gates from discrete components to very-large-scale integration (VLSI) by the 1970s, enabling billions of gates on single chips through photolithography and automated design tools, which reduced costs and power consumption while boosting computational speed. Recent trends continue this scaling with sub-10nm semiconductor processes; for instance, TSMC's 3nm FinFET technology entered high-volume production in 2022, packing over 290 million transistors per square millimeter for denser logic gate arrays with 15-25% performance gains over 5nm nodes. As of 2025, TSMC's 2 nm (N2) process, utilizing gate-all-around nanosheet transistors, has entered mass production, delivering up to 15% higher performance or 30% lower power compared to 3 nm while increasing transistor density. Beyond silicon, quantum logic gates operate on qubits using operations like the Pauli X gate for NOT functionality, which flips qubit states in superposition to enable quantum parallelism, as demonstrated in systems like IBM's quantum processors. Neuromorphic computing introduces brain-inspired gates, such as memristor-based synapses that mimic neuronal thresholds for efficient pattern recognition, reducing energy use in edge AI applications compared to traditional CMOS gates. VLSI-scale logic gates now underpin AI accelerators, like tensor processing units, where billions of gates execute matrix multiplications at terascale performance, facilitating advancements in machine learning models.

References

  1. [1]
    [PDF] Logic Gates
    Logic gates are switches that turn ON or OFF based on conditions, checking if information follows a rule, and outputting true (ON) or false (OFF).
  2. [2]
    Digital Circuits - Introduction to Logic
    A digital circuit is a collection of interconnected digital components called gates. Gates have inputs and outputs.
  3. [3]
    (PDF) Logic Gates - Academia.edu
    In 1854, George Boole performed an investigation into the "laws of thought" which were based around a simplified version of the "group" or "set" theory, ...<|control11|><|separator|>
  4. [4]
    How Claude Shannon Helped Kick-start Machine Learning
    While working on his master's thesis at MIT, Shannon invented the logic gate. Shannon did all this at a time when there were fewer than 10 computers in the ...
  5. [5]
    [PDF] Introduction
    In 1963, Frank Wanlass at Fairchild described the first logic gates using MOSFETs [Wanlass63]. Fairchild's gates used both nMOS and pMOS transistors, earning ...
  6. [6]
    Logic Gates
    There are 16 possible logic gates for 2 inputs, including common ones like NAND, NOR, AND, OR, and XOR.
  7. [7]
    [PDF] Logic Gates
    Logic gates are the basic elements of all digital electronic devices. AND gates output 1 if both inputs are 1; OR gates output 1 if any input is 1.
  8. [8]
    [PDF] Logic Reference Guide - Purdue Engineering
    The Three Basic Gates. There are three basic logic gates from which all other combinatorial logic functions can be generated. These functions are NOT, AND, and ...
  9. [9]
    Chapter 4 Logic Gates
    The hardware devices that implement the logical operations are called logic gates. 4.1 Boolean Algebra. In order to understand how the components are combined ...
  10. [10]
    [PDF] Outline Circuit Logic Gate
    A logic gate is an elemantary building block of a digital circuit. Most logic gates have two inputs and one output. Every terminal is in one of the two binary ...
  11. [11]
    None
    ### Summary of Boolean Logic and Digital Circuits
  12. [12]
  13. [13]
    CSCE 312 Fall 2023 Computer Organization Lecture 2 Digital Logic ...
    Implementing Boolean functions with digital circuits ... Logic Gates. Logic gates are physical components that implement logical functions like AND and OR.
  14. [14]
    Boolean Algebra and its Application to Problem Solving and Logic ...
    Through Boolean Algebra logical analysis can be performed using these three functions. The electronic representation of these functions are called logic gates.
  15. [15]
    None
    ### Summary of Practical Applications of Basic Logic Gates
  16. [16]
    None
    ### Summary of Basic Logic Gates from ELEC 2210 Expt1.pdf
  17. [17]
    [PDF] CHAPTER FOUR
    In an earlier section, a security system was given as an example for an application of an OR gate: the alarm goes off if the door opens or the glass breaks ...
  18. [18]
    [PDF] "Overview of IEEE Std 91-1984,Explanation of Logic Symbols ...
    Table 1 shows general qualifying symbols defined by IEEE Standard 91. These characters are placed near the top center or the geometric center of a symbol or ...
  19. [19]
    [PDF] IEEE STANDARD SYMBOLS - Wakerly home page
    The most recent revision of the standard is ANSI/IEEE Std 91-1984,. IEEE Standard Graphic Symbols for Logic Functions. It is compatible with standard 617 of the ...
  20. [20]
    Digital logic gates - Spinning Numbers
    IEC 60617, ANSI/IEEE Std 91-1984 defines rectangular shapes for both simple gates. Notice how the NOT symbol has a flag instead of a bubble.
  21. [21]
    Truth Tables for Digital Logic - HyperPhysics Concepts
    Truth Tables. A truth table shows how a logic circuit's output responds to various combinations of the inputs, using logic 1 for true and logic 0 for false.
  22. [22]
    Boolean Expressions for Logic Circuits
    Truth Tables for Basic Logic Functions. The figure consists of 5 tables representing the truth tables for. AND GATE where X(AND) = A.B; OR GATE Where Y(OR) = A+ ...
  23. [23]
    [PDF] Simplifying Logic Circuits with Karnaugh Maps
    called the Karnaugh map, or K-map. • A K-map is a truth table graph, which aids in visually simplifying logic. • It is useful ...
  24. [24]
    Lab 05: Universal Capability of NAND and NOR Gates
    The NAND gate is a universal gate because it can be used to produce the NOT operation, the AND operation, the OR operation, and the NOR operation. An inverter ...
  25. [25]
    [PDF] NAND and NOR are universal gates
    Any function can be implemented using only NAND or only NOR gates. How can we prove this? (Proof for NAND gates). Any boolean function can be implemented using ...
  26. [26]
    [PDF] Lecture 6: Universal Gates - UCSD CSE
    AND, OR, NOT: Logic gates related to reasoning from Aristotle (384-322BCE). NAND, NOR: Inverted AND, Inverted OR gates. For VLSI technologies, all gates are ...
  27. [27]
    CS 201: Gates and Circuits
    Oct 18, 2021 · Because (x NAND x) ≡ x', we can use a single NAND gate both of whose inputs are x as a replacement for a NOT gate.
  28. [28]
    From transistors to gates!
    In order to build an AND gate, all we have to do is to connect the output of the NAND gate to the input of a NOT gate. Figure 9: The "both X and Y" circuit (the ...
  29. [29]
    Logic gates – Clayton Cafiero
    ... NOT (NOT P OR NOT Q). To construct a NAND, we just add a NOT gate to the output. NAND, constructed with NOR. AND and NAND have their own symbols: AND and NAND ...
  30. [30]
  31. [31]
    [PDF] ORMC Beginners 2: Logic Gates Continued - UCLA Math Circle
    Apr 15, 2022 · Prove that the NOR gate is also universal. (Hint: How did we show that NAND was universal?) 7. Page 8 ...
  32. [32]
    [PDF] Digital Logic Design
    The. NAND and NOR gates are universal gates. In practice, this is advantageous since NAND and NOR gates are economical and easier to fabricate and are the basic ...
  33. [33]
    [PDF] NAND Rules The World
    Jan 9, 2021 · NAND Is A Universal Gate​​ Because NAND and NOR gates are 4 Page 5 economical and easier to fabricate, they are the basic gates used in all IC ( ...
  34. [34]
    DeMorgan's Theorem - HyperPhysics
    The most important logic theorem for digital electronics, this theorem says that any logical binary expression remains unchanged if we Change all variables to ...
  35. [35]
    Lab 4: DeMorgans Theorem - UMBC CSEE
    In this labs students will learn to apply DeMogan's Theorem to manipulate a logical expression and verify the operation, changing its mapping to digital logic ...
  36. [36]
    De Morgan's second law
    De-Morgan's second law · (not(AB)) = (not A) + (not B) · the OR gate with the two inputs inverted is a bubbled OR gate · for 3 inputs: (not(ABC)) = (not(A)) + (not ...
  37. [37]
    [PDF] Boolean Algebra - A AND B
    A shortcut method for forming equivalent logic circuits, based on De Morgan's theo- rem, is to use what's called bubble pushing.
  38. [38]
    [PDF] Unit 8A Computer Organization - Carnegie Mellon University
    Computer circuitry works based on Boolean Logic (Boolean. Algebra) ... Truth tables define the input - output behavior of logic gates. Page 12. A ...
  39. [39]
    [PDF] multi-level gate circuits nand and nor gates - UCF ECE
    Procedure for designing a minimum two-level NAND-NAND circuit: 1. Find a minimum sum-of-products expression for F. 2. Draw the corresponding two-level AND-OR ...
  40. [40]
    CSC 371 Assignment 3 - p.66-7/2-1, 2-2, 2-3, 2-8, 2-13, 2-17, 2-18
    Sep 25, 2017 · Demonstrate by means of a truth table the validity of the following identities: DeMorgan's theorem for three variables: (x + y + z)' = x'y'z' ...Missing: digital | Show results with:digital
  41. [41]
    Chapter 5 Logic Circuits
    Logic circuits are classified as combinational, where output depends only on current inputs, and sequential, where output depends on both current and previous ...
  42. [42]
    [PDF] Arithmetic Circuits & Multipliers - MIT
    “Full Adder” building block. A. B. C. S. CO. 0. 0. 0. 0. 0. 0. 0. 1. 1. 0. 0. 1. 0. 1. 0. 0. 1. 1. 0 ... The “half adder” circuit has only the. A and B inputs.
  43. [43]
    [PDF] COMBINATIONAL CIRCUITS - UCSB ECE
    A half adder is a simple example of a combinational circuit. The addend, augend, carry, and sum are all sin- gle binary digits or bits. If we denote the ...
  44. [44]
    [PDF] Fundamentals of Computer Systems, Spring 2011 3. Combinational ...
    • Multiplexer. • Addition. • Half and full adders. • Ripple carry adder. • Carry lookahead adder. • Subtraction. • Comparator (“!=” in lecture, “<“ in text). • ...
  45. [45]
    [PDF] Chapter 2: Combinational Logic Design
    An expression is in sum-of-products (SOP) form when all products contain literals ... Combinational Logic Design. An expression is in product-of-sums (POS).
  46. [46]
    [PDF] Episode 5.01 – The Sum-of-Products Expression
    ... combinational logic: the sum-of-products expression. The sum-of-products, or SOP, expression is a form of digital logic where, aside from a possible inverter,.
  47. [47]
    [PDF] Sequential Logic - Stanford University
    The output of sequential logic depends not only on its input, but also on its state which may reflect the history of the input. We form a sequential logic ...
  48. [48]
    ECE 294 - Analog and Digital Lab. Experiment 2: Sequential Circuits
    Logic circuits that incorporate memory cells are called sequential logic circuits; their output depends not only upon the present value of the input but also ...
  49. [49]
    Latch and flip flop – Clayton Cafiero - University of Vermont
    An SR latch is a circuit that can store one bit of information. “SR” is an abbreviation of set-reset. An SR latch can be constructed using two NOR gates. SR ...
  50. [50]
    [PDF] Sequential Logic
    A modification of the SR flip-flop, called the JK flip flop removes this problem. ... If both J and K are 1 at the low-going edge, then the outputs toggle.
  51. [51]
    Digital Electronics Part II : Sequential Logic
    Shift Registers​​ Another example of a useful circuit, actually a finite state machine in its own right, is the shift register of Figure 7.
  52. [52]
    [PDF] Sequential logic - Washington
    Shift register application. ▫ Parallel-to-serial conversion for ... Communicating finite state machines. ▫ One machine's output is another machine's input.
  53. [53]
    [PDF] Lecture 6 Clocked Elements - Stanford University
    Flop Timing. • Setup and hold times are defined relative to the clock rise. – Setup time: how long before the clock rise must the data arrive. – Hold time: how ...
  54. [54]
    12.5.3: Random Access Memory (RAM) - Watson
    RAM is built from binary cells, which are memory cells based on flip-flops. A large collection of these cells, with address decoding, forms RAM.
  55. [55]
    [PDF] CMOS Inverter
    NMOS/PMOS ratio. tpLH. tpHL tp β = Wp/Wn. 1. 1.5. 2. 2.5. 3. 3.5. 4. 4.5. 5. 3. 3.5 ... Fan-in and Fan-out. N. Fan-out N. Fan-in M. M. 32. Ring Oscillator v0 v1.
  56. [56]
    TTL, CMOS, ECL Logic: Key Differences Explained
    ### Summary of TTL, CMOS, and ECL Logic Families
  57. [57]
    [PDF] EXPERIMENT 3: TTL AND CMOS CHARACTERISTICS
    CMOS FAMILY​​ CMOS logic is exemplified by its extremely low power consumption and high noise immunity. Hence, it is prevalently used in devices demanding low ...
  58. [58]
    Digital Buffer and the Tri-state Buffer Tutorial - Electronics Tutorials
    We have also seen that digital buffers are available in the tri-state form that allows the output to be effectively switched-off producing a high impedance ...
  59. [59]
    7400 Series Guide: 74LS00/74HC00 (NAND gates)
    This is a guide to the 74HC00 (and 74LS00) chip. Learn how to use this chip in practical circuits with our 7400 Series IC Guide.<|separator|>
  60. [60]
    [PDF] NASA CONTRIBUTIONS TO FLUIDIC SYSTEMS
    Fluidic systems can be designed to operate with neither moving parts nor electrical components, although many designs incorporate these more conventional parts.
  61. [61]
    Additively manufacturable micro-mechanical logic gates - Nature
    Feb 20, 2019 · A major advantage of micro-mechanical logic devices is that they utilize energy in a mechanical form and require no electrical power source or ...Missing: non- | Show results with:non-
  62. [62]
    Electromechanical Relay Logic Worksheet - Digital Circuits
    Electromechanical relays are digital logic devices with two states, represented by a circle in ladder logic, and can perform logic functions. Ladder logic ...
  63. [63]
    [PDF] Fluidics: Basic Components and Applications - DTIC
    Vortex flow amplifier: (a) without control flow and faster than mechanical or conventional moving-. (b) with control flow, part pneumatic/hydraulic systems.
  64. [64]
    All-optical photonic crystal logic gates for optical computing
    Nov 13, 2020 · Photonic crystal (PhC) logic gates are main building blocks of optical computing, using photonic bandgaps to control light, and are used for ...
  65. [65]
    All-optical logical gates AND, OR, NOT, XNOR and XOR based on ...
    Aug 15, 2025 · This paper presents a novel approach for high-speed optical logic gates based on metalenses. The logic gates consist of two or three phase-controllable ...
  66. [66]
    [PDF] All-optical logic gate computing for high-speed parallel information ...
    Sep 7, 2022 · Optical logic gate computing uses light signals to perform logic gate operations, which are fundamental for digital computing, offering high- ...
  67. [67]
    DNA Logic Gates for Small Molecule Activation Circuits in Cells
    Feb 2, 2024 · While an OR gate produces a TRUE output in the presence of any accepted input, a TRUE output is produced from an AND gate only if all accepted ...Introduction · Results and Discussion · Conclusions · Supporting Information
  68. [68]
    Computing Naturally in the Billiard Ball Model - SpringerLink
    Fredkin's Billiard Ball Model (BBM) is considered one of the fundamental models of collision-based computing, and it is essentially based on elastic collisions ...Missing: ballistic | Show results with:ballistic
  69. [69]
    1801: Punched cards control Jacquard loom | The Storage Engine
    In 1801, Joseph Jacquard used punched cards to control a loom, enabling complex patterns. Later, punched cards were used for data storage and input.Missing: logic | Show results with:logic
  70. [70]
    An Investigation of the Laws of Thought - Cambridge University Press
    Self-taught mathematician and father of Boolean algebra, George Boole (1815–1864) published An Investigation of the Laws of Thought in 1854. In this highly ...
  71. [71]
    [PDF] Logical Machines - Computer Timeline
    Charles Sanders Peirce, "Logical Machines,". The American Journal of Psychology, 1 (1887), 165-170. Logical Machines. In the "Voyage to Laputa" there is a ...Missing: electromagnetic relays 1880s
  72. [72]
    Eccles & Jordan Invent the Flip-Flop Circuit, the Basis for Electronic ...
    Eccles–Jordan trigger circuit Offsite Link and consisted of two active elements (vacuum tubes). Early flip-flops were known variously as trigger circuits or ...
  73. [73]
    A symbolic analysis of relay and switching circuits - DSpace@MIT
    A symbolic analysis of relay and switching circuits. Author(s). Shannon, Claude Elwood,1916-2001. ... Thesis (M.S.)--Massachusetts Institute of Technology, Dept.
  74. [74]
    Z1 - Konrad Zuse Internet Archive -
    The Z1 was a mechanical computer designed by Konrad Zuse from 1935 to 1936 and built by him from 1936 to 1938. It was a binary electrically driven mechanical ...
  75. [75]
    Diodes: The Switch You Never Knew You Had - Hackaday
    Dec 9, 2016 · This so-called diode-resistor logic, or DRL, was used in solid-state computers everywhere possible during this period, with transistors used ...
  76. [76]
    A Science Odyssey: People and Discoveries: Transistor is invented
    Although successful, ENIAC and its offspring showed the real limitations of vacuum tubes: to make more powerful computers, more tubes would be needed, but at ...<|separator|>
  77. [77]
    1947: Invention of the Point-Contact Transistor | The Silicon Engine
    In December 1947, John Bardeen and Walter Brattain achieved transistor action using germanium with two gold contacts, amplifying a signal up to 100 times.
  78. [78]
    1959: Practical Monolithic Integrated Circuit Concept Patented
    Noyce filed his "Semiconductor device-and-lead structure" patent in July 1959 and a team of Fairchild engineers produced the first working monolithic ICs in ...
  79. [79]
    [PDF] Cramming More Components Onto Integrated Circuits
    Moore, “Cramming More Components onto. Integrated Circuits,” Electronics, pp. 114–117, April 19, 1965. Publisher Item Identifier S 0018-9219(98)00753-1. Each ...
  80. [80]
    VLSI Technology: Its History and Uses in Modern Technology
    Mar 17, 2022 · Very large-scale integration is a process of embedding or integrating hundreds of thousands of transistors onto a singular silicon semiconductor microchip.
  81. [81]
    3nm Technology - Taiwan Semiconductor Manufacturing
    TSMC's 3nm (N3) technology, the industry's most advanced, was first in high-volume production in 2022, offering best performance, power, and area.
  82. [82]
    What is the quantum NOT gate? - PennyLane
    The quantum NOT gate is the analogue of the classical NOT gate used in quantum computing. It turns a state of |0⟩ into a state of |1⟩, and vice versa.
  83. [83]
    Boolean Logic Computing Based on Neuromorphic Transistor - 2023
    Jul 26, 2023 · Here, a systematic summary of Boolean logic computing based on emerging neuromorphic transistors is presented.
  84. [84]
    Improving AI Inference Performance with Hardware Accelerators
    Dec 9, 2024 · This article explores the different types of hardware accelerators, their architecture, and how they can be leveraged to improve AI inference performance.