From: petrus bitbyter on
Lately I got a PSpice listing that differs wildly from the LTSpice listings
used by LTSpice. Anyone knows a way to convert from PSpice to LTSpice?

petrus bitbyter


From: Jim Thompson on
On Mon, 4 Jan 2010 23:33:54 +0100, "petrus bitbyter"
<pieterkraltlaatditweg(a)enditookhccnet.nl> wrote:

>Lately I got a PSpice listing that differs wildly from the LTSpice listings
>used by LTSpice. Anyone knows a way to convert from PSpice to LTSpice?
>
>petrus bitbyter
>

Post a sample. Shouldn't be any _significant_ difference... maybe
polynomial versus behavioral ??

...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 |

I love to cook with wine. Sometimes I even put it in the food.
From: petrus bitbyter on

"Jim Thompson" <To-Email-Use-The-Envelope-Icon(a)My-Web-Site.com/Snicker>
schreef in bericht news:n8t4k5l76l2km0du6qhf7skk76nfhu7c5f(a)4ax.com...
> On Mon, 4 Jan 2010 23:33:54 +0100, "petrus bitbyter"
> <pieterkraltlaatditweg(a)enditookhccnet.nl> wrote:
>
>>Lately I got a PSpice listing that differs wildly from the LTSpice
>>listings
>>used by LTSpice. Anyone knows a way to convert from PSpice to LTSpice?
>>
>>petrus bitbyter
>>
>
> Post a sample. Shouldn't be any _significant_ difference... maybe
> polynomial versus behavioral ??
>
> ...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 |
>
> I love to cook with wine. Sometimes I even put it in the food.

I add two listings that show the differences very clear.

The first is a listing of the circuit involved. A three pole Sallen-Key low
pass filter. I need it to filter the harmonics from a PWM-based sinewave
generator. So far I see too much remnants of the sample frequency - in the
19-20kHz range - on the o'scope. My LTSpice program does not recognize it.

The second you will recognize easily. It's a LTSpice listing of a very
different circuit laying around here. Guess I got it from this NG.

* Netlist generated by ActiveLP
* --- Active Low-Pass Filter ----
* Filter Topologie: Sallen-Key
* Filter Type: Butterworth
* Filter Order: 3
* -3 dB-Frequency: 300 Hz
V1 O0 0 AC 1 0 PULSE(0 1 0 33.333u 33.333u 33.333m)
* Ideal Circuit using Voltage controlled Voltage Sources
RI1A O0 BI1 112.88
CI1A BI1 0 4.7u
EI1 OI1 0 BI1 0 1
RI2A OI1 AI2 78.805
RI2B AI2 BI2 162.34
CI2A BI2 0 2.2u
CI2B AI2 OI2 10u
EI2 OI2 0 BI2 0 1
..graph OI2 curveLabel="Output Stage 2 Ideal" nowarn=true ylog=auto
* Simulation Control
..TRAN 0 66.667m 0 33.333u
..AC DEC 1k 3 3k


Version 4
SHEET 1 2100 1172
WIRE 848 -416 752 -416
WIRE 1040 -416 928 -416
WIRE 752 -304 752 -416
WIRE 848 -304 752 -304
WIRE 1040 -304 1040 -416
WIRE 1040 -304 912 -304
WIRE 1104 -304 1040 -304
WIRE 1152 -304 1104 -304
WIRE 752 -272 752 -304
WIRE 752 -160 752 -208
FLAG 752 -160 0
FLAG 1104 -304 out
SYMBOL Digital\\schmtinv 848 -368 R0
WINDOW 3 30 111 Left 0
WINDOW 123 34 145 Left 0
SYMATTR InstName A1
SYMATTR Value vhigh=5 vlow=0 trise=25n
SYMATTR Value2 tripdt=5n vt=2.5 vh=.9
SYMBOL cap 736 -272 R0
SYMATTR InstName C2
SYMATTR Value 100n ic=0
SYMBOL Misc\\EuropeanResistor 832 -400 R270
WINDOW 0 27 56 VTop 0
WINDOW 3 5 56 VBottom 0
SYMATTR InstName R1
SYMATTR Value 100k
TEXT 536 -392 Left 0 !.tran 0 200m 0 uic


petrus bitbyter


From: Ian Bell on
petrus bitbyter wrote:
> "Jim Thompson" <To-Email-Use-The-Envelope-Icon(a)My-Web-Site.com/Snicker>
> schreef in bericht news:n8t4k5l76l2km0du6qhf7skk76nfhu7c5f(a)4ax.com...
>> On Mon, 4 Jan 2010 23:33:54 +0100, "petrus bitbyter"
>> <pieterkraltlaatditweg(a)enditookhccnet.nl> wrote:
>>
>>> Lately I got a PSpice listing that differs wildly from the LTSpice
>>> listings
>>> used by LTSpice. Anyone knows a way to convert from PSpice to LTSpice?
>>>
>>> petrus bitbyter
>>>
>> Post a sample. Shouldn't be any _significant_ difference... maybe
>> polynomial versus behavioral ??
>>
>> ...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 |
>>
>> I love to cook with wine. Sometimes I even put it in the food.
>
> I add two listings that show the differences very clear.
>
> The first is a listing of the circuit involved. A three pole Sallen-Key low
> pass filter. I need it to filter the harmonics from a PWM-based sinewave
> generator. So far I see too much remnants of the sample frequency - in the
> 19-20kHz range - on the o'scope. My LTSpice program does not recognize it.
>
> The second you will recognize easily. It's a LTSpice listing of a very
> different circuit laying around here. Guess I got it from this NG.
>
> * Netlist generated by ActiveLP
> * --- Active Low-Pass Filter ----
> * Filter Topologie: Sallen-Key
> * Filter Type: Butterworth
> * Filter Order: 3
> * -3 dB-Frequency: 300 Hz
> V1 O0 0 AC 1 0 PULSE(0 1 0 33.333u 33.333u 33.333m)
> * Ideal Circuit using Voltage controlled Voltage Sources
> RI1A O0 BI1 112.88
> CI1A BI1 0 4.7u
> EI1 OI1 0 BI1 0 1
> RI2A OI1 AI2 78.805
> RI2B AI2 BI2 162.34
> CI2A BI2 0 2.2u
> CI2B AI2 OI2 10u
> EI2 OI2 0 BI2 0 1
> .graph OI2 curveLabel="Output Stage 2 Ideal" nowarn=true ylog=auto
> * Simulation Control
> .TRAN 0 66.667m 0 33.333u
> .AC DEC 1k 3 3k
>
>
> Version 4
> SHEET 1 2100 1172
> WIRE 848 -416 752 -416
> WIRE 1040 -416 928 -416
> WIRE 752 -304 752 -416
> WIRE 848 -304 752 -304
> WIRE 1040 -304 1040 -416
> WIRE 1040 -304 912 -304
> WIRE 1104 -304 1040 -304
> WIRE 1152 -304 1104 -304
> WIRE 752 -272 752 -304
> WIRE 752 -160 752 -208
> FLAG 752 -160 0
> FLAG 1104 -304 out
> SYMBOL Digital\\schmtinv 848 -368 R0
> WINDOW 3 30 111 Left 0
> WINDOW 123 34 145 Left 0
> SYMATTR InstName A1
> SYMATTR Value vhigh=5 vlow=0 trise=25n
> SYMATTR Value2 tripdt=5n vt=2.5 vh=.9
> SYMBOL cap 736 -272 R0
> SYMATTR InstName C2
> SYMATTR Value 100n ic=0
> SYMBOL Misc\\EuropeanResistor 832 -400 R270
> WINDOW 0 27 56 VTop 0
> WINDOW 3 5 56 VBottom 0
> SYMATTR InstName R1
> SYMATTR Value 100k
> TEXT 536 -392 Left 0 !.tran 0 200m 0 uic
>
>
> petrus bitbyter
>
>


If you are looking for compatibility between these two programs at the
schematic level you will be sadly disappointed. You simply need to draw
the circuit in LTSpice then simulate it.

Cheers

Ian
From: Jim Thompson on
On Tue, 5 Jan 2010 11:13:56 +0100, "petrus bitbyter"
<pieterkraltlaatditweg(a)enditookhccnet.nl> wrote:

>
>"Jim Thompson" <To-Email-Use-The-Envelope-Icon(a)My-Web-Site.com/Snicker>
>schreef in bericht news:n8t4k5l76l2km0du6qhf7skk76nfhu7c5f(a)4ax.com...
>> On Mon, 4 Jan 2010 23:33:54 +0100, "petrus bitbyter"
>> <pieterkraltlaatditweg(a)enditookhccnet.nl> wrote:
>>
>>>Lately I got a PSpice listing that differs wildly from the LTSpice
>>>listings
>>>used by LTSpice. Anyone knows a way to convert from PSpice to LTSpice?
>>>
>>>petrus bitbyter
>>>
>>
>> Post a sample. Shouldn't be any _significant_ difference... maybe
>> polynomial versus behavioral ??
>>
>> ...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 |
>>
>> I love to cook with wine. Sometimes I even put it in the food.
>
>I add two listings that show the differences very clear.
>
>The first is a listing of the circuit involved. A three pole Sallen-Key low
>pass filter. I need it to filter the harmonics from a PWM-based sinewave
>generator. So far I see too much remnants of the sample frequency - in the
>19-20kHz range - on the o'scope. My LTSpice program does not recognize it.
>
>The second you will recognize easily. It's a LTSpice listing of a very
>different circuit laying around here. Guess I got it from this NG.
>
>* Netlist generated by ActiveLP
>* --- Active Low-Pass Filter ----
>* Filter Topologie: Sallen-Key
>* Filter Type: Butterworth
>* Filter Order: 3
>* -3 dB-Frequency: 300 Hz
>V1 O0 0 AC 1 0 PULSE(0 1 0 33.333u 33.333u 33.333m)
>* Ideal Circuit using Voltage controlled Voltage Sources
>RI1A O0 BI1 112.88
>CI1A BI1 0 4.7u
>EI1 OI1 0 BI1 0 1
>RI2A OI1 AI2 78.805
>RI2B AI2 BI2 162.34
>CI2A BI2 0 2.2u
>CI2B AI2 OI2 10u
>EI2 OI2 0 BI2 0 1
>.graph OI2 curveLabel="Output Stage 2 Ideal" nowarn=true ylog=auto
>* Simulation Control
>.TRAN 0 66.667m 0 33.333u
>.AC DEC 1k 3 3k

Above is a NETLIST.

Below is a SCHEMATIC.

>
>
>Version 4
>SHEET 1 2100 1172
>WIRE 848 -416 752 -416
>WIRE 1040 -416 928 -416
>WIRE 752 -304 752 -416
>WIRE 848 -304 752 -304
>WIRE 1040 -304 1040 -416
>WIRE 1040 -304 912 -304
>WIRE 1104 -304 1040 -304
>WIRE 1152 -304 1104 -304
>WIRE 752 -272 752 -304
>WIRE 752 -160 752 -208
>FLAG 752 -160 0
>FLAG 1104 -304 out
>SYMBOL Digital\\schmtinv 848 -368 R0
>WINDOW 3 30 111 Left 0
>WINDOW 123 34 145 Left 0
>SYMATTR InstName A1
>SYMATTR Value vhigh=5 vlow=0 trise=25n
>SYMATTR Value2 tripdt=5n vt=2.5 vh=.9
>SYMBOL cap 736 -272 R0
>SYMATTR InstName C2
>SYMATTR Value 100n ic=0
>SYMBOL Misc\\EuropeanResistor 832 -400 R270
>WINDOW 0 27 56 VTop 0
>WINDOW 3 5 56 VBottom 0
>SYMATTR InstName R1
>SYMATTR Value 100k
>TEXT 536 -392 Left 0 !.tran 0 200m 0 uic
>
>
>petrus bitbyter
>

Here are some discussions of netlist-to-schematic conversion...

http://www.nandigits.com/goftrace.htm

http://portal.acm.org/citation.cfm?id=622491

None that I know of actually work well.

The above netlist is simple, translate it by hand ;-)

Also, I am SURE that there is some way to import a netlist into
LTspice _without_ having to translate it to a schematic.

LTspice users?

...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 |

I love to cook with wine. Sometimes I even put it in the food.