<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>I wish to compile something like - <br>
<br>
<br>
bits(4) UInt( bits(2) x )</p>
<p>{</p>
<p>     switch(b) </p>
<p>     {</p>
<p>          case 0:</p>
<p>               return '0000';</p>
<p>         case 1: </p>
<p>               return '0001';</p>
<p>         case 2 : </p>
<p>              return '0010';</p>
<p>         case 3:  </p>
<p>             return '0011';</p>
<p><br>
</p>
<p>    }</p>
<p>}</p>
<p><br>
int datasize = UInt(a);</p>
<p><br>
</p>
<p><br>
</p>
<p><b>My Question: Is there some way to perform Range Analysis over the function "UInt()" return value ?</b></p>
<p><br>
It would be great if someone can help me out.</p>
<p>Thanks,</p>
<p>Malhar<br>
<br>
</p>
</div>
</body>
</html>