PSP files for SPICE subcircuits

Just curious: Avago uses files ending on *.psp which used to be PaintShop files. But it's text files, with some weird characters added in there that SPICE will barf upon.

Anybody know why they did that and maybe an easy trick to boil them down to regular ASCII?

--
Regards, Joerg

http://www.analogconsultants.com/
 Click to see the full signature
Reply to
Joerg
Loading thread data ...

Might be encrypted device models. ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
 Click to see the full signature
Reply to
Jim Thompson

Drat. Hurumph.

That would be a sales volume reduction tool. I was able to pry the numbers out of one of the files but now have to verify it all. A lot of people would simply move on.

--
Regards, Joerg

http://www.analogconsultants.com/
 Click to see the full signature
Reply to
Joerg

googling seems to suggest that it could be Penn State Philips models?

-Lasse

Reply to
langwadt

Joerg, Can you send me a copy?

Encrypted models are usually 100% gobbledygook. So what you have may simply be some headers and footers inserted by some obscure text editor. ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
 Click to see the full signature
Reply to
Jim Thompson

Done. This one was easy but on bigger RF devices that's a pain.

--
Regards, Joerg

http://www.analogconsultants.com/
 Click to see the full signature
Reply to
Joerg

But that's for LDMOS and stuff, not for diodes, and AFAIR requires an expensive special simulator:

formatting link

For diodes this would be a hefty damper on sales.

--
Regards, Joerg

http://www.analogconsultants.com/
 Click to see the full signature
Reply to
Joerg

Looks like it's only one character type out of place, for whatever reason, some sort of box instead of carriage returns.

So, Avago = good company :-)

--
Regards, Joerg

http://www.analogconsultants.com/
 Click to see the full signature
Reply to
Joerg

Are you opening it in Notepad? Notepad doesn't understand encoding, try Wordpad, or another editor which does.

If you want to write a script, I'm guessing the "box character" is 0x0A, whereas Microsoft uses 0x0D, 0x0A for CR+LF. Simple find and replace will 'fix' it.

Tim

--
Deep Friar: a very philosophical monk.
Website: http://webpages.charter.net/dawill/tmoranwms
 Click to see the full signature
Reply to
Tim Williams

Yup, that was the problem.

T'is what I ended up doing. The SPICE files run nicely, it's just coming in a raggedy format. For some reason other mfgs don't do that, their stuff opens correctly in Notepad.

--
Regards, Joerg

http://www.analogconsultants.com/
 Click to see the full signature
Reply to
Joerg

In UltraEdit, if you open such a file, it automatically pops up with, "Would you like to convert this file to DOS format?" ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
 Click to see the full signature
Reply to
Jim Thompson

Notepad++ (free) will automatically convert UNIX line endings to DOS/Windows and vice-versa.

Nice piece of kit. Runs under wine, too.

--
"Electricity is of two kinds, positive and negative. The difference
is, I presume, that one comes a little more expensive, but is more
 Click to see the full signature
Reply to
Fred Abse

Notepad is what screwed up the SPICE directives in the Avago files.

--
Regards, Joerg

http://www.analogconsultants.com/
 Click to see the full signature
Reply to
Joerg

Notepad++ is NOT Notepad

I'll repeat my assertion that UltraEdit is the _best_ editor ever.

And it'll do DOS Eunuchs.

I like it because of its macro and scripting capabilities, allowing me to convert _huge_ Spice libraries, in every flavor (and mathematical format) known to man, to PSpice in hours rather than days. ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
 Click to see the full signature
Reply to
Jim Thompson

No.

This is Notepad++

formatting link

NOT Windows notepad

--
"Electricity is of two kinds, positive and negative. The difference
is, I presume, that one comes a little more expensive, but is more
 Click to see the full signature
Reply to
Fred Abse

Jim Thompson a écrit :

Uedit is the best, but Crimson editor

formatting link
is better. And it's free...

--
Thanks,
Fred.
Reply to
Fred Bartoli

Aha, thanks. Maybe time to switch to that one.

--
Regards, Joerg

http://www.analogconsultants.com/
 Click to see the full signature
Reply to
Joerg

Also have a look at Crimson editor

formatting link

--
Thanks,
Fred.
Reply to
Fred Bartoli

"Known Bugs" gives a page error. Really satisfying ;-) ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
 Click to see the full signature
Reply to
Jim Thompson

Thanks, Fred, I have bookmarked that. Although I never write code which it seems to be geared towards.

--
Regards, Joerg

http://www.analogconsultants.com/
 Click to see the full signature
Reply to
Joerg

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.