Nepedia
Back to Discover
Advanced Reader
💻

Logic gate

technology Maturity 11-13 Next article →

A logic gate is a fundamental device used to perform a Boolean function. This is a logical operation performed on one or more binary inputs. These inputs result in a single binary output. In digital systems, binary refers to two possible states, such as on or off. Logic gates are the essential building blocks of all digital technology. They allow machines to process information by following specific mathematical rules.

AND ANSI Labelled
AND ANSI Labelled

To understand how they work, we must look at the physical mechanism. Most modern logic gates are constructed using MOSFETs. This stands for metal–oxide–semiconductor field-effect transistors. These transistors act as electronic switches. When a switch is closed, electricity flows to create a specific output. When it is open, the flow stops. While MOSFETs are the standard today, gates can also be built using diodes or transistors. Historically, engineers used vacuum tubes, electromagnetic relays, or even fluidic and pneumatic logic.

NOT ANSI Labelled
NOT ANSI Labelled

There are seven basic types of logic gates used in circuit design. The NOT gate, also called an inverter, simply reverses the input. The AND gate produces an output only if all its inputs are true. The OR gate produces an output if at least one input is true. Other types include the NOR gate, which is the negation of an OR statement. The NAND gate is the negation of an AND statement. There is also the XOR gate, or exclusive OR, which is true only when inputs differ. Finally, the XNOR gate is the negation of the XOR statement.

OR ANSI Labelled
OR ANSI Labelled

The history of logic gates spans several centuries of mathematical and engineering discovery. Gottfried Wilhelm Leibniz refined the binary number system in 1705. He proved that binary could combine the principles of arithmetic and logic. In 1837, Charles Babbage designed the analytical engine. This machine used mechanical logic gates made of gears. Later, in 1886, Charles Sanders Peirce described how electrical switching circuits could carry out logical operations.

AND ANSI Labelled
AND ANSI Labelled

Modern electronic logic saw rapid development in the 20th century. Walther Bothe created the first modern electronic AND gate in 1924. Between 1934 and 1936, Akira Nakashima, Claude Shannon, and Victor Shestakov independently discovered switching circuit theory. They showed that two-valued Boolean algebra could describe how electrical switches operate. In 1948, Bardeen and Brattain patented the insulated-gate transistor. This led to the development of CMOS technology. Chih-Tang Sah and Frank Wanlass eventually combined PMOS and NMOS gates into complementary MOS (CMOS) logic in 1963.

OR ANSI Labelled
OR ANSI Labelled

The scale of logic gate integration is truly massive. Logic gates can be cascaded, or linked together, to form complex logic circuits. These circuits include multiplexers, registers, and arithmetic logic units (ALUs). They are also used to build computer memory. At the highest level, they form complete microprocessors. A single modern microprocessor may contain more than 100 million logic gates.

Four bit adder with carry lookahead
Four bit adder with carry lookahead

Engineers use specific symbols to represent these gates in diagrams. There are two main sets of symbols defined by standards like ANSI/IEEE and IEC. The first set uses distinctive shapes based on traditional schematics. The second set uses rectangular shapes. Rectangular symbols are often preferred because they can represent a wider range of devices. Designers also use De Morgan's laws to simplify circuits. This allows them to replace certain gates with others, such as using an OR gate with negated inputs to act as a NAND gate. This makes complex circuit diagrams much easier to read and interpret.

OR ANSI Labelled
OR ANSI Labelled
566 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (38)
File:Four bit adder with carry lookahead.svg
Four bit adder with carry lookahead.svg
File:74LS192 Symbol.svg
74LS192 Symbol.svg
File:Buffer ANSI Labelled.svg
Buffer ANSI Labelled.svg
File:Buffer IEC Labelled.svg
Buffer IEC Labelled.svg
File:NOT ANSI Labelled.svg
NOT ANSI Labelled.svg
File:NOT IEC Labelled.svg
NOT IEC Labelled.svg
File:AND ANSI Labelled.svg
AND ANSI Labelled.svg
File:AND IEC Labelled.svg
AND IEC Labelled.svg
File:OR ANSI Labelled.svg
OR ANSI Labelled.svg
File:OR IEC Labelled.svg
OR IEC Labelled.svg
File:NAND ANSI Labelled.svg
NAND ANSI Labelled.svg
File:NAND IEC Labelled.svg
NAND IEC Labelled.svg

+ 26 more

More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.