Cannot understand an "unintelligible error"

35 views
Skip to first unread message

Roshni Uppala

unread,
Jul 14, 2014, 4:54:08 PM7/14/14
to xyce-...@googlegroups.com


I am running a simple circuit with a source and a memristor and a resistor. Apparently, Xyce is giving an error related to the memristor subcircuit. I cannot seem to understand these particular errors.

User error: Unintelligible syntax in:  EXP(-{ALPHAP}*(X - XP))* ((XP-X)/(1-XP)
 +1) *STP(X-XP) + STP(XP-X)
User error: Unintelligible syntax in:  EXP(-{ALPHAP}*(X - XP))* ((XP-X)/(1-XP)
 +1) *STP(X-XP) + STP(XP-X)
User error: Unintelligible syntax in:  EXP(-{ALPHAP}*(X - XP))* ((XP-X)/(1-XP)
 +1) *STP(X-XP) + STP(XP-X)

My code is :

 
EG dx 0 value={Ap*(exp(V(Plus, Minus)) - exp(Vp))* winYP(V(x), Xp, Xn)*stp(V(Plus, Minus)-Vp) -An*(exp(-V(Plus, Minus)) - exp(Vn))* winYN(V(X), Xp, Xn)*stp(-V(Plus, Minus)-Vn)}


Thank you

xyce-users

unread,
Jul 14, 2014, 4:58:37 PM7/14/14
to xyce-...@googlegroups.com
You have not provided sufficient information for us to diagnose the problem completely, but the presence of curly braces in the error message above suggests you have an error in one of your function definitions.  You cannot nest curly braces, and this error message suggests that perhaps you are.  But it is impossible to tell because you have not provided enough context.

In the future, please provide more than one line of netlist and a set of error messages.  The exact netlist that can actually be run to reproduce the problem is pretty much the minimum information we need to answer questions like this.

Roshni Uppala

unread,
Jul 14, 2014, 5:14:30 PM7/14/14
to xyce-users
Oh, sorry about that. I have attached the netlist and error message with this email.
I think the problem is because I am using "stp" and "idt" functions which worked with ltspice?

I really appreciate your help. Thanks


--
You received this message because you are subscribed to a topic in the Google Groups "xyce-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xyce-users/AxAalyVZiRI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xyce-users+...@googlegroups.com.
To post to this group, send email to xyce-...@googlegroups.com.
Visit this group at http://groups.google.com/group/xyce-users.
For more options, visit https://groups.google.com/d/optout.

single_opt_memristor_testrun.txt
single_memristor_opt_testrun_Error_mesg

xyce-users

unread,
Jul 14, 2014, 5:23:21 PM7/14/14
to xyce-...@googlegroups.com


On Monday, July 14, 2014 3:14:30 PM UTC-6, Roshni Uppala wrote:
Oh, sorry about that. I have attached the netlist and error message with this email.
I think the problem is because I am using "stp" and "idt" functions which worked with ltspice?

stp is a recognized function in Xyce, but idt is not.  Please consult the reference guide for the complete documentation of what functions are supported in Xyce's expression library.

But the "Unintelligible error" issue is indeed due to what we speculated:  you have used curly braces inside other curly braces in the definition of winYP.  Remove the curly braces around "alphaP" and the unintelligible syntax error goes away.

Curly braces delimit top-level expressions.  Not only is it unnecessary to enclose subexpressions within an expression in curly braces, it is illegal.  The subcircuit parameter inside the winYP function is just a variable that has to be resolved by the expression parsing package, and it should not have curly braces around it.
 
I really appreciate your help. Thanks

Roshni Uppala

unread,
Jul 14, 2014, 8:20:43 PM7/14/14
to xyce-users
Ok. got it thank you !


Reply all
Reply to author
Forward
0 new messages