Skip to content
BetterDL

Tied inputs

Also called: tying inputs together, tied gate inputs, shorted inputs, tied-together inputs

Connecting several inputs of one gate to the same signal. A NAND or NOR with tied inputs acts as an inverter; an XOR with tied inputs is always 0.

Tying inputs means wiring two or more inputs of a gate to the same signal, so they always carry the same value. With both inputs of a 2-input gate tied to A:

  • AND or OR: output A. The gate just passes A through, since = A and = A.
  • NAND or NOR: output . The gate becomes an inverter.
  • XOR: output always 0, because the inputs can never differ.
  • XNOR: output always 1, because the inputs always match.

The NAND and NOR cases are why a universal gate can supply its own inverters.

A related trick is holding one input at a constant:

  • NAND with one input at 1 inverts the other. NAND with a 0 is stuck at 1.
  • NOR with one input at 0 inverts the other. NOR with a 1 is stuck at 0.
  • XOR with a 1 inverts; XOR with a 0 passes through. See xor identities.

In real circuits, unused inputs must never be left floating, since an unconnected CMOS input can drift and make the gate misbehave. Tie an unused input to a used one, or to the constant that doesn't affect the result: 1 for AND and NAND, 0 for OR and NOR.

AY

Worked example

Example

A spare input on a 3-input NAND

You need Y = but only have a 3-input NAND. What should the third input connect to?

  1. 1.

    Tie it to 1: the gate computes = . Correct.

  2. 2.

    Or tie it to A: = . Also correct.

  3. 3.

    Tie it to 0 and the gate computes = 1, stuck high whatever A and B are. Wrong.

  4. 4.

    Left floating, it has no defined value. Never do that.

Common mistakes

  • Thinking a tied XOR gives A. Its inputs always match, so it gives 0.

  • Tying an unused AND or NAND input to 0, which forces the output to a constant.

  • Assuming a tied AND inverts. Only the gates with a bubble (NAND, NOR) invert when tied.

Practice Tied inputs

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

Tied inputs is taught in Logic Gates.