Logic gates · Puertas lógicas
| English | Español |
|---|---|
| Boolean logic/ˈbuːlɪən ˈlɒdʒɪk/ | Lógica booleana |
| logic gate/ˈlɒdʒɪk ɡeɪt/ | puerta lógica |
| truth table/truːθ ˈteɪbl/ | tabla de verdad |
| inverted/ɪnˈvɜːtɪd/ | invertida |
The building blocks of circuits
- Boolean logic 布尔逻辑 works with values that are true (1) or false (0).
- A logic gate 逻辑门 takes inputs and gives one output by a fixed rule.
- A truth table 真值表 lists every input combination and its output.
Los bloques de construcción de los circuitos
- La lógica booleana opera con valores que son verdadero (1) o falso (0).
- Una puerta lógica toma entradas y produce una única salida según una regla fija.
- Una tabla de verdad enumera cada combinación de entrada y su correspondiente salida.
The six gates
- You must know six: NOT, AND, OR, NAND, NOR, XOR.
- NOT has one input; the rest have two. A small circle on the output means inverted 取反 (NOT, NAND, NOR).
AND outputs 1 only when both inputs are 1
Las seis puertas
- Debes conocer seis: NOT, AND, OR, NAND, NOR, XOR.
- NOT tiene una sola entrada; el resto tienen dos. Un pequeño círculo en la salida indica inversión (NOT, NAND, NOR).


AND genera 1 solo cuando ambas entradas son 1
Logic gates · Puertas lógicas
output from the truth table · salida de la tabla de verdad
Toggle A and B through each gate and read the result off the truth table. · Cambia A y B a través de cada puerta y lee el resultado en la tabla de verdad.
NOT, AND, OR
- NOT reverses the input. AND is 1 only when both inputs are 1. OR is 1 when at least one input is 1.
| A | B | A AND B | A OR B |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 |
(NOT: 0→1, 1→0.)
A real logic chip: inside are logic gates like the ones on this page
NOT, AND, OR
- NOT invierte la entrada. AND es 1 solo cuando ambas entradas son 1. OR es 1 cuando al menos una entrada es 1.
| A | B | A AND B | A OR B |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 |
(NOT: 0→1, 1→0.)

Un chip lógico real: en su interior hay puertas lógicas como las de esta página
An AND gate gives output 1 when: · Una puerta AND da salida 1 cuando:
AND outputs 1 only when every input is 1. · AND devuelve 1 solo cuando todas las entradas son 1.
An OR gate gives output 0 only when: · Una puerta OR da salida 0 solo cuando:
OR is 1 if at least one input is 1, so it is 0 only when both are 0. · OR es 1 si al menos una entrada es 1, por lo que es 0 solo cuando ambas son 0.
NAND, NOR, XOR
- NAND = opposite of AND; NOR = opposite of OR; XOR = 1 when the inputs are different.
| A | B | A NAND B | A NOR B | A XOR B |
|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 0 |
The six logic gates. A small circle on the output means the result is inverted (NOT, NAND, NOR).
NAND, NOR, XOR
- NAND = lo opuesto a AND; NOR = lo opuesto a OR; XOR = 1 cuando las entradas son diferentes.
| A | B | A NAND B | A NOR B | A XOR B |
|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 0 |

Las seis puertas lógicas. Un pequeño círculo en la salida indica que el resultado está invertido (NOT, NAND, NOR).
A XOR gate gives output 1 when: · Una puerta XOR da salida 1 cuando:
XOR (exclusive OR) is 1 when the inputs differ. · XOR (OR exclusivo) es 1 cuando las entradas difieren.
Match each gate to when its output is 1. · Asocia cada puerta con cuándo su salida es 1.
AND = all 1s, OR = any 1, XOR = inputs differ, NAND = NOT AND. · AND = todos 1s, OR = algún 1, XOR = entradas diferentes, NAND = NOT AND.
A NOR gate with both inputs 0 gives what output (0 or 1)? · Una puerta NOR con ambas entradas 0 da qué salida (0 o 1)?
NOR = NOT OR. OR of (0,0) is 0, so NOR is 1. NOR is 1 only when both inputs are 0. · NOR = NOT OR. OR de (0,0) es 0, así que NOR es 1. NOR es 1 solo cuando ambas entradas son 0.
You've got it
- 1 = true, 0 = false; a truth table lists every input combination
- AND = both 1 · OR = at least one 1 · NOT = invert
- NAND/NOR = AND/OR with the output inverted (the circle)
- XOR = 1 when the inputs differ
Lo has entendido
- 1 = verdadero, 0 = falso; una tabla de verdad lista todas las combinaciones de entrada
- AND = ambos 1 · OR = al menos uno 1 · NOT = invertir
- NAND/NOR = AND/OR con la salida invertida (el círculo)
- XOR = 1 cuando las entradas difieren