generate_cascode
Generate a cascode amplifier .CIR circuit (common-emitter under common-base) with specified Rc, Re, Vcc, source, analysis, and output node, returning a Micro-Cap netlist for simulation.
Instructions
Draw a .CIR cascode amplifier (common-emitter under common-base).
A common-emitter transistor stacked under a common-base transistor. The
midband gain is the common-emitter's, -Rc/(Re+re'), but the upper
transistor shields the lower one's collector from the output swing, so the
Miller capacitance nearly vanishes and both output impedance and bandwidth
rise — the reason to use a cascode over a plain common-emitter. All bias
points are computed for a mid-supply output with active-region headroom, and
both bases are driven by sources carrying their DC bias directly (no coupling
caps or dividers). Rc must exceed Re.
Args:
rc, re: collector load and emitter degeneration; their ratio is the gain.
vcc: supply voltage.
source: AC drive VALUE added to the lower base's bias ("AC=1").
analysis: AC, Transient, or DC.
output_node: label for the output node (the upper collector).
Returns the .CIR text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rc | No | 4.7K | |
| re | No | 1K | |
| vcc | No | 12 | |
| source | No | AC=1 | |
| analysis | No | AC | |
| output_node | No | OUT |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||