Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

conversion of negative floating point number in binary using VHDL

$
0
0
I was literally stuck witha problem regarding the conversion of negative floating point number in binary and to write it in VHDL.For example the num is -0.8.when i convert it into binary it is like .11001100.since it is -ve i have to convert it into 2's complement and to provide the extra MSB bit.
My question is that how to represent it in VHDL without using that decimal point.Plz kindly help me in this regard.

Viewing all articles
Browse latest Browse all 19390

Trending Articles



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