Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
* .lstb This command improves the analysis of circuit stability.
* The .LSTB command measures the loop gain by successive injection (Middlebrook
* Technique). A zero voltage source is placed in series in the loop: the first pin of the voltage loop
* must be connected to the loop input, the other pin to the loop output.
.AC DEC 10 1 1e10
.tran 1n 1n
*.PROBE ac lstb_db lstb_p V(****)
*extracts for open-loop analysis
.EXTRACT AC LABEL = gain_dc YVAL(lstb_db,1)
.EXTRACT AC LABEL = phase_margin YVAL(lstb_p,extract(gb_product))+180
.EXTRACT AC LABEL = gb_product XDOWN(lstb_db,0,1)
.EXTRACT AC LABEL = tau 1/(2*3.14159*extract(gb_product))