PS2SP(1)
π PS2SP(1) β the manual page, but make it cute π
okay bestie, so ps2sp is a thing that exists, it lives in the User Commands section of the manual, and I'm about to explain the whole thing to you. no gatekeeping here π
β¨ NAME β¨
ps2sp β manual page for ps2sp version 4.14. that's it, that's the name, iconic of it.
πΈ SYNOPSIS πΈ
ps2sp [OPTION] infile > outfile
like. you feed it a file, you send the output somewhere. simple as that, queen π
π¦ DESCRIPTION π¦
so this utility? it's a SPICE netlist preprocessor. that's its whole job.
it converts netlists written in PSPICE syntax into an equivalent SPICE3/XSPICE netlist syntax. glow-up for your netlist, fr fr.
and the way that it recognizes nearly all PSPICE features?? obsessed. here's the list:
- local and global parameter (expression) definition (
β.PARAM) - parameter (expression) passing to subcircuits (
PARAMS:) - local and global function definition (
β.FUNC) - E and G-device
VALUE=f(V,I),TABLEandPOLYlines - E and G-device functions like
IDT(),DDT(),LIMIT(),PWRS(),PWR(),IF(),MAX(),MIN(), relational ops, ... - R-device
VALUE=f(V,I), L-deviceFLUX=f(V,I)and C-deviceQ=f(V,I) - spice2 like C and L-device
POLYexpressions - pspice
VSWITCHandISWITCHmodels - pspice
β.PROBElines (also with expressions) - R-device lines with temperature coefficients like
TC=tc1,tc2 - pspice
β.STEP PARAMlines (not yet tested on GNU/Linux) - pspice
β.LIBandβ.INC(lude)lines (not yet tested on GNU/Linux)
heads up bestie β those last two are marked not yet tested on GNU/Linux. no cap, the manpage literally says that. don't come for me, come for the source π«Ά
π OPTIONS π
one bullet per flag, all of them, no skipping, periodt.
-h,--helpβ displays the help screen-v,--versionβ display version information and exit-sp3β this switch means conversion of pspice table to spice 3 b-source instead of xspice core model (this is the default, so like, you're already doing it)-ltspiceβ this switch means conversion of^spice 3 power to**ltspice power and addition oftripdv=1 tripdt=1in b-lines-debugβ for debugging allβ.paramβ.funcandβ.pfuncdefinitions (default is nodebug)-tosubβ only output subckt expansions-fromsubβ inputfile is asub.tmpfile-tolibβ only output lib expansions-fromlibβ inputfile is alib.tmpfile-checkβ determine the same count of open and closed paranthesis in b-lines (default is nocheck)-notinylinesβ produces longer b-lines for some functions (default is tinylines = shorter b-lines)-xornotβ allows^and~operators in the netfile (don't mix with^as power operator) use the**operator as power instead
careful bestie!!-xornotsays do NOT mix it with^as a power operator. if you're gonna use^and~as operators, you gotta use**for power instead. that's the vibe check and you failed it if you mix them π
π REPORTING BUGS π
found a bug? (not me manifesting one, but like, if) report bugs to Friedrich Schmidt <frie.schmidt@aon.at>. tell him I said hi π
π COPYRIGHT π
Copyright Β© 2003, 2004, 2005, 2006, 2007 Friedrich Schmidt <frie.schmidt@aon.at>
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
translating for the girlies: it's free software, go read the source for the copying conditions, and there is absolutely NO warranty β not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. no take-backs, no refunds, she said what she said π
and that's the whole page bestie!! β¨ this was ps2sp version 4.14, dated June 2007, from the PS2SP(1) page in the User Commands section. mwah, go convert some netlists π¦ππ
π¦ where this page comes from
- fedora 43: qucs 0.0.20-3.fc43 Β· GPL-1.0-or-later
- fedora 44: qucs 0.0.20-4.fc44 Β· GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms