vickyuet
Member level 2
A.o.a:
In verilog HDL programming,I got some floating point arithmetic's to perform.I need to multiply a floating point number but problem is I am confused how to write verilog code that reads number convert it to fixed Q n.m format ....I know all the basics of Q n.m but problem is the algorithm behind this representation.
for example Q2.8 format format 1.5 is represented a 01 1000 0000 but i need a verilog module that accepts floating number and give binary fixed point format as an output....Kindly guide me....Regards
In verilog HDL programming,I got some floating point arithmetic's to perform.I need to multiply a floating point number but problem is I am confused how to write verilog code that reads number convert it to fixed Q n.m format ....I know all the basics of Q n.m but problem is the algorithm behind this representation.
for example Q2.8 format format 1.5 is represented a 01 1000 0000 but i need a verilog module that accepts floating number and give binary fixed point format as an output....Kindly guide me....Regards