What do you mean by logic gates?

What do you mean by logic gates?

  1. A logic gate is a switching circuit that is applied in computers and other electronic devices.
  2. It is the basic electronic building block used in computers and many other digital devices.
  3. A logic gate performs logical operation in a digital system.
  4. A digital system is where the input and output only involve two levels of voltage, high (1) or low (0).
  5. Table shows the other names for the logic levels.
    logic gates 1
  6. The logic gates are called ‘gates’ because they give a ‘1’ on the output only when a particular combination of 0 and 1 is present at the inputs. This combination is the ‘key’ to open the gate which is the output.

Logic Gates as Switching Circuits

  1. A logic gate is a switching circuit made up of a combination of transistor switches.
  2. It has one or more input terminals but only one output terminal.
  3. It is useful to find out how some simple logic gates can be built from switches. A closed switch is considered to be at a high state (1) and an open switch is at a low state (0).
  4. Switches in series can perform an AND gate function and switches in parallel can perform an OR gate function.

Symbols for Logic Gates

  1. A logic gate can be represented by a block diagram as shown in Figure.
    logic gates 2
  2. In practice, each logic gate is represented by a symbol with input terminals and one output terminal.
  3. The three basic logic gates are called AND, OR and NOT gates.
  4. A NAND gate is made of an AND gate and a NOT gate, while a NOR gate is made of an OR gate and a NOT gate.
  5. At any given moment, a terminal of a logic gate is in one of the two states, low (0) or high (1), represented by different voltage levels.
  6. The voltage at the output terminal or state depends on the voltages or states at the input terminals. This means that each logic gate only ‘opens’ and gives a ‘high’ output for certain input combinations.

People also ask

AND Gate

  1. Figure shows the circuit diagram for AND gate.logic gates 3
  2. When switches A and B are open, the logic state is 0. When switches A and B are closed the logic state is 1.
  3. When the bulb does not light up, the logic state is 0. When the bulb lights up, the logic state is 1.
  4. Switch A and switch B represent the inputs while bulb Y represents the output.
  5. Bulb Y will only light up if both switch A AND switch B are closed.
  6. Figure shows the symbol for AND gate.
    logic gates 4

OR Gate

  1. Figure shows the circuit diagram for OR gate.
    logic gates 5
  2. Bulb Y will light up when switch A OR switch B (or both) are closed. Otherwise, the bulb does not light up.
  3. Figure shows the symbol for OR gate.
    logic gates 6

NOT Gate

  1. Figure shows the circuit diagram for NOT gate.
    logic gates 7
  2. Bulb Y will light up if switch A is open but will NOT light up if switch A is closed.
  3. Figure shows the symbol for NOT gate. A NOT gate can only have one input and one output.
    logic gates 8
  4. A NOT gate is also called an inverter.

NAND Gate

  1. Figure shows the circuit diagram for NAND.
    logic gates 9
  2. Bulb Y will NOT light up if both switch A AND switch B are closed.
  3. Figure shows the symbol for NAND gate.
    logic gates 10
  4. A NAND gate is an AND gate combined with a NOT gate. Therefore, a NAND gate is the NOT of an AND gate.

NOR Gate

  1. Figure shows the circuit diagram for NOR gate.
    logic gates 11
  2. Bulb Y will NOT light up if switch A OR switch B (or both) are closed.
  3. Figure shows the symbol for NOR gate.
    logic gates 12
  4. A NOR gate is an OR gate combined with a NOT gate as in Figure. Therefore a NOR gate is the NOT of an OR gate.
    logic gates 13

Truth Tables for Logic Gates

  1. A truth table is used to record all the possible combinations of inputs and the corresponding output decisions for a particular logic circuit.
  2. The behaviour of the logic circuit can be summarised by a truth table.
  3. In a truth table, the input and output states are represented by the binary numbers 0 (low) and 1 (high).
  4. Boolean algebra can be used tp descrihe the switching functions of logic gates. The operation of the Boolean algebra can be shown as in Table.
    Truth Tables for Logic Gates 2
  5. The voltage levels (low or high) can be used to represent the inputs and output states of a logic gate.
  6. Figure shows an example of inputs and output voltages of an AND gate.
    Truth Tables for Logic Gates 3Truth Tables for Logic Gates 4
  7. Another way to represent the inputs and output states of a logic gate is by writing the binary states on the terminals of the logic gate as shown in Figure.
    Truth Tables for Logic Gates 5

Table summarises the action of the five basic logic gates.
Truth Tables for Logic Gates 6
Truth Tables for Logic Gates 7

Logic Gates Experiment

Aim: To study the actions of AND, OR, NOT, NAND and NOR gates
Material: Connecting wires
Apparatus: Circuit modules for AND, OR, NOT, NAND and NOR gates, a.c. power supply
Method:Truth Tables for Logic Gates 1

  1. The apparatus is set up as shown in Figure.
  2. The activities as in Table are carried out for the AND, OR, NOT, NAND and NOR circuit modules.
  3. The observations are recorded.

Observations:

Truth Tables for Logic Gates 8
Discussion:

  1. The NOT gate is called an inverter because its output is the inverse of its input.
  2. The NAND gate is an AND gate with the output inverted. It is the NOT of an AND gate.
  3. The NOR gate is an OR gate with the output inverted. It is the NOT of an OR gate.