6. 2-Input AND Gate

Design a circuit verifying a 2-input AND gate.

Constraints:

  • Inputs: A, B
  • Output: Y
  • Component: 2-input AND gate only 

Behavioral Reference: 

ABY
000
010
100
111

 

 

Need Help? Refer to the Quick Guide below

Logic gates are the basic building blocks of digital circuits. They receive one or more binary inputs and generate a binary output.

Binary values:

In positive logic:

  • 0 = LOW, False
  • 1 = HIGH, True

Basic Logic Gates

AND Gate

An AND gate produces 1 only when all inputs are 1.

Two input AND gate symbol and truth table.

OR Gate

An OR gate produces 1 when at least one input is 1.

Two input OR gate symbol and truth table.

NOT Gate

A NOT gate produces the complement of its input. It is also called an inverter.

NOT gate symbol and truth table.

Universal Logic Gates

NAND and NOR are universal gates. Either NAND gates alone or NOR gates alone can implement any Boolean function.

NAND Gate

A NAND gate is an AND gate followed by a NOT operation.

Two input  NAND gate symbol and truth table.

NOR Gate

A NOR gate is an OR gate followed by a NOT operation.

Two input NOR gate symbol and truth table.

Exclusive Logic Gates

XOR Gate

A two-input XOR gate produces 1 when its inputs are different.

Two input XOR gate symbol and truth table.

Common uses:

  • Sum generation in adders
  • Parity generation
  • Bit comparison
  • Controlled bit inversion

XNOR Gate

A two-input XNOR gate produces 1 when its inputs are equal.

Two input XNOR gate symbol and truth table.

Common uses:

  • Equality comparison
  • Digital comparators
  • Bit-match detection
  • Data matching circuits

All Logic Gates Summary Table

All Logic Gates Summary Table

Boolean Algebra Laws and Rules:

Boolean Algebra Laws Reference chart.

Implementing Basic Gates (NOT, AND, OR) using Universal Gates

Universal gates recreate AND, OR, and NOT by using tied inputs or by adding an inversion stage.

NAND and NOR gates Implementations.

Multi-Input Gates

  • AND, OR, NAND, and NOR gates commonly have multiple inputs.
  • Multi-input XOR produces 1 when the number of HIGH inputs is odd, while multi-input XNOR produces 1 when the number of HIGH inputs is even.
  • A NOT gate always has one input.
Multi input gates.

Common Applications

Logic gates are used in:

  • Adders and subtractors
  • Multiplexers and decoders
  • Comparators
  • Registers and counters
  • Memory circuits
  • Alarm and safety systems
  • Control circuits
  • Arithmetic logic units