Skip to content

Latest commit

 

History

History

README.md

Digital Logic Gates

Language Platform Category License Status

📌 Overview

This directory contains the implementation and simulation of fundamental digital logic gates. These gates serve as the building blocks for more complex combinational and sequential circuits found elsewhere in this repository.

Each gate includes:

  • Schematic Design: Created using LTSpice.
  • Truth Table: Theoretical logic verification.
  • Simulation Results: Transient analysis waveforms verifying the input/output relationship.

⚡ Fundamental Gates

1. Inverter (NOT Gate)

A single-input gate that outputs the opposite logic level of its input.

Truth Table

Input (A) Output (Y)
0 1
1 0

Results

Circuit Schematic Simulation Waveform

2. AND Gate

The output is high (1) only if all inputs are high.

Truth Table

Input A Input B Output (Y)
0 0 0
0 1 0
1 0 0
1 1 1

Results

Circuit Schematic Simulation Waveform

3. OR Gate

The output is high (1) if at least one input is high.

Truth Table

Input A Input B Output (Y)
0 0 0
0 1 1
1 0 1
1 1 1

Results

Circuit Schematic Simulation Waveform

🌐 Universal Gates

4. NAND Gate (Not-AND)

The output is low (0) only if all inputs are high. It is a universal gate capable of constructing any other logic gate.

Truth Table

Input A Input B Output (Y)
0 0 1
0 1 1
1 0 1
1 1 0

Results

Circuit Schematic Simulation Waveform

5. NOR Gate (Not-OR)

The output is high (1) only if all inputs are low. Like NAND, it is a universal gate.

Truth Table

Input A Input B Output (Y)
0 0 1
0 1 0
1 0 0
1 1 0

Results

Circuit Schematic Simulation Waveform

➕ Special Gates

6. XOR Gate (Exclusive-OR)

The output is high (1) if the inputs are different. This is a critical component for arithmetic circuits (Adders).

Truth Table

Input A Input B Output (Y)
0 0 0
0 1 1
1 0 1
1 1 0

Results

Circuit Schematic Simulation Waveform

📂 Directory Structure

Logic Gates/
│
├── AND.asc             # AND Gate Schematic
├── AND.asy             # AND Gate Symbol
├── OR.asc              # OR Gate Schematic
├── OR.asy              # OR Gate Symbol
├── XOR.asc             # XOR Gate Schematic
├── XOR.asy             # XOR Gate Symbol
├── Inverter.asc        # NOT Gate Schematic
├── Inverter.asy        # NOT Gate Symbol
├── NAND.asc            # NAND Gate Schematic
├── NAND.asy            # NAND Gate Symbol
├── NOR.asc             # NOR Gate Schematic
├── NOR.asy             # NOR Gate Symbol
│
└── README.md           # Documentation