Skip to content
KinPilot™Learn & Explore
Menu

Grades 6–8 · Computing

How do AND, OR and NOT gates transform signals?

A logic gate applies a fixed rule to binary signals. Binary means there are two allowed values, written 0 and 1. An ideal gate uses its connected input values to determine one output value; the named operation defines that relationship.

D07 visual explanationAND receives A=1 and B=0, giving output 0. AND outputs 1 only for 1,1. Inclusive OR outputs 1 when at least one input is 1, including 1,1. NOT has one input and flips 0 to 1 or 1 to 0. These are ideal binary signals, not analog voltage or timing models.An ideal gate follows its truth tableAND needs both inputs to be 1.A=1B=0ANDY=0A B → Y0 0 → 00 1 → 01 0 → 01 1 → 10 and 1 are the only allowed signal values.Find the row matching the connected inputs.

In the diagramAn ideal gate follows its truth tableAND needs both inputs to be 1.A=1B=0ANDY=0A B → Y0 0 → 00 1 → 01 0 → 01 1 → 10 and 1 are the only allowed signal values.Find the row matching the connected inputs.

The AND gate receives A = 1 and B = 0, so its output is 0. AND requires both inputs to be 1.

AND has two inputs and produces 1 only when both are 1. If either input is 0, its output is 0. In the illustration, A is 1 and B is 0, so the AND output is 0. One active input is not sufficient for this rule. For example, a rule could allow a process only when both a start request and a permission signal are present. AND expresses that two-condition requirement; it does not decide what the signals mean.

OR is different: it produces 1 when at least one input is 1. The OR used here is inclusive, meaning that two 1 inputs also produce 1. NOT has only one connected input and reverses it, taking 0 to 1 or 1 to 0. A second input is not part of the NOT operation.

A truth table records the output for every allowed input combination, making the rule explicit. The output of one gate can become an input to another, so several small rules can combine into a more elaborate decision. The meaning comes from both the chosen gate and how its signals are connected. A gate's name alone cannot tell the result without its actual inputs.

About this explanation

These are ideal binary rules. The figure does not model the physical voltage ranges, delays or noise of electronic gates.

Starting knowledge: Read a small input-output table and distinguish the symbols zero and one.

Sources

  • Cornell University, CS 3410 — Gates & Logic: Truth Tables
← Grades 6–8 topics