Log in Sign up
Back to Discover
💻

Logic gate

technology Maturity 11-13

Small parts help computers think.

AND ANSI Labelled.svg
AND ANSI Labelled.svg
They act like tiny switches. These switches turn on or off. They help make every computer work. They are very small. Can you find a computer?

34 words

Computers use tiny parts to think.

AND ANSI Labelled.svg
AND ANSI Labelled.svg
These parts are called logic gates. They work like small switches. These switches turn on or off.
OR ANSI Labelled.svg
OR ANSI Labelled.svg
One gate can take a signal. Then it sends a new signal out. Many gates can work together. They can build a whole computer. Some computers have millions of these parts.
NOT ANSI Labelled.svg
NOT ANSI Labelled.svg
These tiny switches make computers run.

69 words

Logic gates are the tiny parts that help computers think. They work like electronic switches. These switches take in signals and send a new signal out.

AND ANSI Labelled.svg
AND ANSI Labelled.svg
There are seven basic types of gates. One type is the AND gate. It only sends a signal if its inputs are on.
OR ANSI Labelled.svg
OR ANSI Labelled.svg
Another type is the OR gate. It sends a signal if any input is on. The NOT gate is also common. It is often called an inverter. It simply flips the signal to the opposite state.
NOT ANSI Labelled.svg
NOT ANSI Labelled.svg
Most gates today are made of MOSFETs. These are tiny parts that act as switches. You can link many gates together in a chain. This lets you build complex parts like computer memory. You can even build a whole microprocessor. A single chip might have over 100 million logic gates!
OR ANSI Labelled.svg
OR ANSI Labelled.svg
One special gate is the XOR gate. It only sends a signal if the inputs are different. All these small steps work together to run our digital world.

175 words

Logic gates are the building blocks of digital technology. They are devices that perform a Boolean function. This is a logical operation done on binary inputs. A binary input can only be one of two states. These states produce a single binary output.

AND ANSI Labelled.svg
AND ANSI Labelled.svg
This simple way of working is how machines make decisions. Without these gates, computers could not process any information. They allow machines to follow math and logic rules.
OR ANSI Labelled.svg
OR ANSI Labelled.svg

How do these gates actually work? Most modern gates are made from MOSFETs. A MOSFET is a type of transistor that acts as a switch. When the switch is on, it allows electricity to flow. When it is off, the flow stops.

NOT ANSI Labelled.svg
NOT ANSI Labelled.svg
You can also build gates using diodes or vacuum tubes. Some older systems even used mechanical gears or fluid.
AND ANSI Labelled.svg
AND ANSI Labelled.svg
By connecting many gates in a chain, we create logic circuits. These circuits can perform much harder jobs than a single gate. They can build memory or even a whole processor.

People have studied the math behind these gates for a long time. Gottfried Wilhelm Leibniz refined the binary number system in 1705. He showed that binary could combine arithmetic and logic. Later, Charles Babbage designed a machine in 1837. His analytical engine used mechanical gates made of gears.

OR ANSI Labelled.svg
OR ANSI Labelled.svg
In 1886, Charles Sanders Peirce wrote about using electrical switches for logic. These early ideas paved the way for the digital age we live in today.

Many scientists helped make modern electronic gates possible. Walther Bothe created the first modern electronic AND gate in 1924. Between 1934 and 1936, Akira Nakashima, Claude Shannon, and Victor Shestakov studied switching circuits. They showed how Boolean algebra describes these circuits.

OR ANSI Labelled.svg
OR ANSI Labelled.svg
In 1963, Chih-Tang Sah and Frank Wanlass created CMOS logic. This was a big step for making gates more efficient. Today, a single microprocessor can contain more than 100 million logic gates.

Logic gates are everywhere in our modern lives. They are the reason your phone and computer work. Every time you play a game, gates are working. They handle the math needed to show images on a screen.

OR ANSI Labelled.svg
OR ANSI Labelled.svg
They also manage the memory that stores your files. Even simple machines use the logic of these tiny switches. It is amazing how small parts can build such huge systems.

398 words

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.svg
AND ANSI Labelled.svg

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.svg
NOT ANSI Labelled.svg

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.svg
OR ANSI Labelled.svg

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.svg
AND ANSI Labelled.svg

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.svg
OR ANSI Labelled.svg

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.svg
Four bit adder with carry lookahead.svg

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.svg
OR ANSI Labelled.svg

582 words
🖼️ 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

Up Next
💻
Adder (electronics)
Technology
More to explore

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.