[SOLVED] floating point in verilog

Status
Not open for further replies.

u24c02

Advanced Member level 1
Joined
May 8, 2012
Messages
404
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Visit site
Activity points
4,101
Hi.

I want to know how to handle of floating point in verilog.

for example, 12.341 × 73.928

How do you usually handle of floating point in verilog?
In my case, I just take 10000 times to each them.
but this problem is not accurate.
so I need your usually methods.
 

Is this for synthesizable code or testbench? If the latter, use the 'real' datatype. If the format, look up IEEE 754.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…