Any TopSpice Users Here?

Dec 16, 2015 3 Replies

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.

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.

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.

Join the Discussion

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

Didn't find your answer?

Ask the community — no account required