title: How to convert fixed-point VHDL type back to float?
body: <p>I am using IEEE fixed point package in VHDL. </p>
  
  <p>It works well, but I now facing a problem concerning their string representation in a test bench : I would like to dump them in a text file. </p>
  
  <p>I have found that it is indeed possible to directly write ufixed or sfixed using :</p>
  
  <pre><code>write(buf, to_string(x)); --where x is either sfixed or ufixed (and buf : line)
  </code></pre>
  
  <p>But then I get values like 11110001.10101 (for sfixed q8.5 representation).</p>
  
  <p>So my question : how to convert back these fixed point numbers to reals (and then to string) ?</p>