# yuvan1492/180nm-model-2-stage-opamp architecture

> Architecture diagram of the GitHub repository yuvan1492/180nm-model-2-stage-opamp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yuvan1492/180nm-model-2-stage-opamp
- Repository: https://github.com/yuvan1492/180nm-model-2-stage-opamp

## Overview

This repository is an LTspice circuit-design and simulation project for a two-stage, Miller-compensated TSMC 0.18 μm OTA. The documented workflow is to open the schematic in LTspice, run an analysis, and inspect waveform or measurement results. The README describes transient, AC, and DC operating-point analyses, plus custom transistor symbols and a local BSIM3 model library. No source excerpts were provided; the graph reflects documented relationships and the supplied file tree.

Main entry points: [`simulations/OTA.asc`](https://github.com/yuvan1492/180nm-model-2-stage-opamp/blob/main/simulations/OTA.asc) (OTA schematic), [`simulations/tsmc018k.lib`](https://github.com/yuvan1492/180nm-model-2-stage-opamp/blob/main/simulations/tsmc018k.lib) (TSMC models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["Circuit design"]
  node_schematic["OTA schematic<br/>[OTA.asc]"]
  node_symbols["MOS symbols"]
  node_models["TSMC models<br/>[tsmc018k.lib]"]
end

subgraph group_simulation["Simulation"]
  node_analyses["Analysis directives<br/>[OTA.asc]"]
  node_results["Waveforms and measurements"]
end

node_user(("Engineer"))
node_ltspice["LTspice"]

node_user -->|"opens schematic"| node_ltspice
node_ltspice -->|"loads"| node_schematic
node_schematic -->|"uses"| node_symbols
node_schematic -->|"includes"| node_models
node_ltspice -->|"runs"| node_analyses
node_ltspice -->|"produces"| node_results

click node_schematic "https://github.com/yuvan1492/180nm-model-2-stage-opamp/blob/main/simulations/OTA.asc"
click node_models "https://github.com/yuvan1492/180nm-model-2-stage-opamp/blob/main/simulations/tsmc018k.lib"
click node_analyses "https://github.com/yuvan1492/180nm-model-2-stage-opamp/blob/main/simulations/OTA.asc"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_schematic,node_symbols,node_models toneBlue
class node_analyses,node_results toneAmber
class node_user,node_ltspice toneIndigo
```

## Components

### Circuit design

- [OTA schematic](https://github.com/yuvan1492/180nm-model-2-stage-opamp/blob/main/simulations/OTA.asc): `simulations/OTA.asc`
- **MOS symbols**
- [TSMC models](https://github.com/yuvan1492/180nm-model-2-stage-opamp/blob/main/simulations/tsmc018k.lib): `simulations/tsmc018k.lib`

### Simulation

- [Analysis directives](https://github.com/yuvan1492/180nm-model-2-stage-opamp/blob/main/simulations/OTA.asc): `simulations/OTA.asc`
- **Waveforms and measurements**

### Other components

- **Engineer**
- **LTspice**

## Connections

- Engineer → LTspice: opens schematic
- LTspice → OTA schematic: loads
- OTA schematic → MOS symbols: uses
- OTA schematic → TSMC models: includes
- LTspice → Analysis directives: runs
- LTspice → Waveforms and measurements: produces
