Logic gates are the basic building blocks of digital circuits. They perform logical operations on one or more binary inputs to produce a single binary output. The most common logic gates are AND, OR, NOT, NAND, NOR, and XOR.
逻辑门是数字电路的基本构建块。它们对一个或多个二进制输入执行逻辑操作,以产生一个二进制输出。最常见的逻辑门有与门(AND)、或门(OR)、非门(NOT)、与非门(NAND)、或非门(NOR)和异或门(XOR)。
Here are the symbols used to represent the common logic gates:
- AND Gate (∧): Produces a true output (1) only if all inputs are true (1).
- OR Gate (∨): Produces a true output (1) if at least one input is true (1).
- NOT Gate (¬): Inverts the input; if the input is true (1), the output is false (0), and vice versa.
- NAND Gate: Produces a false output (0) only if all inputs are true (1).
- NOR Gate: Produces a true output (1) only if all inputs are false (0).
- XOR Gate: Produces a true output (1) if the number of true inputs is odd.
以下是用于表示常见逻辑门的符号:
- 与门(∧):仅在所有输入为真(1)时产生真输出(1)。
- 或门(∨):如果至少一个输入为真(1),则产生真输出(1)。
- 非门(¬):反转输入;如果输入为真(1),则输出为假(0),反之亦然。
- 与非门:仅在所有输入为真(1)时产生假输出(0)。
- 或非门:仅在所有输入为假(0)时产生真输出(1)。
- 异或门:当真输入的数量为奇数时,产生真输出(1)。
Truth tables show the output of logic gates for every possible combination of inputs.
If you want to verify your truth table, you can use this tool.
真值表显示了逻辑门在每种可能的输入组合下的输出。
You may use this simulator to practice and visually understand the working of logic gate.
1. 0478/21 Paper 2 Algorithms, Programming and Logic May/June 2023 Question 9
2. 0478/22 Paper 2 Algorithms, Programming and Logic May/June 2023
3. 0478/22 Paper 2 Algorithms, Programming and Logic May/June 2023
4. 0478/23 Paper 2 Algorithms, Programming and Logic May/June 2023
5. 0478/23 Paper 2 Algorithms, Programming and Logic May/June 2023
6. 0478/21 Paper 2 Algorithms, Programming and Logic October/November 2023
7.
8. 0478/22 Paper 2 Algorithms, Programming and Logic October/November 2023
9. 0478/23 Paper 2 Algorithms, Programming and Logic October/November 2023 Question - 6
10.
11.
12. 0478/23 Paper 2 Algorithms, Programming and Logic May/June 2024
13.
14.
0478/21 Paper 2 Algorithms, Programming and Logic May/June 2024
16.
0478/22 Paper 2 Algorithms, Programming and Logic May/June 2024
17