Forums

Any TopSpice Users Here?

Started by Jim Thompson December 16, 2015
Any TopSpice Users Here?

I have an OpAmp model out there that runs fine on PSpice, LTspice,
HSpice, etc., but balks on TopSpice.

The error report, from the TopSpice output file is:

 GSw_Sw3         N_22 -VB VALUE {((TANH(9.485/0.1*(V(SHUTDOWN,   
 +  GND)-0.5))+1)/2)*(V(N_22, -VB)/1)}   
0*ERROR*: mismatched parentheses in above expression check result= -1

0*ERROR*: loading VALUE behavioral expression token list. Error#  1

The parentheses ARE NOT mismatched.

This error only reports for lines with a continuation (+ in first
column... which just caught my attention, because, at least in the
output file, the + is showing in the second column, while, in the
subcircuit library, it's in the first column.

Anyone with first-hand experience with TopSpice?

Thanks!
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
| 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.
On 17-Dec-15 6:55 AM, Jim Thompson wrote:
> Any TopSpice Users Here? > > I have an OpAmp model out there that runs fine on PSpice, LTspice, > HSpice, etc., but balks on TopSpice. > > The error report, from the TopSpice output file is: > > GSw_Sw3 N_22 -VB VALUE {((TANH(9.485/0.1*(V(SHUTDOWN, > + GND)-0.5))+1)/2)*(V(N_22, -VB)/1)} > 0*ERROR*: mismatched parentheses in above expression check result= -1 > > 0*ERROR*: loading VALUE behavioral expression token list. Error# 1 > > The parentheses ARE NOT mismatched. > > This error only reports for lines with a continuation (+ in first > column... which just caught my attention, because, at least in the > output file, the + is showing in the second column, while, in the > subcircuit library, it's in the first column. > > Anyone with first-hand experience with TopSpice? > > Thanks! > > ...Jim Thompson >
Try adding extra () around the inner expression? { ( ((TANH(9.485/0.1*(V(SHUTDOWN,+GND)-0.5))+1)/2)*(V(N_22, -VB)/1) ) }
On Thu, 17 Dec 2015 16:55:41 +0800, 800L <8@loo.com> wrote:

>On 17-Dec-15 6:55 AM, Jim Thompson wrote: >> Any TopSpice Users Here? >> >> I have an OpAmp model out there that runs fine on PSpice, LTspice, >> HSpice, etc., but balks on TopSpice. >> >> The error report, from the TopSpice output file is: >> >> GSw_Sw3 N_22 -VB VALUE {((TANH(9.485/0.1*(V(SHUTDOWN, >> + GND)-0.5))+1)/2)*(V(N_22, -VB)/1)} >> 0*ERROR*: mismatched parentheses in above expression check result= -1 >> >> 0*ERROR*: loading VALUE behavioral expression token list. Error# 1 >> >> The parentheses ARE NOT mismatched. >> >> This error only reports for lines with a continuation (+ in first >> column... which just caught my attention, because, at least in the >> output file, the + is showing in the second column, while, in the >> subcircuit library, it's in the first column. >> >> Anyone with first-hand experience with TopSpice? >> >> Thanks! >> >> ...Jim Thompson >> > > >Try adding extra () around the inner expression? > >{ ( ((TANH(9.485/0.1*(V(SHUTDOWN,+GND)-0.5))+1)/2)*(V(N_22, -VB)/1) ) > }
Aha! To force it to _continue_ to a matching closing? ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85142 Skype: skypeanalog | | | 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.
On Wed, 16 Dec 2015 15:55:24 -0700, Jim Thompson
<To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:

>Any TopSpice Users Here? > >I have an OpAmp model out there that runs fine on PSpice, LTspice, >HSpice, etc., but balks on TopSpice. > >The error report, from the TopSpice output file is: > > GSw_Sw3 N_22 -VB VALUE {((TANH(9.485/0.1*(V(SHUTDOWN, > + GND)-0.5))+1)/2)*(V(N_22, -VB)/1)} >0*ERROR*: mismatched parentheses in above expression check result= -1 > >0*ERROR*: loading VALUE behavioral expression token list. Error# 1 > >The parentheses ARE NOT mismatched. > >This error only reports for lines with a continuation (+ in first >column... which just caught my attention, because, at least in the >output file, the + is showing in the second column, while, in the >subcircuit library, it's in the first column. > >Anyone with first-hand experience with TopSpice? > >Thanks! > > ...Jim Thompson
Solved... via return E-mail from Penzar: TopSpice does not like for now, being updated) node names beginning with a math operator, thus a node name -VB makes it throw up. Personally I'm going to adopt a policy of no node names with + or - in them, thus IN+ will become INP. ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85142 Skype: skypeanalog | | | 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.