bag.data.dc
This module defines classes for computing DC operating point.
Module Contents
Classes
A class that solves DC operating point of a circuit. |
- class bag.data.dc.DCCircuit(ndb: bag.tech.mos.MosCharDB, pdb: bag.tech.mos.MosCharDB)[source]
Bases:
object
A class that solves DC operating point of a circuit.
- Parameters:
ndb (MosCharDB) – nmos characterization database.
pdb (MosCharDB) – pmos characterization database.
- add_transistor(d_name: str, g_name: str, s_name: str, b_name: str, mos_type: str, intent: str, w: Union[float, int], lch: float, fg: int = 1) None [source]
Adds a small signal transistor model to the circuit.
- Parameters:
d_name (str) – drain net name.
g_name (str) – gate net name.
s_name (str) – source net name.
b_name (str) – body net name. Defaults to ‘gnd’.
mos_type (str) – transistor type. Either ‘nch’ or ‘pch’.
intent (str) – transistor threshold flavor.
lch (float) – transistor channel length.
fg (int) – transistor number of fingers.