AMPFORGE v2026.0

Documentation

Full reference for installation, the Design Synthesizer, MOS Characterizer, and worked examples.

Installation

AmpForge is distributed as a ZIP archive for Ubuntu / Linux only. The archive extracts to a directory containing the executable, installer script, and documentation.

Prerequisites

  1. Update package list: sudo apt update
  2. Install NGSPICE (required for MOS Characterizer): sudo apt install ngspice
  3. If NGSPICE is not found, enable the universe repository: sudo add-apt-repository universe then repeat step 2.
  4. Recommended: install DejaVu fonts for console table alignment: sudo apt install fonts-dejavu-core

Install steps

  1. Extract the archive: unzip AmpForge_2026.0.zip
  2. Enter the directory: cd AmpForge_2026.0
  3. Make the installer executable: chmod +x install.sh
  4. Run the installer: ./install.sh (use sudo ./install.sh for all users)

The installer adds AmpForge OTA Compiler to your Applications menu. It can also be run directly from the terminal at /opt/ampforge/AmpForge (system-wide) or ~/.local/share/ampforge/app/AmpForge (per-user).

NGSPICE is only required for the MOS Characterizer. If you intend to use the Design Synthesizer with pre-built .mdat files, AmpForge runs without NGSPICE installed.

Licence Activation

Licence activation is a one-time process, required on the first launch.

Step 1 — Accept the EULA

The End User Licence Agreement appears on first launch. Read it and click I Accept. This is remembered — it will not appear again on this machine.

Step 2 — Obtain your licence file

After accepting, the Licence Activation window shows your Machine ID — a short code in the format A1B2-C3D4-E5F6-0718. Click the box to copy it.

Complete the Licence Request Form with your Machine ID and send it to support@bharatanalogtech.com. You will receive a .lic file within 48 hours.

Save the .lic file directly to disk. Do not copy and paste its contents into a text file — this corrupts the file and it will not be accepted.

Step 3 — Activate

Launch AmpForge, click Select License File in the Licence Activation window, and browse to your saved .lic file. A confirmation message shows your licence expiry date and OTA design count.

System Requirements

ItemRequirement
Operating systemUbuntu 20.04 LTS or later (Linux)
Memory4 GB minimum; 8 GB recommended
Disk space~200 MB for AmpForge + space for .mdat files and design outputs
NGSPICERequired for the MOS Characterizer
InternetOne-time only — to email Machine ID and receive the .lic file

Design Synthesizer — Overview

The Design Synthesizer is the primary OTA sizing module. Given a topology, supply voltage, performance specifications, and a pre-characterised MOS database (.mdat), it searches the full transistor sizing space and returns ready-to-simulate SPICE netlists.

It operates in two modes: Auto Mode (automated design space exploration, three solutions) and Manual Mode (user-specified channel length and overdrive voltage, one solution).

Auto Mode

Auto Mode autonomously explores the complete design space and simultaneously returns three optimised solutions — Low Power, Balanced, and High Slew Rate — each meeting your specified targets.

Required inputs

FieldSymbolUnitRequired
Open Loop DC GainAVdBYes
Unity Gain BandwidthUGBMHzYes
Phase MarginPM°Yes
Slew RateSRV/µsOptional (enter 0)
Input-Referred Thermal Noise PSDVn,thnV/√HzOptional (enter 0)
Capacitive LoadCLpFYes
Resistive Load (Class AB only)RLFor Class AB topologies

Manual Mode

Manual Mode lets you specify the transistor channel length and overdrive voltage directly, giving full control over the operating point. Use this to fine-tune an Auto Mode result, optimise for a specific corner, or size a single MOSFET.

FieldEffect
Design Channel Length (L)Longer L → higher gain, lower flicker noise, lower bandwidth
Design Overdrive Voltage (VOV)Higher VOV → higher SR and fT, costs power; lower VOV → higher gain, better common mode range
Open Loop DC Gain and Phase Margin are derived during the Manual Mode run — they cannot be specified as targets.

Outputs

After a successful run, the Design Synthesizer writes to the output directory:

  • *.sp — SPICE subcircuit netlist with transistor instances, biasing, and PDK compatibility notes
  • *_mos_size_summary.csv — W, L, fingers, ID, and VOV per transistor
  • *_design_results.csv — achieved vs. target for gain, UGB, PM, SR, noise
  • *_voltage_ranges.csv — input and output common mode voltage ranges
  • *_noise_summary.csv — thermal noise PSD, flicker noise, integrated RMS noise
Read the PDK compatibility notes in the .sp file. The netlist includes guidelines for fine-tuning the design for your specific process. These notes should not be skipped.

MOS Characterizer — Overview

The MOS Characterizer generates the .mdat MOS characteristic database used by the Design Synthesizer. It runs NGSPICE locally on the foundry SPICE model file, sweeping channel length, VGS, and VDS to extract DC, AC, and noise parameters. The foundry model file never leaves your machine.

This is a one-time activity per PDK process node. AmpForge ships with pre-built .mdat files for SCL 180nm, IHP 130nm, and GF 180nm.

Setup

SPICE Model Setup

FieldDescription
Library PathFull absolute path to foundry PDK SPICE library (.lib, .spi, or .l)
Process CornerTypical process corner name, e.g. tt_18, mos_tt
Control FileOptional — required for some PDKs (e.g. IHP). Leave blank if not needed.

Key sweep parameters

ParameterRecommended step
Channel Length (µm)0.1
VGS (V)0.005
VDS — 180nm and below (V)0.05
VDS — above 180nm (V)0.1

Foundry Settings

FoundryMOS ModelTypeInstance PrefixLMIN (µm)LMAX (µm)
SCL 180nmn18, p18NMOS / PMOSM0.183.6
SCL 180nmnhv, phvNMOS / PMOSM0.356
GF 180nmnmos_3p3, pmos_3p3NMOS / PMOSX0.286
IHP 130nmsg13_lv_nmosNMOSX0.132.6
TSMC 65nmnch_mac, pch_macNMOS / PMOSX0.061.2

Example 1 — Two Stage Miller RHP Cancel OTA, SCL 180nm, Auto Mode

ParameterValue
TechnologySCL 180nm CMOS
VDD1.8V
Input StagePMOS
Open Loop DC Gain55 dB
Unity Gain Bandwidth1000 MHz
Phase Margin60°
Slew Rate350 V/µs
Thermal Noise PSD6 nV/√Hz
Capacitive Load2 pF
  1. Launch AmpForge. Select Design Synthesizer — Auto Mode.
  2. Set OTA Topology to "Two Stage Miller RHP Cancel".
  3. Set MOS Char Directory to your SCL 180nm .mdat files.
  4. Set NMOS model = n18, PMOS model = p18. Click Load Models.
  5. VDD = 1.8, VSS = 0, Input Transistor Type = PMOS.
  6. Lmin Multiplier = 1.1, Finger Width = 50.
  7. Enter performance specs as above. Click RUN DESIGN.
The High Slew Rate solution was selected for SPICE simulation verification in the User Guide. Achieved: Gain 55.25 dB · UGB 1000 MHz · SR 377 V/µs · Noise 5.07 nV/√Hz.

Example 2 — Folded Cascode OTA, SCL 180nm, Auto Mode

Target: 70 dB gain, 75 MHz UGB, 70° PM, 50 V/µs SR, 8 pF load, NMOS input. Lmin Multiplier = 2.

Achieved (Balanced solution): Gain 72.3 dB · UGB 75 MHz · SR 62.83 V/µs · PM 71.21°. SPICE verified to within 1.3% on UGB and 0.3% on SR.

Example 3 — Recycling Folded Cascode OTA, SCL 180nm, Auto Mode

Same specifications as Example 2. The Recycling Folded Cascode achieves equivalent UGB and slew rate at 57% of the total current compared to the Folded Cascode — demonstrating the topology selection trade-off.

Achieved (Balanced): Gain 72.53 dB · UGB 75 MHz · SR 74.61 V/µs · Current 0.91 mA (vs. 1.59 mA for Folded Cascode).

Example 4 — Recycling Folded Cascode, SCL 180nm, Manual Mode

Fine-tuning Example 3 to increase output swing. Starting from the Auto Mode balanced solution CSV, channel length and overdrive voltage are carried across to Manual Mode. Overdrive voltage of current source and cascode transistors is reduced by 20mV.

Result: I/O common mode ranges improved by 80mV. Gain 72.46 dB · UGB 75 MHz maintained.

Troubleshooting

SymptomSolution
Permission denied on launchchmod +x AmpForge
Licence not valid for this machineNetwork card replaced or OS reinstalled — send current Machine ID to support for a replacement .lic file
Invalid or tampered licence fileRe-request the .lic file. Save the email attachment directly to disk — never copy-paste its contents.
NGSPICE errors or MOS Characterizer failsVerify NGSPICE is installed (ngspice -v). Check sweep ranges, corner name, instance and subcircuit name, and control file path.
Console tables appear misalignedsudo apt install fonts-dejavu-core
System clock rollback detectedSet the correct system date and time.
Topology locked (trial licence)Topologies 3, 5, 14 require a full licence. Contact support to upgrade.

Support

For licensing enquiries, replacement licence files, or technical assistance, contact support@bharatanalogtech.com. Include your Machine ID and any error messages displayed by AmpForge.

Starting AmpForge from a terminal window (/opt/ampforge/AmpForge) is the fastest way to diagnose a problem — all messages are printed to the terminal.