Hello, My question is simple but I'm confused. How can I make operations with any real number (for ex : 0,432)? Just a simple code that multiplies X*coef(realnumber) and puts it into Y would be enough for me. Y must be output. Thanks
Real numbered operations
Oct 20, 2004
3 Replies
by the way, I am using Verilog.
real number (for ex : 0,432)? Just a simple code that multiplies X*coef(realnumber) and puts it into Y would be enough for me. Y must be output.
Is this supposed to be synthesizable? Reals in Verilog aren't synthesizable. If you want to synthesize and use fractional numbers, you'll have to use fixed-point and keep track of the radix point yourself.
-Kevin
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required