A complete bandgap reference (BGR) circuit design using ASAP 7nm FinFET technology with temperature compensation and voltage-temperature characteristic (VTC) analysis.
This project implements a temperature-independent voltage reference circuit using the bandgap principle, combining PTAT (Proportional to Absolute Temperature) and CTAT (Complementary to Absolute Temperature) voltages to generate a stable reference voltage across temperature variations.
The complete BGR circuit includes:
- Self-biased current mirror (top section with PFETs)
- PTAT and CTAT voltage generators
- Startup circuit (bottom NFETs array)
- Resistor network for voltage scaling
- Key nodes: Vref (reference output), Vctat (CTAT voltage), V1, V3, V4
| Parameter | Min | Typical | Max | Unit | Condition |
|---|---|---|---|---|---|
| Vref | 303.125 | - | 325 | mV | T = -25°C to 125°C, VDD = 0.7V |
| VDD | - | 0.7 | - | V | Supply Voltage |
| IDD | - | 20 | - | µA | Supply Current |
| R1 | - | 4.59 | - | kΩ | PTAT Resistor |
| R2 | - | 18.711 | - | kΩ | CTAT Resistor |
| Temp Coefficient | - | 0.14583 | - | mV/K | T = -25°C to 125°C |
BGR_7nm_Project/
├── README.md # This file
├── circuits/
│ └── bgr_main.sch # Main BGR circuit schematic
├── spice/
│ ├── bgr_main.spice # Main BGR SPICE netlist
│ └── bgr_vtc_sweep.spice # VTC sweep simulation
├── models/
│ ├── asap_7nm_nfet.sym # NFET symbol
│ ├── asap_7nm_pfet.sym # PFET symbol
│ └── bsimcmg.osdi # BSIMCMG model
└── results/
└── README.md # Simulation results documentation
The BGR circuit consists of:
- PTAT Generator: Creates voltage proportional to absolute temperature
- CTAT Generator: Creates voltage complementary to absolute temperature
- Current Mirror: Self-biased current mirror for stable biasing
- Startup Circuit: Ensures proper circuit initialization
- Resistor Network: R1 (4.59kΩ) and R2 (18.711kΩ) for voltage scaling
Vref = Vctat + α × Vptat
Where α = 0.5100373 is calculated from temperature coefficients.
- Temperature range: -25°C to 125°C
- Step: 2°C
- Supply voltage: 0.7V
The simulation performs a DC temperature sweep and plots:
v(Vctat)- CTAT voltage (red curve)v(Vref)-v(Vctat)- PTAT component (blue curve)v(Vref)- Final reference voltage (yellow curve)
# Navigate to spice directory
cd spice
# Run VTC sweep simulation
ngspice bgr_vtc_sweep.spiceThe temperature sweep results show:
- Vref (yellow): Reference voltage remains relatively stable around 310-320mV across temperature
- Vctat (red): CTAT voltage decreases from ~190mV to ~160mV as temperature increases
- Vref-Vctat (blue): PTAT component increases from ~120mV to ~160mV with temperature
This demonstrates the temperature compensation principle where PTAT and CTAT components balance each other to create a stable reference voltage.
- Calculate PTAT and CTAT temperature coefficients
- Determine α coefficient for temperature compensation
- Calculate resistor values using thermal voltage and current ratio
- Design current mirror for stable biasing
- Add startup circuit to avoid zero-current state
- Simulate and verify across temperature range
- Xschem (Schematic Capture)
- Ngspice (SPICE Simulator)
- ASAP 7nm PDK
- BSIMCMG OSDI model
- ASAP 7nm PDK Documentation
- Bandgap Reference Circuit Theory
- FinFET Device Modeling
Created for educational and research purposes using ASAP 7nm technology.


