PSP files for SPICE subcircuits

Dec 30, 2009 34 Replies

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/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

Might be encrypted device models. ...Jim Thompson

-- | James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at

formatting link
| 1962 | Help save the environment! Please dispose of socialism responsibly!

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/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

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

-Lasse

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 | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | Help save the environment! Please dispose of socialism responsibly!

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

Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

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/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

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/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

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 philos>> Just curious: Avago uses files ending on *.psp which used to be PaintShop

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/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

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 | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | Help save the environment! Please dispose of socialism responsibly!

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 durable; the other is a cheaper thing, but the moths get into it." (Stephen Leacock)

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

Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

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 | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | "You cannot help the poor by destroying the rich. You cannot strengthen the weak by weakening the strong. You cannot bring about prosperity by discouraging thrift. You cannot lift the wage earner up by pulling the wage payer down. You cannot further the brotherhood of man by inciting class hatred. You cannot build character and courage by taking away people's initiative and independence. You cannot help people permanently by doing for them, what they could and should do for themselves." -Abraham Lincoln

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 durable; the other is a cheaper thing, but the moths get into it." (Stephen Leacock)

Jim Thompson a écrit :

Uedit is the best, but Crimson editor

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

Thanks, Fred.

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

Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

Also have a look at Crimson editor

formatting link

Thanks, Fred.

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

| James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | "You cannot help the poor by destroying the rich. You cannot strengthen the weak by weakening the strong. You cannot bring about prosperity by discouraging thrift. You cannot lift the wage earner up by pulling the wage payer down. You cannot further the brotherhood of man by inciting class hatred. You cannot build character and courage by taking away people's initiative and independence. You cannot help people permanently by doing for them, what they could and should do for themselves." -Abraham Lincoln

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

Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required