Hello! I am simulating cmos circuits in Tanner (T-Spice) by importing to it, PSpice Netlists While in PSpice everything is successfully simulated, in Tanner I get a fatal error.

The line in which the error is referring to is the following:

.FUNC ROUND(x) { x-IF(cos(PI*x)>0,arcsin(sin(PI*x))/PI,-arcsin(sin(PI*x))/PI) }

And the error that it generates is:

Fatal Error : syntax error, unexpected unary function call, expecting ) (right paren) or device or node name ["ROUND(x)= (x)-IF(cos(PI*x)>0,(arcsin(sin(PI*x))/(PI)),(-arcsin(sin(PI*x))/PI)) " at column 42]

Does anyone know how can I resolve this? This is not a parenthesis I am missing. It is more than that. It has something to do with how ROUND(X) is perceived by Tanner, but I don't have a clue what is it... Any ideas?

More Manolis Magdalis's questions See All
Similar questions and discussions