Design a combinational logic circuit to analyze and verify a standard 2-input NAND gate.
Constraints:
Behavioral Reference:
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
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:
An AND gate produces 1 only when all inputs are 1.

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

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

NAND and NOR are universal gates. Either NAND gates alone or NOR gates alone can implement any Boolean function.
A NAND gate is an AND gate followed by a NOT operation.

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

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

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

Common uses:


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


Logic gates are used in: