Quantcast
Channel: Cadence Custom IC Design Forum
Viewing all articles
Browse latest Browse all 4898

if statement in ade xl

$
0
0

Hello everyone,

is it possible to write if expression like following codes when I define global variables in adexl:

  if (a==b) then

          if (c==d) then

               expression 

          else 

               expression 

   else 

           expression

I know its possible to write something like out= if( (a==b) then 1 else 0), so I write like:

if (  (a==b) then ( if ( (c==d) then current else -current) )   else 0)

But I get error:

"input.scs" 9: Parameter `I_ainv': Cannot run the simulation because an unknown parameter `if' has been specified in expression `if'

Does anyone know why it happens? Thanks a lot for help

Warm regards,

Holz


Viewing all articles
Browse latest Browse all 4898

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>