Educational reading / Digital logic
A rule made into a circuit.
A small set of logical rules can become the building blocks of a much larger digital system.
From a statement to a rule
A logic gate maps inputs to an output according to a defined rule. In a simple two-input AND gate, the output is one only when both inputs are one. An OR gate produces one when either input, or both inputs, are one. A NOT gate reverses a single input.
Imagine a hypothetical lamp with two conditions: a person requests light, and a timer permits it. An AND rule requires both; an OR rule allows either. Changing the rule changes the behavior.
The rule has a physical form
Inside an electronic device, zero and one are represented by electrical signal ranges. A gate is a physical circuit, so voltage compatibility and the time taken for its output to settle matter. A logical diagram leaves out many of these implementation details.
Combining rules allows a circuit to compare values or choose signals. Distinguish the meaning of the rule from its physical implementation.
Ask about the condition
When reading a description of a digital system, ask which conditions are required together and which are alternatives. Try writing a small list of input combinations before interpreting the output. This simple exercise can expose an ambiguous requirement before a circuit is considered.
The lamp example illustrates a rule. A complete electrical design also needs appropriate components and safety review.
Further reading
Texas Instruments: logic gates
Educational information, independent of company activities.