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

Detecting existence of cds_global variable in AMS

$
0
0

I can reference a cds_global variable in a verilogams view by using cds_globals.variableName. However, I'd like to be able to test its existence, and the to set it to a default value if it is not defined by the user. Something like the below...

if(exists cds_globals.signalName)

output=cds_globals.signalName;

else

output = 7;

Is there a way to do this? I tried "`ifdef / `elsif / `endif" and that always followed the "elsif" path.


Viewing all articles
Browse latest Browse all 4917

Trending Articles



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