That works, but the drawback is it must be tailored to each
application. In my RealPulse component, you just set VL, VH, TD, TR,
TF, PW and PER like you would with the "classic" VPULSE.
In addition it actually sets TR and TF as the 10%-90% value, not
0%-100% as in the "classic" VPULSE, and you don't have to subtract off
TR/TF from PW as in the "classic" VPULSE.
In other words the "classic" VPULSE sucks >:-}
All my extra custom component creations are to bring Spice simulations
as close as possible to real world.
My personal symbol library in PSpice, Mylib.slb, contains 871
personalized symbols, most with customized functionality.
I addition I've modified some other symbol libraries that come with
PSpice to meet my own needs... not exactly a Kosher thing to do, if I
were still updating, but I'm not... Cadence updates for the PSpice
simulator are mostly worthless, AND costly to boot.