005_lstb_stab_single_ended : Stability analysis
Requires: SmartSpice & Smartview
Minimum Versions: SMARTSPICE 3.17.26.C
An inputdeck is used to setup the .LSTB analysis. The .LSTB analysis is used in single mode to calculate phase, gain margins and frequency characterisrics. A cx# file is written which contains gain as a function of frequency
- phase_margin(deg)= -8.1393e+001
- gain_margin(db)= -5.7399e+001
- phase_margin_freq(Hz)= 2.0786e+005
- gain_margin_freq(Hz)= 1.4621e+007
- minfreq = 1.0000e-001 at= 1.0000e-001
- loop_gain_at_min_freq(db)= 1.0422e+002
The output waveform shows the phase and the gain margin in db as a function of frequency.
Input Files
amp.in
*test of bipolar amplifier(STABILITY ANALYSIS VERSION) v1 Vpos 0 15 v5 Vneg 0 -15 R1 N004 0 100 R2 N001 in 1K R3 N005 N001 1k C1 N005 N001 3p xu1 0 N001 vpos Vneg N003 amp_bipolar vprobe N003 N004 0 *modification C2 N005 0 3p R4 N005 N004 1k Vin in 0 ac 0 .include amp_bipolar_encrypted.lib .param freqrange=100MEG *stability analysis specification .LSTB DEC 30 .1 "freqrange" mode=single vsource=Vprobe .option nomod nodeck *some extra vectors .end
amp_bipolar_encrypted.lib
@silvaco.file skey=silvaco contents=AtEncryption @RvvOfrhKMTo4+n0mPsai+/Vdgh2P7X5h @oqEvFUn9/Th4fdDA8Mwi5IDQJE512ICj5MlJ1S4n6UK67lriGVx8ew @KCRyZWqqjVAxGD8VUmw2pA @gYwOSeb0Hjt2NBhyXuWwtUV+7FgifHLT @ksMLKKzuFUjvNF7uyoKy+f1yIjwZRM2j @4FxmUvOLwR+cKHFtrXfCZTRJPcngGamk @Y9YxZ9QjZQRMZ/fL0DDUhz+QIgbGsbze @Aj4wJJ4CYhKF7JQMW1rocV86HZl2ygfO @W4zhaXkcagrf0XFMBHICcDRdXtMfBpmA @YBQyZ81VYzUdynmk186WC9LGHHIFbkD1 @qg8oRzFjwn8Po3jHdQPXhyVKLXQ3svwv @QbnDA7X7jXxjmihu75u9YNdm5QfhWwXX @EvsbPnVG0xq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4vXuFpkcmXgYuQQ2QRFIuA @oEsgc+jC6DI3n7UHeIVDXLqKM5cJsGuNCdnJTmQfzvI @LHKMduy9OwcAosR92aS2IWe53q3OM/L2Ln+pwozHres
amp.measure.raw0
Title: *test of bipolar amplifier(STABILITY ANALYSIS VERSION) Input deck file name: V:\examples\smartspice_web\analysis\005_Stability_lstb_sim\amp.sp Date: Wed Aug 18 09:59:28 2010 Plotname: Measure Plot Temperature: 0 Sweepvar: phase_margin(deg) Sweepmode: 0 Flags: real padded No. Variables: 6 No. Points: 1 Source: SmartSpice MultiCore,Platform:0 Version: 3.18.0.R Variables: 0 phase_margin(deg) notype 1 gain_margin(db) notype 2 phase_margin_freq(Hz) notype 3 gain_margin_freq(Hz) notype 4 minfreq notype 5 loop_gain_at_min_freq(db) notype Values: 0 -8.139287407910882e+001 -5.739888160989512e+001 2.078569881279886e+005 1.462093388587591e+007 1.000000000000000e-001 1.042174898096365e+002
Graphics