EmbDev.net

Forum: FPGA, VHDL & Verilog Logarithm Calculator


von John H. (Company: Student) (bibliomaniaster)


Rate this post
useful
not useful
do anyone know how to implement
Logarithm calculator (input up to a 32-bit number and get its base 2, 
base 10 and base 'e' logs)

von zipp (Guest)


Rate this post
useful
not useful

von John H. (Company: Student) (bibliomaniaster)


Rate this post
useful
not useful
Thanks for the information.

But, how can I implement this in Verilog ?

von zipp (Guest)


Rate this post
useful
not useful
The first part is aligning the number such that the leading bit is one. 
This done by a multiple shift. The second is basically a table. Or a 
table with interpolations.

von Hallbergmoser (Guest)


Rate this post
useful
not useful
For small bit sizes, you can implement totally it with a table.

von John H. (Company: Student) (bibliomaniaster)


Rate this post
useful
not useful
Will you please send me, the coding of this program ....

von Marco (Guest)


Rate this post
useful
not useful
I can provide you with a code and a license to use it in professional 
applications. The code is scalable to 64 Bit wide input vectors and 
works for base "e". In conjunction with a pre calculated value of 
1/ln(2) or 1/ln(10) you can directly multiply it with the result and 
obtain all bases you want to have.

I would charge you with €199,- + VAT, payment by bank wire transfer.

Please drop me a note.

von Paolo (Guest)


Rate this post
useful
not useful
I am interested in this core. Can you sent a kind of demo in shape of a 
ngc for xilinx for instance?

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.