PS2SP(1)

πŸ“¦ version 0.0.20, in fedora 43, fedora 44

πŸ’– 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), TABLE and POLY lines
  • E and G-device functions like IDT(), DDT(), LIMIT(), PWRS(), PWR(), IF(), MAX(), MIN(), relational ops, ...
  • R-device VALUE=f(V,I), L-device FLUX=f(V,I) and C-device Q=f(V,I)
  • spice2 like C and L-device POLY expressions
  • pspice VSWITCH and ISWITCH models
  • pspice ​.PROBE lines (also with expressions)
  • R-device lines with temperature coefficients like TC=tc1,tc2
  • pspice ​.STEP PARAM lines (not yet tested on GNU/Linux)
  • pspice ​.LIB and ​.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 of tripdv=1 tripdt=1 in b-lines
  • -debug β€” for debugging all ​.param ​.func and ​.pfunc definitions (default is nodebug)
  • -tosub β€” only output subckt expansions
  • -fromsub β€” inputfile is a sub.tmp file
  • -tolib β€” only output lib expansions
  • -fromlib β€” inputfile is a lib.tmp file
  • -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!! -xornot says 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 Β© 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